Remote control your virtual box vm: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "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...")
 
No edit summary
 
Line 13: Line 13:
  $ ssh henry@nirvana.bkslab.org vboxmanage snapshot LabWindows restore BeforeReboot
  $ ssh henry@nirvana.bkslab.org vboxmanage snapshot LabWindows restore BeforeReboot


[[Category:VM]]
[[Category:Sysadmin]]
[[Category:Internal]]
[[Category:Internal]]
[[Category:Tutorials]]
[[Category:Tutorials]]

Latest revision as of 00:17, 11 March 2014

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