qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Amit Shah <amit.shah@redhat.com>
To: Joel Uckelman <joel@lightboxtechnologies.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] unix domain socket communication with guests
Date: Tue, 21 Jun 2011 14:17:20 +0530	[thread overview]
Message-ID: <20110621084720.GA4793@amit-x200.redhat.com> (raw)
In-Reply-To: <BANLkTimyMGRDvWD7zW-MHpq1PT3friz_MQ@mail.gmail.com>

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

  reply	other threads:[~2011-06-21  8:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 16:24 [Qemu-devel] unix domain socket communication with guests Joel Uckelman
2011-06-21  8:47 ` Amit Shah [this message]
2011-06-23 15:37   ` Joel Uckelman
2011-06-24  2:54     ` Amit Shah
2011-06-24 10:54       ` Joel Uckelman
2011-06-27  9:41         ` Amit Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110621084720.GA4793@amit-x200.redhat.com \
    --to=amit.shah@redhat.com \
    --cc=joel@lightboxtechnologies.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).