[libvirt-users] Way for a VM to reboot from a snapshot?

Using the koan command, a VM can essentially request that it be reprovisioned. Is there any way for a VM to request that it reboot from a snapshot taken with virsh? Thanks.. -- #ken B-)} Ken Coar, RHCE, RHCSA, Sanagendamgagwedweinini IT Engineering Tower, Red Hat/RDU "Millennium hand and shrimp!"

On 05/10/2013 09:47 AM, Ken Coar wrote:
Using the koan command, a VM can essentially request that it be reprovisioned.
Is there any way for a VM to request that it reboot from a snapshot taken with virsh?
If there is such a command, it's beyond the scope of libvirt: libvirt is only about actions initiated by the host, not the guest, but this sounds like something where you want the guest to initiate something by communicating with the host. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 05/10/2013 11:47 AM, Ken Coar wrote:
Using the koan command, a VM can essentially request that it be reprovisioned.
That's the koan --server=${COBBLERHOST} --replace-self --system=$(hostname -f) command run on the guest. Frobs the grub.conf to re-kickstart.
Is there any way for a VM to request that it reboot from a snapshot taken with virsh?
Apparently the answer to this is 'no'. However, it seems as though I might be able to ask the host's libvirtd to do it -- if the guest can find out who its host is. I see (with some help from IRC) that the VM's libvirtd UUID appears in the output of dmidecode, but I see no way to relate that to a particular host IPA (IP Address) or FQDN for the host. How can a guest find out who its host is? Thanks! -- #ken B-)} Ken Coar, RHCE, RHCSA, Sanagendamgagwedweinini IT Engineering Tower, Red Hat/RDU "Millennium hand and shrimp!"
participants (2)
-
Eric Blake
-
Ken Coar