Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I shut my Windows 7 computer down or restart it (maybe because of Microsoft updates or installation of software or me just being stupid) I want to automatically shutdown OR pause my VirtualBox machine just before it happens.

Is there a way to do this?

My VirtualBox machine is running Linux, although I am hoping there is a solution which is guest-OS independent.

share|improve this question
Hmm, scheduled tasks + python script to control VB, perhaps? – Sathya Apr 23 '11 at 5:01
up vote 3 down vote accepted

Virtual Box has quite a bit of command line arguments that can be used to create a small script to handle the pause. You can create a batch file to pause it and add it to the Task Scheduler or via Local Group Policy Editor and have it triggered on shutdown.

share|improve this answer
thanks for that, I wasn't aware of any command line functionality for VirtualBox! – Kez May 8 '11 at 13:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.