<div dir="ltr"><div>Hi</div><div><br></div><div>You may try the solution from the libvirt community. Add a volatile disk of type qcow2 to the VM template, it will be created in the system ds and will give you the qcow volume to store the VM state....</div>
<div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 12:48 AM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>You may try the solution from the libvirt community. Add a volatile disk of type qcow2 to the VM template, it will be created in the system ds and will give you the qcow volume to store the VM state....</div>
<div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ruben</div></font></span></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 8:55 AM, Tobias Brunner <span dir="ltr"><<a href="mailto:tobias@tobru.ch" target="_blank">tobias@tobru.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well, can you do it manually on the same configuration? It should be<br>
easy to verify.<br>
</blockquote>
<br></div>
I've tried to do it manually:<br>
<br>
# virsh snapshot-create one-5<div><br>
error: unsupported configuration: internal checkpoints require at least one disk to be selected for snapshot<br>
<br></div>
Asking the libvirt ML leads to this answer:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
An internal snapshot of a VM requires that the VM has at least one disk<br>
using a QCOW2 volume or similar. The memory state is saved in that<br>
image. Your VM has only a RAW disk image and thus it can't be used for<br>
internal snapshot.<br>
<br>
You can either use an external snapshot (the memory image is stored<br>
separately), but the support for external snapshots isn't finished yet<br>
(they can't be reverted automatically).<br>
<br>
The second option is to convert your VM to a qcow2 image file..<br>
</blockquote>
<br>
And later:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can I create an external snapshot?<br>
</blockquote>
Add '--disk-only' for an offline domain, or use 'virsh<br>
snapshot-create-as --memspec' instead of 'snapshot-create' for an online<br>
guest (you can also use snapshot-create for an external snapshot, but<br>
you have to write appropriate XML for the case, rather than relying on<br>
the no-arg option that provides a default XML for an internal snapshot;<br>
so I find snapshot-create-as a lot easier to work with).<br>
<br>
Internal snapshots require qcow2 (or the less-used qed) file format,<br>
full stop. If you want your snapshots to live on RBD storage backend,<br>
then you either layer the qcow2 file on top of that backend, or you use<br>
external snapshots.<br>
</blockquote>
<br>
Some system information:<br>
* Ubuntu 13.04 64Bit<br>
* virsh --version: 1.0.2<br>
* OpenNebula version 4.2<br>
* The XML of the VM is below<br>
<br>
Does anyone have snapshots running using RBD?<br>
<br>
Cheers,<br>
Tobias<br>
<br>
<br>
<domain type='kvm' id='4'><br>
<name>one-5</name><br>
<uuid>cff38c6a-2996-7709-c4f4-<u></u>0ed826c2fb02</uuid><br>
<memory unit='KiB'>524288</memory><br>
<currentMemory unit='KiB'>524288</<u></u>currentMemory><br>
<vcpu placement='static'>1</vcpu><br>
<cputune><br>
<shares>1024</shares><br>
</cputune><br>
<os><br>
<type arch='x86_64' machine='pc-i440fx-1.4'>hvm</<u></u>type><br>
<boot dev='hd'/><br>
</os><br>
<features><br>
<acpi/><br>
</features><br>
<clock offset='utc'/><br>
<on_poweroff>destroy</on_<u></u>poweroff><br>
<on_reboot>restart</on_reboot><br>
<on_crash>destroy</on_crash><br>
<devices><br>
<emulator>/usr/bin/kvm</<u></u>emulator><br>
<disk type='network' device='disk'><br>
<driver name='qemu' type='raw' cache='none'/><br>
<source protocol='rbd' name='one/one-5-5-0'/><br>
<target dev='hda' bus='ide'/><br>
<alias name='ide0-0-0'/><br>
<address type='drive' controller='0' bus='0' target='0' unit='0'/><br>
</disk><br>
<disk type='file' device='cdrom'><br>
<driver name='qemu' type='raw'/><br>
<source file='/var/lib/one//<u></u>datastores/0/5/disk.1'/><br>
<target dev='hdb' bus='ide'/><br>
<readonly/><br>
<alias name='ide0-0-1'/><br>
<address type='drive' controller='0' bus='0' target='0' unit='1'/><br>
</disk><br>
<controller type='ide' index='0'><br>
<alias name='ide0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'<br>
function='0x1'/><br>
</controller><br>
<controller type='usb' index='0'><br>
<alias name='usb0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'<br>
function='0x2'/><br>
</controller><br>
<interface type='bridge'><br>
<mac address='02:00:c0:a8:31:97'/><br>
<source bridge='vmbr0'/><br>
<virtualport type='openvswitch'><br>
<parameters interfaceid='6e492227-cd8b-<u></u>f472-9f3d-1161ddf9ecfc'/><br>
</virtualport><br>
<target dev='vnet0'/><br>
<alias name='net0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'<br>
function='0x0'/><br>
</interface><br>
<input type='mouse' bus='ps2'/><br>
<graphics type='vnc' port='5905' autoport='no' listen='0.0.0.0'><br>
<listen type='address' address='0.0.0.0'/><br>
</graphics><br>
<video><br>
<model type='cirrus' vram='9216' heads='1'/><br>
<alias name='video0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'<br>
function='0x0'/><br>
</video><br>
<memballoon model='virtio'><br>
<alias name='balloon0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'<br>
function='0x0'/><br>
</memballoon><br>
</devices><br>
<seclabel type='dynamic' model='apparmor' relabel='yes'><br>
<label>libvirt-cff38c6a-2996-<u></u>7709-c4f4-0ed826c2fb02</label><br>
<br>
<imagelabel>libvirt-cff38c6a-<u></u>2996-7709-c4f4-0ed826c2fb02</<u></u>imagelabel><br>
</seclabel><br>
</domain><div><div><br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><div class="im">-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><div>-- </div><div>Join us at OpenNebulaConf2013 in Berlin, 24-26 September, 2013</div></div><div>-- </div></div>Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div>
</div>