Hi,<div><br></div><div>If the VM does not disappear after a shutdown, OpenNebula assumes that the guest ignored the acpi signal and changes its state to running. You may want to check that the acpi daemon is running.</div>
<div>Alternatively you can execute a cancel operation, it is the equivalent of a shutdown but destroying the VM.</div><div><br></div><div>When a VM is shut down, its life cycle ends and can't be redeployed, you need to instantiate another one from the original Template. To prevent this from happening, you can suspend, poweroff or stop your VMs. Suspended and powered-off machines are kept in the same Host, and will take some of the Host capacity.</div>
<div><br></div><div>Regards</div><div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<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><br>
<br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 11:13 AM, Carlos Jiménez <span dir="ltr"><<a href="mailto:cjimenez@eneotecnologia.com" target="_blank">cjimenez@eneotecnologia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I have a computer running OpenNebula 3.8 and two hosts running
CentOS 6.3 and KVM. I have one VM running in one of the hosts.<br>
From OpenNebula/Sunstone, I select that VM and then:<br>
<ul>
<li>When I press "PowerOff", after a while, the state changes to
"RUNNING" but the VM never shutdowns.</li>
<li>When I press "Shutdown" the state of the VM changes to
"SHUTDOWN" but the VM continues working (perhaps KVM doesn't
support correctly ACPI signaling). I've connected via ssh to the
VM and the executed "poweroff". The VM successfully switched off
but then the VM entry disappeared from Sunstone. I've checked
the existence of the VM in the host using virsh and it lists
nothing.</li>
</ul>
Eventually, we had to instantiate again the template to recreate the
VM. The image was a persistent one.<br>
<br>
<br>
This is the log of that VM after pressing Shutdown:<br>
<br>
Mon Dec 10 10:22:11 2012 [LCM][I]: New VM state is SHUTDOWN<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: ExitCode: 0<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: Successfully execute
virtualization driver operation: shutdown.<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: clean: Executed "sudo
/usr/bin/ovs-ofctl del-flows vbr1
,in_port=19,dl_src=02:00:c0:a8:0f:7e".<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: clean: Executed "sudo
/usr/bin/ovs-ofctl del-flows vbr1 in_port=19".<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: ExitCode: 0<br>
Mon Dec 10 10:23:30 2012 [VMM][I]: Successfully execute network
driver operation: clean.<br>
Mon Dec 10 10:23:30 2012 [LCM][I]: New VM state is EPILOG<br>
Mon Dec 10 10:23:30 2012 [TM][I]: mvds: Moving
/var/lib/one/datastores/0/32/disk.0 to datastore as
/var/lib/one/datastores/1/c1576eab6777fc91d8be145c1067911d<br>
Mon Dec 10 10:23:30 2012 [TM][I]: ExitCode: 0<br>
Mon Dec 10 10:23:31 2012 [TM][I]: delete: Deleting
/var/lib/one/datastores/0/32<br>
Mon Dec 10 10:23:31 2012 [TM][I]: ExitCode: 0<br>
Mon Dec 10 10:23:31 2012 [DiM][I]: New VM state is DONE<br>
<br>
<br>
As stated in the logs, a "delete" command is executed, so the VM
instance has been erased. This would be an undesirable behaviour for
us. What would be the recommended procedure to shutdown a VM without
deleting that instance in a KVM environment?<br>
<br>
<br>
Thanks in advance,<br>
<br>
Carlos.<br>
</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>