Remote control your virtual box vm

From DISI
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Imagine your userid is henry and your desktop machine where you have a virtualbox VM is called nirvana.

You should be able to start the VM (at any time) by running (from the portal):

$ ssh henry@nirvana.bkslab.org vboxmanage startvm LabWindows --type headless

To pause the VM use:

$ ssh henry@nirvana.bkslab.org vboxmanage controlvm LabWindows pause

You can unpause by doing running:

$ ssh henry@nirvana.bkslab.org vboxmanage controlvm LabWindows resume

I took a snapshot of the machine before shutting it down. If you need it restored to that state you can run

$ ssh henry@nirvana.bkslab.org vboxmanage snapshot LabWindows restore BeforeReboot