What is needed to "Shutdown" guest from the web interface?

mangoo

Member
Feb 4, 2009
198
0
16
wpkg.org
In the web interface for a given guest, there is a "Shutdown" button which is supposed to cleanly shutdown the guest.

What is needed on guest for this to work?

I tried it with a KVM Linux guest and it worked.

Now when I use it with another Linux guest (uses virtio_pci and other virtio_* drivers), it doesn't work - nothing happens on the guest, nothing in dmesg or syslog.

Is it because of virtio_*? Or is it something else?
 
It send a ACPI shutdown request. On linux you need 'acpid' running.

I see it uses system_powerdown in the "monitor".

I have acpid running:

# ps aux|grep acpi
root 49 0.0 0.0 0 0 ? S< 11:49 0:00 [kacpid]
root 50 0.0 0.0 0 0 ? S< 11:49 0:00 [kacpi_notify]
root 2483 0.0 0.0 1704 468 ? Ss 12:24 0:00 /usr/sbin/acpid

Doesn't work.
Kernel guest 2.6.27.10.

Hmm.