From my previous post on how to run Bootcamp in VirtualBox, I just realize I forget to mention this launching tip, so here it is.
VirtualBox is a fantastic freeware. I really love it. It may not be as feature rich or efficiently good as other paid alternatives like VMware or Parallel, but it offers lots of great functionality, and is in active development.
To start a virtual machine (of VirtualBox) using command lines:
In Mac or Linux, open Terminal and type
vboxmanage startvm (vmname)
replace (vmname) with yours, for example Ubuntu, press Enter. That’s it.
If you use Linux, you can save this as a script file, and use it to start the vm instead.
In Mac, there is a neat and pretty way to start vm as app, using AppleScript. In AppleScritp Editor, type
do shell script "vboxmanage startvm (vmname)"
and save the file as an Application.

By launching this app, it starts your VM. You can also change its icon, so it looks pretty and easy to recognize. This is how mine looks. I use Windows and Ubuntu icons found from the Internet (so they’re not mine), so I can distinguish them and they blend in my Applications folder well enough.
New Pretty Icons
For Windows, you use similar approach with batch files. In Notepad, type this 2 lines in
cd "c:\Program Files\Oracle\VirtualBox"
vboxmanage startvm (vmname)
save as .bat file, and there you go, double click it to start the specified virtual machine.
Tips: If you don’t know what is your vm name, use this commands in Dos or Terminal,
vboxmanage list vms
Related articles
- How To: Run Windows 7 (Bootcamp) in VirtualBox (kindlevsmac.wordpress.com)
- How to resize a VirtualBox fixed size virtual drive (.vdi) on Mac (gubatron.com)
- How To Install Mac OS X On PC Using Virtual Box (screamable.com)
- Feature: Tutorial: OS X automation with MacRuby and the Scripting Bridge (arstechnica.com)
- Sessions shine light on AppleScript, a key to business automation in Mac OS X (prweb.com)
Great! I’ve been a fan of VBox since it came out and would love to see such open source emulation software become as feature rich as the paid counterparts…Hopefully the letters “Oracle” now on it’s logo won’t have detrimental effects on its development!
Yeah, it’s been almost 2 years since they acquired vbox, looks good so far, hope it continues this way though. One thing VBox can definitely improve is its cpu usage; it rather annoys me sometimes, but overall it’s fantastic !
[...] How-To: Start VBox VM Using Scripts / Command Lines (kindlevsmac.wordpress.com) [...]
[...] How-To: Start VBox VM Using Scripts / Command Lines (kindlevsmac.wordpress.com) [...]
[...] To start a virtual machine (of VirtualBox) using command lines: [...]