I am using OpenNebula 5.2 and KVM hypervisor. I have a problem with Windows machine regarding RUNNING/POWEROFF state. VM is running Windows 2k12 and auto POWEROFF. From VM log I saw the error message is “VM running but monitor state is POWEROFF”. I don’t kown why VM auto shutdown and move to POWEROFF state. What could be the reason for causing this issue?
Thu Dec 1 11:56:30 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 11:56:30 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Dec 1 11:56:30 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 11:56:30 2016 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Thu Dec 1 11:56:31 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 11:56:31 2016 [Z0][VMM][I]: Successfully execute network driver operation: post.
Thu Dec 1 11:56:31 2016 [Z0][VM][I]: New LCM state is RUNNING
Thu Dec 1 12:57:27 2016 [Z0][LCM][I]: VM running but monitor state is POWEROFF
Thu Dec 1 12:57:27 2016 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Thu Dec 1 12:57:27 2016 [Z0][VM][I]: New state is POWEROFF
Thu Dec 1 12:57:27 2016 [Z0][VM][I]: New LCM state is LCM_INIT
Thu Dec 1 12:57:53 2016 [Z0][VM][I]: New state is ACTIVE
Thu Dec 1 12:57:53 2016 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Thu Dec 1 12:57:53 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/120/deployment.5
Thu Dec 1 12:57:53 2016 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Thu Dec 1 12:57:54 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 12:57:54 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Dec 1 12:57:54 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 12:57:54 2016 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Thu Dec 1 12:57:55 2016 [Z0][VMM][I]: ExitCode: 0
Thu Dec 1 12:57:55 2016 [Z0][VMM][I]: Successfully execute network driver operation: post.
Thu Dec 1 12:57:55 2016 [Z0][VM][I]: New LCM state is RUNNING
Hi vynt!
Though some days have passed and you may have found a solution, I guess that the VM is indeed running in your KVM hypervisor but the monitor driver is having problems to get monitoring information. OpenNebula then assumes that it’s in the POWEROFF state according to the " VM running but monitor state is POWEROFF". I think you could try to check it there’s an issue with the monitor for that VM.
Could you paste the output of the following command (run it as oneadmin user) when you encounter that issue?
onevm show 120 -x (120 is the VM_ID according to your logs)
You may also try to run the following command:
/var/tmp/one/vmm/kvm/poll deploy_id
where deploy_id is an attribute assigned to your VM that you may find in the onevm show 120 output.
Finally you could also check the /var/log/one/oned.log and try to find errors that may be related.
Tue Jul 16 15:10:31 2019 [Z0][VM][I]: New LCM state is RUNNING
Tue Jul 16 15:17:08 2019 [Z0][LCM][I]: VM running but monitor state is POWEROFF
Tue Jul 16 15:17:08 2019 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Tue Jul 16 15:17:08 2019 [Z0][VM][I]: New state is POWEROFF
Tue Jul 16 15:17:08 2019 [Z0][VM][I]: New LCM state is LCM_INIT
This is a post with more than 6 years from the latest reply. There’s a comment above that says the user managed to fix it:
However, it will help us a lot if you open a new topic, and add as much info as possible (logs, error message, etc).
In any case, please let us know which OpenNebula version are you using (we are currently in 6.10). But have you tried the solution proposed above?, if you done that already, please follow these checks:
Status of the VM on the hypervisor?, check it by executing virsh list --all
Status of the monitoring: /var/log/one/monitor.log
Network Connectivity
Check Hosts and logs: /var/log/one/oned.log
Feel free to open a new topic if you want to add information.