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

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



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 / ...?)

In the host connect using:

  sudo guestfish -d GuestName --live
  ><fs> run
  ><fs> ll /
   etc.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/


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