From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYwcK-00039o-3s for qemu-devel@nongnu.org; Tue, 21 Jun 2011 04:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYwcI-0006Zh-S4 for qemu-devel@nongnu.org; Tue, 21 Jun 2011 04:47:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYwcI-0006ZD-7b for qemu-devel@nongnu.org; Tue, 21 Jun 2011 04:47:26 -0400 Date: Tue, 21 Jun 2011 14:17:20 +0530 From: Amit Shah Message-ID: <20110621084720.GA4793@amit-x200.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] unix domain socket communication with guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joel Uckelman Cc: qemu-devel@nongnu.org On (Mon) 20 Jun 2011 [18:24:38], Joel Uckelman wrote: > I'm trying to set up a unix domain socket with a guest on one end and > the host on the other, where the server is running on and bound to the > socket on the guest. I've been able to get the reverse, where the > server is running on the host, this way: > > qemu-kvm -kernel kernel -initrd initrd -hda root -device virtio-serial > -serial stdio -chardev > socket,path=/home/uckelman/projects/lightbox/supermin/foo,id=channel0,name=org.libguestfs.channel.0 With this, you have a virtio-serial connection between the host and the guest. The unix socket exists between a client program and the qemu invocation on the host, with the qemu end being wired to the host end of the virtio-serial connection. You cannot have a unix socket between a host and a guest, they run different kernels. Amit