Hi,

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.
From OpenNebula/Sunstone, I select that VM and then:

 * When I press "PowerOff", after a while, the state changes to
   "RUNNING" but the VM never shutdowns.
 * 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.

Eventually, we had to instantiate again the template to recreate the VM. The image was a persistent one.


This is the log of that VM after pressing Shutdown:

Mon Dec 10 10:22:11 2012 [LCM][I]: New VM state is SHUTDOWN
Mon Dec 10 10:23:30 2012 [VMM][I]: ExitCode: 0
Mon Dec 10 10:23:30 2012 [VMM][I]: Successfully execute virtualization driver operation: shutdown. 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". Mon Dec 10 10:23:30 2012 [VMM][I]: clean: Executed "sudo /usr/bin/ovs-ofctl del-flows vbr1 in_port=19".
Mon Dec 10 10:23:30 2012 [VMM][I]: ExitCode: 0
Mon Dec 10 10:23:30 2012 [VMM][I]: Successfully execute network driver operation: clean.
Mon Dec 10 10:23:30 2012 [LCM][I]: New VM state is EPILOG
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
Mon Dec 10 10:23:30 2012 [TM][I]: ExitCode: 0
Mon Dec 10 10:23:31 2012 [TM][I]: delete: Deleting /var/lib/one/datastores/0/32
Mon Dec 10 10:23:31 2012 [TM][I]: ExitCode: 0
Mon Dec 10 10:23:31 2012 [DiM][I]: New VM state is DONE


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?


Thanks in advance,

Carlos.
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to