Am I able to start a VirtualBox VM from ssh?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
CJSHayward
Posts: 4
Joined: 3. Jul 2017, 21:26
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows
Contact:

Am I able to start a VirtualBox VM from ssh?

Post 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,
C.J.S. Hayward
(Google for my website)
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
CJSHayward
Posts: 4
Joined: 3. Jul 2017, 21:26
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows
Contact:

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

Post by CJSHayward »

Many thanks!
C.J.S. Hayward
(Google for my website)
Post Reply