[Libvir] save and restore guest
Daniel P. Berrange
berrange at redhat.com
Wed Oct 10 14:15:09 UTC 2007
On Mon, Oct 08, 2007 at 04:27:00PM +0200, Farkas Levente wrote:
> Daniel P. Berrange wrote:
> > On Sat, Oct 06, 2007 at 02:29:39PM +0200, Farkas Levente wrote:
> >> hi,
> >> if i use xen with xendomain it's possible to save and restore guest
> >> state. if i use libvirt it's not working (at least by default with kvm).
> >> i mean if i stop or restart libvirtd all guests a stopped and even if i
> >> restart libvirtd i've to start all guests manually. imho this's a very
> >> essential feature. what is the reason this not working with libvirtd?:
> >> - this feature is missing from libvirtd? or
> >
> > You can set KVM/QEMU guests to autostart with
> >
> > virsh autostart {NAME|ID|UUID}
>
> thanks, but go back to my first question. afais /etc/init.d/libvirtd
> simple kill libvirtd, but virsh has a command save/restore. wouldn't be
> it's much better to save guest's state on stop, restore on start in
> stead of start if there is a saved state. i can send a patch to the
> /etc/init.d/libvirtd, just would like to know is there any reason it's
> not that way? anyway xendomains do it in the save way.
The save/restore capability is currently only available in the KVM-ified
version of QEMU. We could make it try to save, and failing that destroy
the guest. The xendomains scripts isn't a good model to emulate though.
The autostart/kill functionality is part of the libvirt daemon itself. Any
save/restore capability would be best integrated there
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the libvir-list
mailing list