From: Michael Tokarev Subject: Re: kvm monitor socket - connection refused Date: Wed, 29 Jun 2011 02:29:07 +0400 Message-ID: <4E0A55B3.4050605@msgid.tls.msk.ru> References: <4E0A297E.7080802@cdf.toronto.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Iordan Iordanov Return-path: Received: from isrv.corpit.ru ([86.62.121.231]:38811 "EHLO isrv.corpit.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328Ab1F1W3K (ORCPT ); Tue, 28 Jun 2011 18:29:10 -0400 In-Reply-To: <4E0A297E.7080802@cdf.toronto.edu> Sender: kvm-owner@vger.kernel.org List-ID: 28.06.2011 23:20, Iordan Iordanov wrote: > Hello, > > We are using KVM on Debian Squeeze (QEMU 0.12.5). Yesterday, I started a > virtual machine and let it run overnight. I don't recall doing anything > out of the ordinary to it. > > This morning, I wanted to issue some commands to it through the control > socket, but socat is unable to connect to it. Usually, I am able to > connect to the control socket this way. > > # ls -l > total 1744816 > -rw-r--r-- 1 iordan iordan 4195352576 Jun 28 14:54 disk.img > srwxrwxr-x 1 root root 0 Jun 28 12:35 monitor > # socat - UNIX-CONNECT:./monitor > 2011/06/28 15:13:53 socat[4564] E connect(3, AF=1 "./monitor", 11): > Connection refused > > # kvm was run thus: > kvm -runas iordan -drive file=./disk.img -enable-kvm -vnc > localhost:200,vnc,password -usbdevice tablet -monitor > unix:./monitor,server,nowait The process listening on this socket no longer exist, it finished. With this command line it should stay in foreground till finished (there's no -daemonize etc), so you should see error messages if any. > # file monitor > monitor: socket > > Is this a known issue with this version of Qemu? Has anybody else > experienced this, and if so knows why it happens? How about checking who is actually listening on this socket before asking? /mjt