Aug 5

I have really enjoyed Beta3 of virtualbox and have stood up a server that runs headless in my  basement and acts as my VM host. I have about 6 VMs running at any time but don’t have easy access to the VirtualBox GUI. Fortunatly, VBox has a really great command line that allows me to do pretty  much everything I need right from the shell. Here is an example of creating a new VM called Zenoss with 1548MB of RAM, a bridged network connection using the hosts eth0 adapter, a 10G drive and running in headless RDP mode at boot. The iso image “test.iso” is mounted at boot time, so the VM will boot from the CD at first boot.

VBoxManage createvm -name “Zenoss” -register
VBoxManage modifyvm “Zenoss” -memory “1548″ -acpi on –bridgeadapter1 eth0 -nic1 bridged
VBoxManage createvdi -filename “Zenoss.vdi” -size 10000 -register
VBoxManage modifyvm “Zenoss” -hda “Zenoss.vdi”
VBoxManage registerimage dvd test.iso
VBoxManage modifyvm “Zenoss” -dvd test.iso
VBoxHeadless -startvm “Zenoss”

Enjoy!
  • Digg
  • del.icio.us
  • Google Bookmarks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.