Skip to content

Instantly share code, notes, and snippets.

@jjasghar
Created August 16, 2012 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjasghar/3365692 to your computer and use it in GitHub Desktop.
Save jjasghar/3365692 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/bash
VBoxManage clonehd ubuntu_11_10_gold.vdi ubuntu_11_10_tmp.vdi
VBoxManage createvm --name "tmp" --ostype "Ubuntu" -register
VBoxManage modifyvm "tmp" --memory 4096 --boot1 dvd
VBoxManage storagectl "tmp" --name "IDE Controller" --add ide
VBoxManage storageattach "tmp" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ubuntu_11_10_tmp.vdi
VBoxManage modifyvm "tmp" --nic1 bridged --nictype1 82543GC --bridgeadapter1 em0
VBoxHeadless -s "tmp" -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment