Skip to content

Instantly share code, notes, and snippets.

@devrandom
Created April 28, 2011 18:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devrandom/947034 to your computer and use it in GitHub Desktop.
Save devrandom/947034 to your computer and use it in GitHub Desktop.
ec2 build
#create a 64 bit m1.large instance using ami-08f40561
ssh -i key ubuntu@...
sudo apt-get update
sudo apt-get install python-vm-builder qemu-kvm apt-cacher git-core ruby
# turn it on
sudo vi /etc/default/apt-cacher
sudo service apt-cacher start
sudo chown ubuntu /mnt
cd /mnt
#this takes about 30 minutes
#you can change the script to access us-east-1.ec2.archive.ubuntu.com/ubuntu
bin/make-base-vm --arch=amd64
bin/make-base-vm --arch=i386
#follow https://gist.github.com/806265
@devrandom
Copy link
Author

Attempt to use VirtualBox:

sudo apt-get install linux-headers-virtual virtualbox-ose
qemu-img convert -O vdi target-lucid-i386.qcow2 target-lucid-i386.vdi
VBoxManage createvm --name gitian -ostype Ubuntu_64 --register
VBoxManage storagectl gitian --name IDEController --add ide --controller PIIX4
VBoxManage storageattach gitian --storagectl IDEController --port 0 --device 0 --type hdd --medium pwd/target-lucid-i386.vdi
sudo modprobe vboxdrv
VBoxHeadless --startvm gitian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment