From: Kevin Wolf <kwolf@redhat.com>
To: Shehbaz Jaffer <shehbazjaffer007@gmail.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] segfault while booting from saved snapshot
Date: Tue, 13 May 2014 10:38:00 +0200 [thread overview]
Message-ID: <20140513083800.GA5267@noname.redhat.com> (raw)
In-Reply-To: <CAPLK-i80orP-ODmPcNvhj-8dE-zAPw0e-zvOukYiur5wo26K1Q@mail.gmail.com>
Am 13.05.2014 um 10:20 hat Shehbaz Jaffer geschrieben:
> Hi,
>
> Could anyone please give me the command to do live-migration to to a
> file? I have tried searching on QEMU Wiki but all the articles that I
> have come across point to snapshotting the disk, and not the entire VM
> to a file.
In the HMP monitor: migrate "exec:cat > /tmp/vmstate"
Kevin
> Appreciate your help.
>
> Thanks,
> Shehbaz
>
> On Sat, Apr 19, 2014 at 11:07 PM, Shehbaz Jaffer
> <shehbazjaffer007@gmail.com> wrote:
> > Thankyou for your reply. Live migration does seem like an interesting option
> > to explore. I will look into it and get back if I get stuck.
> >
> >
> > On Wed, Apr 16, 2014 at 6:16 PM, Kevin Wolf <kwolf@redhat.com> wrote:
> >>
> >> Am 15.04.2014 um 16:55 hat Shehbaz Jaffer geschrieben:
> >> > Thankyou for your reply. I do not face the error using qemu.1.7.1
> >> > version.
> >> >
> >> > 1 quick question:
> >> >
> >> > I want to create a qcow2 image file after my VM has completed booting;
> >> > i.e.,
> >> > when I boot from this new snapshot, I should directly get to my VMs
> >> > login
> >> > prompt. How can i create such a qcow2 snapshot?
> >> >
> >> > I tried stopped the VM using QMP after the VM had completed booting, and
> >> > then
> >> > using host CLI to create a qcow2 image :
> >> >
> >> > qemu-img create -b ubuntu.qcow2 -f qcow2 newsnap.qcow2
> >> >
> >> > This created a new qcow2 file - newsnap.qcow2 on top of ubuntu.qcow2,
> >> > however
> >> > when I boot using newsnap.qcow2, It takes me again through the complete
> >> > boot
> >> > process - till the login prompt.
> >> >
> >> > Is there a way to create the qcow2 snapshot after VM has completed
> >> > booting?
> >>
> >> The reason for this is that you only create a snapshot of the disk this
> >> way, not of the VM state (i.e. RAM contents, device states, etc.)
> >>
> >> The most convenient way when you're using qemu directly is probably
> >> using internal snapshots. This is what the savevm/loadvm HMP commands
> >> provide (not sure if there is a QMP equivalent); you can also use the
> >> -loadvm command line parameter to start a VM from a snapshot.
> >>
> >> Another option is that you take an external snapshot in a new qcow2 file
> >> like you did, but you additionally do a live migration into a file. When
> >> restarting the VM, you need to use the -incoming option and feed that
> >> file back to qemu. As this is a bit more cumbersome, this is probably
> >> more an option for management tools than for manual use.
> >>
> >> Kevin
> >
> >
> >
> >
> > --
> > Shehbaz Jaffer
> > MTS | Advanced Technology Group | NetApp
>
>
>
> --
> Shehbaz Jaffer
> MTS | Advanced Technology Group | NetApp
next prev parent reply other threads:[~2014-05-13 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPLK-i_qkjJYiwcoZ35F9h-eb62GULC__zHTT-_P_=RnpHtR9A@mail.gmail.com>
[not found] ` <20140415080714.GC2378@work-vm>
[not found] ` <CAPLK-i9ekHzHtv+wb6jQ7KL=EV_H7zgn_cY75fvFbq=GLye=fQ@mail.gmail.com>
[not found] ` <20140416124617.GC4472@noname.redhat.com>
[not found] ` <CAPLK-i8nssphKE5P19ZD=FVe-Qqav4NZoP5ci7yfjfz1aKZfMQ@mail.gmail.com>
2014-05-13 8:20 ` [Qemu-devel] segfault while booting from saved snapshot Shehbaz Jaffer
2014-05-13 8:38 ` Kevin Wolf [this message]
2014-05-13 9:21 ` Shehbaz Jaffer
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=20140513083800.GA5267@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=shehbazjaffer007@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).