Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
I'm seeing lots of messages on old forums and mailing lists that this has something to do with ACPI. I have it enabled both on host and guest vm. Is there anything else I can check? –  facha Jul 10 '12 at 10:54
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.