Received: from eggs.gnu.org ([140.186.70.92]:38293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVKU8-00035L-5W for qemu-devel@nongnu.org; Tue, 29 Nov 2011 05:00:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVKU3-0004vT-32 for qemu-devel@nongnu.org; Tue, 29 Nov 2011 05:00:20 -0500 Received: from lo.gmane.org ([80.91.229.12]:54206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVKU2-0004vD-Rs for qemu-devel@nongnu.org; Tue, 29 Nov 2011 05:00:15 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RVKTy-00061L-6h for qemu-devel@nongnu.org; Tue, 29 Nov 2011 11:00:10 +0100 Received: from 129.115.2.18 ([129.115.2.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2011 11:00:10 +0100 Received: from mail278151237 by 129.115.2.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2011 11:00:10 +0100 From: will Date: Tue, 29 Nov 2011 09:55:32 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] problem in setting up vmchannel with libvirt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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!