* Re: [Qemu-devel] segfault while booting from saved snapshot
[not found] ` <CAPLK-i8nssphKE5P19ZD=FVe-Qqav4NZoP5ci7yfjfz1aKZfMQ@mail.gmail.com>
@ 2014-05-13 8:20 ` Shehbaz Jaffer
2014-05-13 8:38 ` Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Shehbaz Jaffer @ 2014-05-13 8:20 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Dr. David Alan Gilbert, qemu-devel@nongnu.org
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.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] segfault while booting from saved snapshot
2014-05-13 8:20 ` [Qemu-devel] segfault while booting from saved snapshot Shehbaz Jaffer
@ 2014-05-13 8:38 ` Kevin Wolf
2014-05-13 9:21 ` Shehbaz Jaffer
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wolf @ 2014-05-13 8:38 UTC (permalink / raw)
To: Shehbaz Jaffer; +Cc: Dr. David Alan Gilbert, qemu-devel@nongnu.org
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] segfault while booting from saved snapshot
2014-05-13 8:38 ` Kevin Wolf
@ 2014-05-13 9:21 ` Shehbaz Jaffer
0 siblings, 0 replies; 3+ messages in thread
From: Shehbaz Jaffer @ 2014-05-13 9:21 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Dr. David Alan Gilbert, qemu-devel@nongnu.org
On Tue, May 13, 2014 at 2:08 PM, Kevin Wolf <kwolf@redhat.com> wrote:
> 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"
>
Thanks, It worked.
For others who want to do the same please note:
We can load the vmstate saved earlier appending:
-incoming "exec:cat /tmp/vmstate"
to the command while launching the new VM.
> 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
--
Shehbaz Jaffer
MTS | Advanced Technology Group | NetApp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-13 9:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2014-05-13 9:21 ` Shehbaz Jaffer
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).