From: Soren Hansen <soren@ubuntu.com>
To: kvm@vger.kernel.org
Subject: Re: loadvm: "Error -1 while loading VM state"
Date: Tue, 1 Jul 2008 22:47:05 +0200 [thread overview]
Message-ID: <20080701204705.GK7963@ralph.linux2go.dk> (raw)
In-Reply-To: <f95a91fd0807011227g4ed03936j8854e927eb097332@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
On Tue, Jul 01, 2008 at 10:27:19PM +0300, Slohm Gadaburi wrote:
> I can't get qemu/kvm to loadvm a saved state.
This is a known issue. We applied a patch to fix a security problem in
kvm that allowed guests to write outside the boundaries of the
designated disk image. savevm works by writing the snapshot data at the
end of qcow2 files, which is conveniently located just outside
aforementioned boundary. This means that the savevm actually fails, but
that error is never reported back to the user and everythings seems to
be in working order. However, when you try to loadvm, you'll notice that
the snapshot was never actually saved.
I fixed this in Ubuntu Intrepid (our upcoming release) and Debian
unstable by simply allowing writes outside the disk image boundaries if
the guest isn't running. I sent the updated security patch back to the
original source (Dan Berrange from RedHat), but I'm not sure what
happened after that.
FWIW, the preferred way to save VM state (or to use KVM at all, really)
in Ubuntu is through libvirt/virt-manager anyway, but this bug really
should be fixed. It's on my todo-queue somewhere, but that queue is
rather long, I'm afraid.
You're welcome on the ubuntu-server mailing list with these questions by
the way. You can see how to subscribe here:
http://lists.ubuntu.com/ubuntu-server
--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
next prev parent reply other threads:[~2008-07-01 20:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 19:27 loadvm: "Error -1 while loading VM state" Slohm Gadaburi
2008-07-01 20:47 ` Soren Hansen [this message]
2008-07-02 7:31 ` Slohm Gadaburi
2008-07-02 7:38 ` Soren Hansen
2008-07-02 7:54 ` Slohm Gadaburi
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=20080701204705.GK7963@ralph.linux2go.dk \
--to=soren@ubuntu.com \
--cc=kvm@vger.kernel.org \
/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