Hi,
VirtualBox offers a very powerful command inferface: vboxmanage. With vboxmanage you can create new virtual machine, add and modify harddisk and much more. All the things you could do in the GUI, and a lot more are also possible at command line. In this post I will create, modify, control and delete a complete virtual machine.
At the bottom of the post the whole script can be downloaded.
I used a debian linux system for my tests. To install the latest VirtualBox version use the following commands:
1 2 3 4 5 6 7 8 9 10 | echo "deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free" >> /etc/apt/sources.list# Add Oracle Keyringwget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -# Update repositoriesapt-get update# Install latest virtualbox versionapt-get -y install virtualbox-4.3# Installing the Extentionpack for USB2 and RDP supportwget http://download.virtualbox.org/virtualbox/4.3.6/Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpackVBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack |
Continue reading Virtualbox: Creating and controlling Virtual Maschines from command line