virsh shutdown not working on centos 7
Hi,
I'm running Centos 7, and I have about 4 virtual machines running on KVM.
I want to shutdown gracefully these VMs for backup purposes.
The command 'virsh shutdown <vm>' doesn't do anything.
I still see the VMs running on virt-manager gui and also if I run 'virsh list --all'.
I have VMs running Centos 7, Ubuntu, and Windows Server 2003.
None of these VMs respond to the 'virsh shutdown <vm>' command.
On the Centos 7 VM, if I have the console opened waiting to enter username and password to login, and I run the 'virsh shutdown <vm>' command, nothing happens. However, if I login and run the same command, the screen on the VM console turns to black. But is not shutdown. The status still shows as running.
On the Ubuntu VM, it's a little better. If a have this VM console opened and run the 'virsh shutdown <vm>', I get a prompt asking if I want to shutdown, reboot, etc. I wish this wasn't interactive and that I don't need to have the console open, because I want to run a shell script around 2 am to do backups on these VMs.
I did search and found solutions that doesn't work for me.
These solutions include:
- Installing and run acpid on the VM.
- The VM configuration should have:
<features>
<acpi/>
<apic/>
<pae/>
</features>
I have all the above and it's not working!
Can someone help?
|