systemd host: wait for guests shutdown before host restart/poweroff

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Menion
Posts: 17
Joined: 5. Nov 2014, 13:49

systemd host: wait for guests shutdown before host restart/poweroff

Post by Menion »

Hi all
I am running virtualbox 5.2.6 in Ubuntu 16.04.3
I have configured VMs (actually only one) guest to autostart and autostop by using vboxautostart-service
The main command:

Code: Select all

VBoxManage modifyvm <vmname> --autostart-enabled on
and for poweroff I have selected acpishutdown, that normally works if triggered by GUI (or actually by phpVirtualbox) and command line

Code: Select all

VBoxManage modifyvm <vmname> --autostop-type acpishutdown
The VM perfectly startup automatically at the host power up, but the host shutdown I think it is too fast and I don't have evidence that it actually waits for guest shutdown
Is vboxautostart-service expected to manage the guest-host shutdown sequence? Ho can I check it?
Thanks, bye
Post Reply