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

Re: [Libguestfs] [PATCH 0/8 v2 DISCUSSION ONLY] Connecting to live virtual machines

On Fri, Jan 28, 2011 at 07:36:34PM +0000, Richard W.M. Jones wrote:
> NOTE: This is HIGHLY EXPERIMENTAL and can eat babies ...
> Modify the guest libvirt XML to add the virtio-serial channel:
>   <channel type='unix'>
>     <source mode='bind' path='/tmp/socket'/>
>     <target type='virtio' name='org.libguestfs.channel.0'/>
>   </channel>
> In the guest, compile guestfsd and run it like this:
>   sudo daemon/guestfsd -rv
> (XXX - should current directory be / ...?)

Yeah, I think it makes sense to have it chdir(/) so that
it doesn't accidentally cause a random FS to remain busy.

> In the host connect using:
>   sudo guestfish -d GuestName --live
>   ><fs> run
>   ><fs> ll /
>    etc.

I think this series all looks fine. Obviously the main implication you
mentioned before is that we'll need to be strict about the RPC wire
back-compat support from this point forward.

Also need a init script (or systemd unit) to start the guestfsd if-only-if
it sees the virtio socket present inside the guest.

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

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