Remote control your virtual box vm

From DISI
Revision as of 00:17, 11 March 2014 by Frodo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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