How can I perform a controlled shutdown of a virtualbox guest using VBoxManage?

Posted by Bryan on Server Fault See other posts from Server Fault or by Bryan
Published on 2010-05-02T10:32:17Z Indexed on 2010/05/02 10:38 UTC
Read the original article Hit count: 334

I'm currently testing Ubuntu 10.04, and have install the VirtualBox software. I have also installed Ubuntu 10.04 as a VirtualBox guest running on the host system.

I've installed the VirtualBox Utils into the guest OS, as follows:

sudo apt-get install virtualbox-ose-guest-utils

What I want to be able to do is to initiate a controlled shutdown of the guest, from the host system using the VBoxManage command.

I first tried this command:

VBoxManage controlvm guest poweroff

which worked, but didn't initiate a controlled shutdown, it effectively pulls the plug on the guest.

I've since found that this command should do the trick:

VBoxManage controlvm guest acpipowerbutton

but this doesn't appear to do anything.

Can anyone tell me what I'm doing wrong?

p.s. I don't want to use SSH & Certificates to do this, as I'm also going to be running Windows guests, and I want the solution to work for all guests.

© Server Fault or respective owner

Related posts about virtualbox

Related posts about ubuntu-10.04