Jump to: navigation, search

Difference between revisions of "Obsolete:NovaInstallFestInstructions"

Line 5: Line 5:
  
 
<pre><nowiki>
 
<pre><nowiki>
 +
If you're having problems this is the order of all the steps:
 +
 +
#Lucid Slice
 +
 +
#Paste these:
 +
 
echo 'deb http://ppa.launchpad.net/soren/nova/ubuntu lucid main' >> /etc/apt/sources.list.d/soren-nova.list
 
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
 
echo 'deb http://173.203.107.207/ubuntu ./' >> /etc/apt/sources.list.d/soren-nova.list
Line 10: Line 16:
 
gpg -a --export AB0188513FD35B23 | apt-key add -
 
gpg -a --export AB0188513FD35B23 | apt-key add -
 
apt-get update
 
apt-get update
apt-get install nova-compute nova-api nova-objectstore redis-server rabbitmq-server euca2ools unzip parted
+
apt-get install screen nova-compute nova-api nova-objectstore redis-server rabbitmq-server euca2ools unzip parted
 +
 
 +
# Then these:
 +
 
 
/etc/init.d/nginx restart
 
/etc/init.d/nginx restart
nova-manage user admin soren
+
nova-manage user admin ant
nova-manage project create sorenproj soren
+
nova-manage project create antproj ant
nova-manage project zip sorenproj soren
+
nova-manage project zip antproj ant
 
unzip nova.zip
 
unzip nova.zip
 +
 +
# If running in a slice, swap kvm for qemu:
 +
 +
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
 
. novarc
 
. 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
+
 
 +
#Run screen and paste this for the object store:
 +
python /usr/bin/nova-objectstore --flagfile=/etc/nova/nova-objectstore.conf --nodaemonize start
 +
 
 +
#Detach and check if object store is runningrun these:
 +
 
 
wget -q -O - http://173.203.107.207/ubuntu-lucid.tar | tar xSv
 
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 vmlinuz-2.6.32-23-server --kernel true
Line 25: Line 43:
 
euca-upload-bundle -b mybucket -m /tmp/initrd.img-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
 
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' ')
+
#Restart the api in another screen (you may need to remove a lock file):
machine=$(euca-register mybucket/ubuntu-lucid.img.manifest.xml | cut -f2 -d' ')
+
 
 +
python /usr/bin/nova-api --flagfile=/etc/nova/nova-api.conf stop
 +
python /usr/bin/nova-api --flagfile=/etc/nova/nova-api.conf --nodaemonize --verbose start
 +
 
 +
#Then paste this:
 +
 
 +
kernel=$(euca-register mybucket/vmlinuz-2.6.32-23-server.manifest.xml | awk '{print $2}')
 +
ramdisk=$(euca-register mybucket/initrd.img-2.6.32-23-server.manifest.xml | awk '{print $2}')
 +
machine=$(euca-register mybucket/ubuntu-lucid.img.manifest.xml | awk '{print $2}')
 
euca-run-instances $machine --kernel $kernel --ramdisk $ramdisk
 
euca-run-instances $machine --kernel $kernel --ramdisk $ramdisk
 
# wait a while
 
# wait a while

Revision as of 19:17, 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

If you're having problems this is the order of all the steps:

#Lucid Slice

#Paste these:

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 screen nova-compute nova-api nova-objectstore redis-server rabbitmq-server euca2ools unzip parted

# Then these:

/etc/init.d/nginx restart
nova-manage user admin ant
nova-manage project create antproj ant
nova-manage project zip antproj ant
unzip nova.zip

# If running in a slice, swap kvm for qemu:

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
. novarc

#Run screen and paste this for the object store:
python /usr/bin/nova-objectstore --flagfile=/etc/nova/nova-objectstore.conf --nodaemonize start

#Detach and check if object store is runningrun these:

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

#Restart the api in another screen (you may need to remove a lock file):

python /usr/bin/nova-api --flagfile=/etc/nova/nova-api.conf stop
python /usr/bin/nova-api --flagfile=/etc/nova/nova-api.conf --nodaemonize --verbose start

#Then paste this:

kernel=$(euca-register mybucket/vmlinuz-2.6.32-23-server.manifest.xml | awk '{print $2}')
ramdisk=$(euca-register mybucket/initrd.img-2.6.32-23-server.manifest.xml | awk '{print $2}')
machine=$(euca-register mybucket/ubuntu-lucid.img.manifest.xml | awk '{print $2}')
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.