Skip to content

Instantly share code, notes, and snippets.

@sleepsonthefloor
Created March 23, 2011 21:51
Show Gist options
  • Save sleepsonthefloor/884099 to your computer and use it in GitHub Desktop.
Save sleepsonthefloor/884099 to your computer and use it in GitHub Desktop.
Single Node Install
# Add Anso Repository
sudo apt-get -y --force-yes install python-software-properties
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 460DF9BE
sudo add-apt-repository 'deb http://packages.ansolabs.com/ maverick main'
sudo apt-get update
# Install base software
sudo apt-get install -y nova-api nova-compute nova-scheduler nova-network
sudo apt-get install -y nova-volume nova-objectstore
sudo modprobe kvm # skip this if you don't have hardware virtualization
sudo /etc/init.d/libvirt-bin restart
sudo killall dnsmasq # kill the dnsmasq instance that libvirt runs
echo "ISCSITARGET_ENABLE=true" | sudo tee /etc/default/iscsitarget
sudo /etc/init.d/iscsitarget restart
sudo apt-get install -y rabbitmq-server euca2ools unzip
# Download images
sudo mkdir -p /var/lib/nova/images/
cd /var/lib/nova/images/
sudo wget http://images.ansolabs.com/tty.tgz
sudo tar xfvz tty.tgz
sudo wget http://images.ansolabs.com/maverick.tgz
sudo tar xfvz maverick.tgz
sudo chown -R nova .
# Install mysql
apt-get -y install mysql-server
apt-get install python-mysqldb
mysqladmin -u root --password=nova create nova
# Add mysql to nova.sh
echo "--sql_connection=mysql://root:nova@localhost/nova" >> /etc/nova/nova.conf
# Configure defaults
cd /root
sudo su -c "nova-manage db sync" nova
sudo nova-manage user admin admin
sudo nova-manage project create admin admin
sudo nova-manage project e admin admin
sudo nova-manage network create 10.0.0.0/24 8 32
# Enable ip forwarding
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
# Enable services
echo "ENABLED=1" | sudo tee /etc/default/nova-common
sudo start nova-api
sudo start nova-objectstore
sudo start nova-scheduler
sudo start nova-network
sudo start nova-volume
sudo start nova-compute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment