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

on both host and guest running CentOS 6.3 with KVM/Qemu virtualization, I have the following scenarios:

  1. "virsh shutdown kvm1" did not shutdown at all. virsh lists guest as running.
  2. "service libvirt-guests stop" did not shutdown in 280 seconds (shutdown_timeout=300. on_shutdown=shutdown)
  3. "shutdown now" from within guest, guest becomes unreachable. virsh lists guest as running, though it could not connect to it.
  4. "shutdown -h now" from within guest works.
  5. "shutdown -r now" from within guest works.

Libvirt logs show nothing for the first 3 scenarios. I can pause the guest fine.

Grub doesnt have acpi=off. ACPI was installed after the reply by @mgorven below. There is nothing on guest logs regarding ACPI aside from these entries from /var/log/messages. It is puzzling to me that there are entries regarding ACPI since it was not installed up until the last line of the log.

Bottom line, I cannot shutdown from outside the guest. What do I check to figure out what is going on?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Check that acpid is running inside the guests. If it isn't you need to install the acpid package. This is what receives the ACPI power button signal from KVM and causes the guest to shut itself down.

share|improve this answer
    
installed now. i will report back with the results when I can test it. thanks. –  Gaia Oct 23 '12 at 12:06
    
"virsh shutdown domain" did nothing with acpi installed on the guest domain. –  Gaia Oct 24 '12 at 3:01
    
grub doesnt have acpi=off, but could this be because of a modified kernel? Its Atomic Rocket Turtle –  Gaia Oct 24 '12 at 3:08
    
@Gaia What on earth is an Atomic Rocket Turtle? I would always suspect strangeness in a niche distribution like that. –  Michael Hampton Oct 24 '12 at 3:19
    
@MichaelHampton, sorry I mean ASL by www.atomicorp.com (ART is their repo) –  Gaia Oct 24 '12 at 3:22

For CentOS.6.3 this worked well:

# yum -y install acpid; /etc/init.d/acpid start; chkconfig --level 235 acpid on;
share|improve this answer

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.