From: Chris Lalancette <clalance@redhat.com>
To: Steve Lorimer <slorimer@kmbc.edu>
Cc: kvm@vger.kernel.org
Subject: Re: How to do an automated backup?
Date: Tue, 04 Nov 2008 09:15:17 +0100 [thread overview]
Message-ID: <49100495.3040801@redhat.com> (raw)
In-Reply-To: <490F51CD.8050505@kmbc.edu>
Steve Lorimer wrote:
> Ok, should be a simple question here: How to backup a KVM host image.
...
> 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.
"virsh shutdown" should work, provided you have a new enough version of libvirt
(what version are you using?), you have the <acpi/> tag set in the libvirt XML,
and your guest (what kind of guest is it?) is using ACPI. virsh shutdown works
by sending an ACPI event to the guest, basically equivalent to hitting the soft
power button on a piece of hardware. In recent testing, I was able to use virsh
shutdown to shut down basically any 2.6 based Linux guest, and any Windows guest
using ACPI.
That said, doing the backup "inside" the guest, as suggested by Javier, is
probably a better solution.
--
Chris Lalancette
next prev parent reply other threads:[~2008-11-04 8:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2008-11-04 8:27 ` Martin Maurer
2008-11-06 15:48 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49100495.3040801@redhat.com \
--to=clalance@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=slorimer@kmbc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox