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.

I want to know how to start a VirtualBox Virtual Machine (VM) from the command line (using Windows 7) as well as shut it down with the operating system.

What is an easy way to achieve this?

share|improve this question
    
Actually VirtualBox will recognize a host system shutdown initiated by the user –  Sebastian Godelet May 10 '13 at 14:31
add comment

2 Answers

up vote 17 down vote accepted

Here's the command I run from a shortcut I have on my desktop. This should work from a command line as well.

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm <NameOfVMHere>

share|improve this answer
    
Thanks a million! this command actually has everything anybody would ever do with a VM ^^ –  Sebastian Godelet Nov 30 '10 at 14:30
add comment
vboxmanage startvm "winxppro Clone"
share|improve this answer
    
Could you expand on the answer? It only answers to start-up and not the shut down. –  suspectus Jun 23 '13 at 8:56
    
Please provide a bit more explanation about why your post answers the question. –  teylyn Jun 23 '13 at 9:30
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.