[one-users] write changes using "save as" and qcow2

Shankhadeep Shome shank15217 at gmail.com
Thu May 3 20:51:29 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120503/a9c771eb/attachment-0003.htm>


More information about the Users mailing list