Page 1 of 1

Centos 7 guest and ACPI Power Button

Posted: 6. Sep 2017, 10:54
by srv1973
Hi,

A Centos 7 VM does not shut down properly when doing:

Code: Select all

VBoxManage controlvm CentOS7 acpipowerbutton
Instead it seems to halt or suspend or so. I see a blank black screen with a cursor blinking on the top left. Same thing happens when I send an ACPI Shutdown from the VirtualBox UI. Running "sudo poweroff" inside the VM works however.

I've tried playing around with /etc/systemd/logind.conf to no effect.

Does anybody have an idea on how to solve this? The objective is to do a clean shutdown and poweroff of the VM (normally running headless).

Maarten

Re: Centos 7 guest and ACPI Power Button

Posted: 6. Sep 2017, 13:35
by Perryg
This seems to be an issue CentOS on metal as well. They might have a fix though. Get the guest itself working properly with acpi and then it will work with controlvm as well.
https://unix.stackexchange.com/question ... wer-button