Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Tools Getting Started with Genymotion Installing Genymotion

What is the restart VirtualBox command for Window 7?

I got into the same situation as Ben in the video but I'm using Window 7 and I can't find the path where I installed the VirtualBox.

1 Answer

Sean T. Unwin
Sean T. Unwin
28,690 Points

Typically it will be located in C:\Program Files\Oracle\VirtualBox\.

If you want to control it from the CLI here are some useful commands:

  • Use the VBoxManage exe.
  • If this app is not in your PATH you can use - C:\Program Files\Oracle\VirtualBox\VBoxManage
# List all VMs
VBoxManage list vms  -l # using the -l flag for detailed results; not needed

# Start a VM
VBoxManage startvm "<VMName>"

# Various Ways to Stop a VM
VBoxManage controlvm "<VMName>" COMMAND
## COMMANDS ##
# pause : pause VM
# resume : resume VM
# reset : reset/ restart VM
# poweroff : shutdown VM
# savestate : shutdown and save data