總網頁瀏覽量

搜尋此網誌

2011年4月29日 星期五

Manual Installing Nova Cloud Controller Ver for Cactus


sudo apt-get install python-software-properties
sudo add-apt-repository ppa:nova-core/trunk

sudo apt-get update
sudo apt-get install -y rabbitmq-server
sudo apt-get install -y python-greenlet python-mysqldb 
sudo apt-get install -y nova-common nova-doc python-nova nova-api
sudo apt-get install -y nova-network nova-objectstore nova-scheduler nova-compute
sudo apt-get install -y euca2ools unzip
vi /etc/nova/nova.conf   

bash
MYSQL_PASS=nova
NOVA_PASS=notnova
cat <
<  MYSQL_PRESEED | debconf-set-sselections
mysql-server-5.1 mysql-server/root_password pasword $MYSQL_PASS
mysql-server-5.1 mysql-server/root_password_again password $MYSQL_PASS
mysql-server-5.1 mysql-server/start_on_boot boolean true
MYSQL_PRESEED


sudo apt-get install -y mysql-server

sudo sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
sudo service mysql restart



mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE nova;'
mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;"
mysql -uroot -p$MYSQL_PASS -e "SET PASSWORD FOR 'root'@'%' =PASSWORD('$MYSQL_PASS');"


sudo addgroup nova
chown -R root:nova /etc/nova
chmod 640 /etc/nova/nova.conf

/usr/bin/nova-manage db sync
/usr/bin/nova-manage user admin dub
/usr/bin/nova-manage project create dubproject dub
/usr/bin/nova-manage network create 192.168.104.0/24 1 255

mkdir –p /root/creds
/usr/bin/python /usr/bin/nova-manage project zipfile dubproject dub /root/creds/novacreds.zip
 unzip /root/creds/novacreds.zip -d /root/creds/
cat /root/creds/novarc >> ~/.bashrc
source ~/.bashrc 
euca-authorize -P icmp -t -1:-1 default
euca-authorize -P tcp -p 22 default
killall dnsmasq service 
nova-network restart
/etc/init.d/networking restart
restart libvirt-bin; restart nova-network; restart nova-compute;
restart nova-api; restart nova-objectstore; restart nova-scheduler
chgrp kvm /dev/kvm
chmod g+rwx /dev/kvm


 iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m
 tcp --dport 80 -j DNAT --to-destination $
NOVA_API_IP:8773

mysql -u$MYSQL_USER -p$MYSQL_PASS nova -e 'select * from
 services;'



2.Configuring Multiple Compute Nodes

沒有留言:

張貼留言