### http://pad.ubuntu.com/openstack-testing-natty ### http://zulcss.wordpress.com/2011/03/31/running-nova-openstack-on-amazon-ec2/ sudo apt-get install -y rabbitmq-server python-greenlet python-mysqldb nova-common nova-doc python-nova nova-api nova-network nova-objectstore nova-scheduler nova-compute euca2ools unzip glance if out="$(awk '$1 == "none" && $2 == "/cgroups" { print $2 }' /etc/fstab)" && [ -z "$out" ]; then sudo mkdir -p /cgroups echo "none /cgroups cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0" | sudo tee -a /etc/fstab fi sudo sed -i 's,/dev/sdb,/dev/xvdf,' /etc/fstab # LP: #784937 sudo mount -a lxc_flag="--libvirt_type=lxc" grep "^$lxc_flag" /etc/nova/nova.conf || echo "$lxc_flag" | sudo tee -a /etc/nova/nova.conf # what to do about bridge? sudo restart libvirt-bin sudo sh -c 'for s in $@; do sudo restart nova-$s; done' x network compute api objectstore scheduler sudo nova-manage network create private 10.0.0.0/8 1 64 sudo nova-manage user create admin sudo nova-manage project create test-project admin "my test project" ( mkdir -p novacreds && sudo nova-manage project zipfile test-project admin novacreds/creds.zip ) ( cd novacreds/ && unzip creds.zip ) ln -sf novacreds/novarc ~/.eucarc ( umask 066 && euca-add-keypair mykey > novacreds/mykey.pem ) imgurl=http://uec-images.ubuntu.com/oneiric/current/oneiric-server-uec-i386.tar.gz ( mkdir -p images && cd images && wget -c "$imgurl" ) uec-publish-tarball images/oneiric-server-uec-i386.tar.gz ubuntu-bucket i386 euca-run-instances ami-00000002 --key mykey # instnace goes to shutdown at this point. ## tried: # sudo brctl addbr br0 # sudo ifconfig br0 up # sudo vconfig add br0 100