<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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>
</body>
</html>