Created
April 28, 2011 18:56
-
-
Save devrandom/947034 to your computer and use it in GitHub Desktop.
ec2 build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.vdisudo modprobe vboxdrv
VBoxHeadless --startvm gitian