Starting and stopping Virtualbox machines with a shell / batch script

Start

VBoxHeadless --startvm "CentOS Dev"

Stop

VBoxManage controlvm "CentOS Dev" acpipowerbutton

For stopping machines properly, you need to isntall apcid on the guest machines.

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.