VirtualBox Control



VirtualBox Control is a shell script application to manage virtual machines using the console.

It was originally written by Carlos Acosta, and published on his website, to manage VirtualBox virtual machines without using the graphical interface. It is written in bash script and uses VBoxManage intensively.

It handles basic start/stop/pause/resume functions, load/unload of removable media and configuration of the remote console port to access the virtual machine's console via vrdp protocol (Oracle VirtualBox extensions must be installed).



The original script works as intended and it manages virtual machines but I felt it lacked visual impact. There were some minor inconsistencies between menus and lack of color. There was also a problem with machines containing white spaces in their names that were simply not detected correctly.



First screen after launching the script, with animated "Please wait" message:

loading screen

Main menu waiting for user to select a virtual machine by its ID on the left:

main menu screen

Details and Control menu for a virtual machine:

details menu

Screen shown after selecting option 9) Load/Eject ISO images:

details menu


To make the script operational it's necessary to set its executable bits, at least once after you download it, with chmod.

$ chmod 755

After the executable bits are set, just run it by invoking the file or by running it inside another shell:

$ ./
$ bash

Note: although under Linux it's also possible to run this script with /bin/sh, in MacOS X it isn't, so don't run it with the default /bin/sh (Thanks Lance).


Older releases



Oracle Examples (Carlos Acosta Blog) - The creator of the original script


Published on Thursday 2011/08/25, last modified on Thursday 2014/05/29