Libvirt: Can't shutdown or reboot virtual guest
I can't reboot or shutdown the guest vm from the host machine
virsh -c qemu:///system reboot vm1
Domain vm1 is being rebooted
After executing this, nothing happens. The guest vm keeps working.
Could anyone help? I'm using CentOS 6.3, libvirtd, kvm. The guest vm is also CentOS 6.3
Solution 1:
This command sends an ACPI shutdown to the guest. If the guest cannot understand those, nothing will happen.
Make sure you have acpid working in the guest. You can set up acpid in your guest with commands like this:
yum install acpid
chkconfig acpid on
service acpid start
Once acpid is installed, you should be able to use virsh or other libvirt-compatible tools to shutdown or reboot your guest.