Centos 7 guest and ACPI Power Button

Discussions about using Linux guests in VirtualBox.
Post Reply
srv1973
Posts: 59
Joined: 16. Jan 2008, 17:57

Centos 7 guest and ACPI Power Button

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Centos 7 guest and ACPI Power Button

Post 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
Post Reply