Jump to: navigation, search

Difference between revisions of "Obsolete:NovaInstallFestInstructions"

(Added instructions)
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
These is the stuff that you need to basically cut and paste to a fresh cloud server to get nova up and running:
 
These is the stuff that you need to basically cut and paste to a fresh cloud server to get nova up and running:
 +
 +
If you need a Cloud Server during the install fest, visit here: http://etherpad.openstack.org/HackDay-Slices
  
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 14:11, 15 July 2010

These is the stuff that you need to basically cut and paste to a fresh cloud server to get nova up and running:

If you need a Cloud Server during the install fest, visit here: http://etherpad.openstack.org/HackDay-Slices

echo 'deb http://ppa.launchpad.net/soren/nova/ubuntu lucid main' >> /etc/apt/sources.list.d/soren-nova.list
echo 'deb http://173.203.107.207/ubuntu ./' >> /etc/apt/sources.list.d/soren-nova.list
gpg --keyserver hkp://keys.gnupg.net --recv-keys AB0188513FD35B23
gpg -a --export AB0188513FD35B23 | apt-key add -
apt-get update
apt-get install nova-compute nova-api nova-objectstore redis-server rabbitmq-server euca2ools unzip parted
/etc/init.d/nginx restart
nova-manage user admin soren
nova-manage project create sorenproj soren
nova-manage project zip sorenproj soren
unzip nova.zip
. novarc
wget -q -O - http://173.203.107.207/ubuntu-lucid.tar | tar xSv
euca-bundle-image -i vmlinuz-2.6.32-23-server --kernel true
euca-bundle-image -i initrd.img-2.6.32-23-server --ramdisk true
euca-bundle-image -i ubuntu-lucid.img
euca-upload-bundle -b mybucket -m /tmp/vmlinuz-2.6.32-23-server.manifest.xml
euca-upload-bundle -b mybucket -m /tmp/initrd.img-2.6.32-23-server.manifest.xml
euca-upload-bundle -b mybucket -m /tmp/ubuntu-lucid.img.manifest.xml
kernel=$(euca-register mybucket/vmlinuz-2.6.32-23-server.manifest.xml | cut -f2 -d' ')
ramdisk=$(euca-register mybucket/initrd.img-2.6.32-23-server.manifest.xml | cut -f2 -d' ')
machine=$(euca-register mybucket/ubuntu-lucid.img.manifest.xml | cut -f2 -d' ')
euca-run-instances $machine --kernel $kernel --ramdisk $ramdisk
[2010-07-15 01:30:27] soren@lenny:~$ cat Instructions 
echo 'deb http://ppa.launchpad.net/soren/nova/ubuntu lucid main' >> /etc/apt/sources.list.d/soren-nova.list
echo 'deb http://173.203.107.207/ubuntu ./' >> /etc/apt/sources.list.d/soren-nova.list
gpg --keyserver hkp://keys.gnupg.net --recv-keys AB0188513FD35B23
gpg -a --export AB0188513FD35B23 | apt-key add -
apt-get update
apt-get install nova-compute nova-api nova-objectstore redis-server rabbitmq-server euca2ools unzip parted
/etc/init.d/nginx restart
nova-manage user admin soren
nova-manage project create sorenproj soren
nova-manage project zip sorenproj soren
unzip nova.zip
. novarc
sed -i -e "s/domain type='kvm'/domain type='qemu'/" -e s'!/usr/bin/kvm!/usr/bin/qemu-system-x86_64!g' /usr/share/nova/libvirt.xml.template
wget -q -O - http://173.203.107.207/ubuntu-lucid.tar | tar xSv
euca-bundle-image -i vmlinuz-2.6.32-23-server --kernel true
euca-bundle-image -i initrd.img-2.6.32-23-server --ramdisk true
euca-bundle-image -i ubuntu-lucid.img
euca-upload-bundle -b mybucket -m /tmp/vmlinuz-2.6.32-23-server.manifest.xml
euca-upload-bundle -b mybucket -m /tmp/initrd.img-2.6.32-23-server.manifest.xml
euca-upload-bundle -b mybucket -m /tmp/ubuntu-lucid.img.manifest.xml
kernel=$(euca-register mybucket/vmlinuz-2.6.32-23-server.manifest.xml | cut -f2 -d' ')
ramdisk=$(euca-register mybucket/initrd.img-2.6.32-23-server.manifest.xml | cut -f2 -d' ')
machine=$(euca-register mybucket/ubuntu-lucid.img.manifest.xml | cut -f2 -d' ')
euca-run-instances $machine --kernel $kernel --ramdisk $ramdisk
# wait a while
ssh ubuntu@10.0.0.3   # password is ubuntu


Note: Those of you not named soren may want to use different user names and project names.

As we move forward more and more of the above will become unnecessary.