<div dir="ltr">Hi,<div><br></div><div>A snapshot procedure cannot be cancelled. But if you really need to save the VM contents, you can edit the DB manually.</div><div><br></div><div>To do so, stop opennebula, and then look for the corresponding body column in the vm_pool table.</div>
<div>You need to set the DISK/SAVE element text to NO, and delete the elements DISK/SAVE_AS and DISK/SAVE_AS_SOURCE.</div><div><br></div><div>If this is a common problem, please open a feature request in our development portal: <a href="http://dev.opennebula.org/">http://dev.opennebula.org</a></div>
<div><br></div><div>Best regards.</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<div>
<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 5:11 PM, Fabella, Wesley <span dir="ltr"><<a href="mailto:wfabella@novetta.com" target="_blank">wfabella@novetta.com</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"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I've recently started managing our virtual machines using OpenNebula in our environment. It runs on top of our CentOS KVM servers.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I have taken have already ran the cmd:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">onevm disk-snapshot 37 0 X-test-20131018<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
which will take a deferred snapshot of the disk upon 'onevm shutdown' ... problem is I have decided I want to do a "hot" live snapshot and receive the following exception:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><b>oneadmin@headnode:~ $ onevm disk-snapshot --live 37 0 X-test-20131018</b></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<b>[VirtualMachineSaveDisk] Cannot use selected DISK. The DISK 0 is already going to be saved.</b></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
You will also see below VM no. 37 has deferred image to set to be no. 11. I have also deleted image no. 11 in hopes of free'ing VM no. 37 from deferred image capture. Turns out this wasn't the best option and I probably should have went the Sunstone GUI route.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Any ideas here to free my VM no. 37 from wanting to save image as no. 11 which now does not exist? At several glances I don't see a clear cut way to back out of my situation in order to choose Hot (--live) snapshot.</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thanks in advance, (see output below pertaining to this issue)</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">oneadmin@headnode:~ $ onevm show 37</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
VIRTUAL MACHINE 37 INFORMATION</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">ID : 37</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">NAME : X</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">USER : oneadmin</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">GROUP : oneadmin</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
STATE : ACTIVE</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">LCM_STATE : RUNNING</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">RESCHED : No</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">HOST : headnode</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">START TIME : 10/16 17:30:16</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">END TIME : -</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">DEPLOY ID : one-37</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VIRTUAL MACHINE MONITORING</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">NET_RX : 533.4M</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">USED CPU : 2</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">NET_TX : 189M</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
USED MEMORY : 8G</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">PERMISSIONS</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
OWNER : um-</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">GROUP : ---</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">OTHER : u--</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VM DISKS</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
ID TARGET IMAGE TYPE SAVE SAVE_AS</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 0 hda X file YES 11</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VM NICS</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> ID NETWORK VLAN BRIDGE IP MAC</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 0 meganet no br0 <a href="tel:128.123.0.12%20%C2%A0%20%C2%A002" value="+12812301202" target="_blank">128.123.0.12 02</a>:00:80:7b:00:0c</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
fe80::400:80ff:fe7b:c</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 1 tfbnet no br1 10.191.10.212 02:00:0a:bf:0a:d4</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> fe80::400:aff:febf:ad4</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VIRTUAL MACHINE HISTORY</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">SEQ HOST ACTION REAS START TIME PROLOG</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 0 headnode none none 10/16 17:30:30 4d 15h19m 0h49m48s</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">USER TEMPLATE</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">ERROR="Fri Oct 18 11:32:14 2013 : Error creating new VM Snapshot: Could not create snapshot for domain one-37."</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">SAVE="NO"</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">SAVE_AS="NO"</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VIRTUAL MACHINE TEMPLATE</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">CPU="8"</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">GRAPHICS=[</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
LISTEN="0.0.0.0",</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> PORT="5937",</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> TYPE="vnc" ]</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">MEMORY="8192"</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">OS=[</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
ARCH="x86_64" ]</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">TEMPLATE_ID="11"</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">VMID="37"</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">oneadmin@headnode:~ $ oneimage list</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 4 oneadmin oneadmin X default 100G OS No used 1</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 9 oneadmin oneadmin X default 100G OS No used 1</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
12 wfabella oneadmin X default 100G OS No used 5</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> 13 wfabella oneadmin ttylinux test default 40M OS No rdy 0</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<i><font color="#3333ff">"As the shadow follows the body,</font></i><div><i><font color="#3333ff">As we think,</font></i></div><div><i><font color="#3333ff">so we become." -zen quote</font></i></div></div><span class="HOEnZb"><font color="#888888"><div>
<br>
</div>-- <br><div dir="ltr"><div>Wesley J. Fabella</div><div>Novetta - DevOps Engineer</div><div>(desk) <a href="tel:813.304.2936" value="+18133042936" target="_blank">813.304.2936</a></div><div>(cell) at request</div><div>
<br></div><i><font color="#3333ff">"As the shadow follows the body,</font></i><div>
<i><font color="#3333ff">As we think,</font></i></div><div><i><font color="#3333ff">so we become." -zen quote</font></i></div><div><i><font color="#3333ff"><br></font></i></div><div><font><span style="font-family:monospace">IMPORTANT NOTICE:</span><span style="font-family:monospace"> </span><br style="font-family:monospace">
<span style="font-family:monospace">This e-mail message is intended for the use of the addressee and may contain company proprietary and/or confidential information that is subject to disclosure agreements. If you are not the authorized recipient, your viewing of such information, as well as any disclosure, copying, distribution or use of any of the information contained in or attached therein, is strictly prohibited. If you received this e-mail in error, please reply to the sender and delete the original message.</span></font><i><font color="#3333ff"><br>
</font></i></div></div>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>