Centos7 does not complete shutdown?

ozgurerdogan

Renowned Member
May 2, 2010
621
6
83
Bursa, Turkey, Turkey
When I halt centos7 vm, it starts shutdown process but vm sttus never fall back to stopped state. I had to stop vm manually. This is same for all new vms wit centos 7. Am I missing a setting?
 
Hello,

You could configure your VM to use Qemu Agent and it should shutdown properly.

1.- Inside your VM, install qemu agent.
Code:
yum install qemu-guest-agent

2.- Shutdown your VM.

3.- From Proxmox web gui, go to the VM Options and enable Qemu Agent.

4.- Once enabled, start your VM and test again the shutdown... it should work.

Cheers,
sahsanu
 
When I halt centos7 vm, it starts shutdown process but vm sttus never fall back to stopped state. I had to stop vm manually. This is same for all new vms wit centos 7. Am I missing a setting?

If you're not using Qemu, this can also be related to faulty /etc/init.d/ scripts which are causing the shutdown to abort on a system level. They are very hard to diagnose, since there is nothing in the logs. So, if you have custom /etc/init.d scripts, they are most likely the problem.