Page 1 of 1

Am I able to start a VirtualBox VM from ssh?

Posted: 27. Aug 2017, 14:25
by CJSHayward
If my MBP's display dies, am I able to ssh in remotely without any graphical login taking place, and start a particular VM, named "Toolchest" at "~/VirtualBox VMs/Toolchest"?

If so, what command(s) may I use?

Thanks,

Re: Am I able to start a VirtualBox VM from ssh?

Posted: 27. Aug 2017, 14:34
by socratis
CJSHayward wrote:If so, what command(s) may I use?
VBoxManage, the command-line tool that covers every aspect of configuring and running a VM, even things that are not in the GUI. It's not for the faint of heart and you should read the command line options thrice before running it or posting a question.

But just to start a VM, it's quite easy actually:
  • VBoxManage startvm <uuid|vmname>...
                       [--type gui|sdl|headless|separate]
But, it is *the* power tool, so much so, that it has a dedicated chapter in the User Manual; Chapter 8. VBoxManage, with each section covering each and every command-line option.

Re: Am I able to start a VirtualBox VM from ssh?

Posted: 31. Aug 2017, 21:07
by CJSHayward
Many thanks!