Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
Hmm, scheduled tasks + python script to control VB, perhaps? blogs.sun.com/nike/entry/python_api_to_the_virtualbox –  Sathya Apr 23 '11 at 5:01
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.