Answer the question
In order to leave comments, you need to log in
What is the correct way to shut down Virtualbox when shutting down the main OS?
I have a windows server running ubuntu server under Virtualbox.
Every time you need to turn off all the equipment, you have to connect to the guest OS, turn it off, and then the main one - it's very inconvenient. Is it possible to force the main OS to send a shutdown signal to the guest system and only after that extinguish the main one?
The question is relevant when using a UPS, which can only turn off the main one at a low discharge, and using a wife who can (when necessary) turn it off only by pressing a physical button.
I would be grateful for help.
Answer the question
In order to leave comments, you need to log in
In the guest OS, /etc/acpi/powerbtn.sh
register shutdown -h now
In the host-OS, executeVBoxManage controlvm Ubuntu acpipowerbutton
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question