From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVRsm-0007i1-I8 for qemu-devel@nongnu.org; Tue, 29 Nov 2011 12:54:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVRsc-0005mo-1s for qemu-devel@nongnu.org; Tue, 29 Nov 2011 12:54:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVRsb-0005mc-LQ for qemu-devel@nongnu.org; Tue, 29 Nov 2011 12:54:06 -0500 Date: Tue, 29 Nov 2011 12:54:00 -0500 From: Dave Allan Message-ID: <20111129175400.GD4220@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] problem in setting up vmchannel with libvirt Reply-To: Dave Allan List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: will Cc: qemu-devel@nongnu.org On Tue, Nov 29, 2011 at 09:55:32AM +0000, will wrote: > Hi, > I am trying to set up vmchannel between the host and guest os. > > However, "sudo virsh start vm1" always gave me this error: > ************************************************************* > error: Failed to start domain vm1 > error: internal error Process exited while reading console log output: char > device redirected to /dev/pts/5 > bind(unix:/tmp/foo): Permission denied > chardev: opening backend "socket" failed > ************************************************************* > > Related xml is: > ************************************************************* > > > >
> > ************************************************************* > > I can succeed while I manually run the guest os by: > ************************************************************* > sudo kvm -device virtio-serial \ > -chardev socket,path=/tmp/foo,server,nowait,id=foo \ > -device virtserialport,chardev=foo,name=org.fedoraproject.port.0\ > /path/to/vm1.img > ************************************************************* > > I also noticed that libvirt is able to create socke > /var/lib/libvirt/qemu/vm1.monitor every time. I can't win even I change the unix > socket path to "/var/lib/libvirt/qemu/foo" > > > Any information will be appreciated! > > Try the libvirt-users list for questions like this one: libvirt-users@redhat.com Dave