How can I put my VirtualBox on my Dock in Mac OS X Lion. I want to have it on my dock so I can click on it to launch it.
Asked
Active
Viewed 9,385 times
2 Answers
12
I don't use Virtualbox, but based on a couple resources, it looks like you can launch a specific VM from the command line, which means we can create a basic Automator application to serve as a launcher, which you can then put in the Dock.
In Automator, create a new workflow. Add a Run Shell Script action, and enter /abolute/path/to/vboxmanage startvm "vmname"
in the text box. Replace vmname
with the name of your VM as it appears in the Virtualbox GUI (make sure to keep the quotes though). Save the workflow, setting the File Format to Application. Then drag the resulting app onto your Dock.

neowulf33
- 103

robmathers
- 41,194
3
Right click VM in Manager, create desktop icon. Select the desktop icon and press Control+Shift+Command+T
That's it done

moogaloo
- 31
-
Does not work: "Trying to open a VM config '/Users/BLAH/VMPATH/VMNAME.vbox' which has the same UUID as an existing virtual machine." – cliffordheath May 02 '19 at 00:40
vboxmanage
command in Terminal and see what output it generates. – robmathers Dec 05 '12 at 02:40cmd-c, cmd-v
over the icon in thecmd-i
(get info) for the Automator script) and dragged it to the Dock. – Mark Cohen Dec 05 '12 at 03:29startvm
command should be the name of the VM, not the path to its file. – robmathers Dec 05 '12 at 04:50/Applications/VirtualBox.app/Contents/MacOS/VBoxManage
, per this forum post. – robmathers Dec 06 '12 at 23:00