qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] unix domain socket communication with guests


From: Joel Uckelman
Subject: Re: [Qemu-devel] unix domain socket communication with guests
Date: Thu, 23 Jun 2011 17:37:50 +0200

On Tue, Jun 21, 2011 at 10:47 AM, Amit Shah <address@hidden> wrote:
> 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.
>

Thanks for the explanation. I was mistaken about how virtio-serial
worked---I thought it looked like a unix socket on both sides, and
there was some cleverness between the ends to make that happen.

I guess this means I need to get networking running on the guest so
that it has a port visible to the host on which my server can listen.
Is there a guide somewhere for doing that? I've not had any success in
an afternoon of searching and trying.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]