Skip to content

Instantly share code, notes, and snippets.

@torumakabe
Created January 4, 2014 13:28
Show Gist options
  • Save torumakabe/8255354 to your computer and use it in GitHub Desktop.
Save torumakabe/8255354 to your computer and use it in GitHub Desktop.
Creare VirtualBox VM for HP Cloud OS Sandbox 1.20 controller node
#!/bin/sh
VBoxManage createvm --name "controller" --ostype Ubuntu_64 --register
VBoxManage modifyvm "controller" --cpus 1
VBoxManage modifyvm "controller" --memory 4096
VBoxManage modifyvm "controller" --nic1 hostonly
VBoxManage modifyvm "controller" --hostonlyadapter1 vboxnet0
VBoxManage modifyvm "controller" --nictype1 Am79C973
VBoxManage modifyvm "controller" --nicpromisc1 allow-all
VBoxManage modifyvm "controller" --nic2 intnet
VBoxManage modifyvm "controller" --intnet2 intnet
VBoxManage modifyvm "controller" --nictype2 Am79C973
VBoxManage modifyvm "controller" --nicpromisc2 allow-all
VBoxManage modifyvm "controller" --nic3 hostonly
VBoxManage modifyvm "controller" --hostonlyadapter3 vboxnet1
VBoxManage modifyvm "controller" --nictype3 Am79C973
VBoxManage modifyvm "controller" --nicpromisc3 allow-all
VBoxManage modifyvm "controller" --boot1 net
VBoxManage modifyvm "controller" --boot2 disk
VBoxManage createhd --filename ~/VirtualBox\ VMs/controller/controller.vdi --size 16000
VBoxManage storagectl "controller" --name SATA --add sata
VBoxManage storageattach "controller" --storagectl SATA --port 0 --type hdd --medium ~/VirtualBox\ VMs/controller/controller.vdi
VBoxManage startvm "controller"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment