public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* How to do an automated backup?
@ 2008-11-03 19:32 Steve Lorimer
  2008-11-03 19:43 ` Javier Guerra
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steve Lorimer @ 2008-11-03 19:32 UTC (permalink / raw)
  To: kvm

Ok, should be a simple question here:  How to backup a KVM host image.

My first plan - failure:
1) Suspend / hibernate (using virsh ... save) image to disk
2) Backup vm disk image & suspend file
3) Backup .xml
4) Restore suspended image
This would accomplish a backup that could be reactivated very quickly as 
bootup would not even be required.
However, in testing it failed.  Of two VM's tried, one worked, but the 
other one never came back up.  The network interface never reenabled and 
this system itself sat maxing out it's cpu core until manually terminated.

My second plan:
1) Use virsh to shutdown the VM
2) Backup vm file & xml
3) Start vm (regular bootup)
This takes longer, but can be tolerated in order to get a backup.  
However, this fails also:
virsh -c qemu:///system shutdown kvmtest
The command fails to send any kind of shutdown request to the VM guest.  
As a result, the only thing that works is to kill it (the virsh command 
for that does work).  However, this is not acceptable for a backup.

Nothing out of the ordinary in my system setup:
VM Server:  Ubuntu Server
Guest OS's: Also Ubuntu

Any thoughts, advice?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-06 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 19:32 How to do an automated backup? Steve Lorimer
2008-11-03 19:43 ` Javier Guerra
2008-11-04  8:15 ` Chris Lalancette
2008-11-04  8:27 ` Martin Maurer
2008-11-06 15:48 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox