Skip to content

Instantly share code, notes, and snippets.

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