[one-users] write changes using "save as" and qcow2
Andreas Calvo
andreas.calvo at scytl.com
Fri May 4 02:07:38 PDT 2012
What I see when I run the SHUTDOWN command is:
Fri May 4 11:03:11 2012 [LCM][I]: New VM state is SHUTDOWN
Is there something else I should do?
Image is not marked as persistent, should it be changed?
On Thu, 2012-05-03 at 23:51 -0400, Shankhadeep Shome wrote:
> If you use a qcow backing store this is what happens in the background
>
> qemu-img create -backing_store (your original image) -f qcow2 (running
> image)
>
> when you save as its
>
> qemu-img convert (running image + backing store) -O qcow2 (new base
> image)
>
> The vm log should look like this... check to see if you have errors.
> How big is your source image? Conversion can take a while depending on
> your image size and backing store.
>
> Thu May 3 23:41:28 2012 [LCM][I]: New VM state is SHUTDOWN
> Thu May 3 23:41:48 2012 [VMM][I]: ExitCode: 0
> Thu May 3 23:41:48 2012 [VMM][I]: Successfully execute virtualization
> driver operation: shutdown.
> Thu May 3 23:41:48 2012 [VMM][I]: ExitCode: 0
> Thu May 3 23:41:48 2012 [VMM][I]: Successfully execute network driver
> operation: clean.
> Thu May 3 23:41:49 2012 [LCM][I]: New VM state is EPILOG
> Thu May 3 23:42:42 2012 [TM][I]: mvds:
> Moving /var/lib/one/datastores/0/88/disk.0 to datastore
> as /var/lib/one/datastores/101/4f062daaf6ad2f47fd36c6b35a0bd56c
> Thu May 3 23:42:42 2012 [TM][I]: ExitCode: 0
> Thu May 3 23:42:43 2012 [TM][I]: delete:
> Deleting /var/lib/one/datastores/0/88
> Thu May 3 23:42:43 2012 [TM][I]: ExitCode: 0
> Thu May 3 23:42:43 2012 [DiM][I]: New VM state is DONE
>
> On Thu, May 3, 2012 at 2:44 PM, Andreas Calvo
> <andreas.calvo at scytl.com> wrote:
> >
> > Hi all,
> > What is the procedure to save a running VM as an image if it's
> running
> > with QCOW2?
> >
> > As per the documentation, I've used shutdown after issuing save as,
> but
> > the image gets in a LOCKED stated and do not progress.
> > If the VM gets deleted, the image changes to READY but I think it's
> just
> > a link to the old image used by the VM. Trying to start a new
> template
> > using this new image throws an error.
> >
> > Tried with SHUTDOWN and STOP without luck.
> >
> > I guess I'm missing something, does anyone how to do it?
> >
> > Thanks in advance
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
More information about the Users
mailing list