總網頁瀏覽量

搜尋此網誌

2011年5月25日 星期三

NovaInstall for Single Machine Installation Record

Step 1: Install required prerequisites
sudo apt-get install -y rabbitmq-server
##Starting rabbitmq-server: SUCCESS
Step 2: Install Nova packages
sudo apt-get install -y python-software-properties
##Setting up python-software-properties (0.80.9) ...
sudo add-apt-repository ppa:nova-core/trunk
 ###
gpg: requesting key 2A2356C9 from hkp server keyserver.ubuntu.com
gpg: key 2A2356C9: public key "Launchpad Nova Packages" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1) 
sudo apt-get update
 ###Reading package lists... Done
sudo apt-get install -y python-nova
###Processing triggers for python-support ...
sudo apt-get install -y nova-common nova-doc nova-api nova-network 
 ####
nova-network is already the newest version.
nova-doc is already the newest version.
nova-common is already the newest version.
nova-api is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded
sudo apt-get install -y nova-objectstore nova-scheduler nova-compute
 ###
nova-scheduler is already the newest version.
nova-objectstore is already the newest version.
nova-compute is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
sudo apt-get install -y euca2ools
###euca2ools is already the newest version.
sudo apt-get install -y unzip
###unzip is already the newest version.


Step 3:setting up the SQL Database (MySQL) on the Cloud Controller
bash
MYSQL_PASS=nova
NOVA_PASS=notnova
bash
MYSQL_PASS=nova
NOVA_PASS=notnova
cat >> MYSQL_PRESEED | debconf-set-selections
mysql-server-5.1 mysql-server/root_password password $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
mysql_preseed $mysql_pass="" boolean="" debconf-set-selections="" mysql-server-5.1="" mysql-server="" mysql_preseed<="" password="" pre="" root_password="" root_password_again="" start_on_boot="" true="" |="">









/usr/bin/nova-manage db sync
/usr/bin/nova-manage user admin dub
###export EC2_ACCESS_KEY=afe710a5-bbc8-45ad-ba69-38db885d3542
###export EC2_SECRET_KEY=54eeb1b8-2b00-4bb8-9092-5e32022be640
/usr/bin/nova-manage project create dubproject dub
/usr/bin/nova-manage network create 192.168.0.0/24 1 256 

sudo apt-get install -y mysql-server
---設mysql root 密碼
sudo sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
sudo service mysql restart
### 
mysql start/running, process 1819
sudo mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE nova;'
sudo mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON *.* TO 'nova'@'%' WITH GRANT OPTION;"
sudo mysql -uroot -p$MYSQL_PASS -e "SET PASSWORD FOR 'nova'@'%' = PASSWORD('$NOVA_PASS');"

Step 4:Installing the Compute Node
nano /etc/network/interfaces

auto lo
iface lo inet loopback
auto br100
iface br100 inet static
bridge_ports eth0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
address 192.168.104.11
netmask 255.255.255.0
network 192.168.104.0
gateway 192.168.104.254
broadcast 192.168.104.255
dns-nameservers 8.8.4.4

sudo /etc/init.d/networking restart
restart libvirt-bin; restart nova-network; restart nova-compute;

libvirt-bin start/running, process 1994
nova-network start/running, process 2012
nova-compute start/running, process 2025
restart nova-api; restart nova-objectstore; restart nova-scheduler

nova-api start/running, process 2113
nova-objectstore start/running, process 2121
nova-scheduler start/running, process 2135
 Step6 Creating Certifications
mkdir –p /root/creds
/usr/bin/python /usr/bin/nova-manage project zipfile $NOVA_PROJECT $NOVA_PROJECT_USER /root/creds/novacreds.zip
unzip /root/creds/novacreds.zip -d /root/creds/
Archive:  /root/creds/novacreds.zip
 extracting: /root/creds/novarc
 extracting: /root/creds/pk.pem
 extracting: /root/creds/cert.pem
 extracting: /root/creds/cacert.pem
cat /root/creds/novarc >> ~/.bashrc
source ~/.bashrc
source /root/creds/novarc
sudo reboot

Enabling Access to VMs on the Compute Node

euca-authorize -P icmp -t -1:-1 default----錯誤[Errno 111] Connection refused
-rw-r----- 1 root nova 461 2011-05-25 22:03 nova.conf (nova.conf 為root所有) ---改
-rw-r----- 1 nova nova 461 2011-05-25 22:03 nova.conf (nova.conf 為nova所有)
正確
euca-authorize -P icmp -t -1:-1 default
default None None icmp -1 -1 0.0.0.0/0
GROUP   default
PERMISSION      default ALLOWS  icmp    -1      -1      FROM    CIDR    0.0.0.0/0
euca-authorize -P tcp -p 22 default
default None None tcp 22 22 0.0.0.0/0
GROUP   default
PERMISSION      default ALLOWS  tcp     22      22      FROM    CIDR    0.0.0.0/0
Configuring Multiple Compute Nodes

restart libvirt-bin; service nova-compute restart

libvirt-bin start/running, process 1703
nova-compute start/running, process 1725

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 192.168.104.13:8773
mysql -uroot -pnova nova -e 'select * from services;'

2011年5月5日 星期四

Static IP & KVM

1.編輯
 vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 172.18.11.191
netmask 255.255.255.0
gateway 172.18.11.254

egrep -c '(vmx|svm)' /proc/cpuinfo 檢查cpu是否支援虛擬化
如果算出來的數字大於 0 的話,就表示有支援了,不過還是記得要去 BIOS 裡確認是否有 Enable CPU Virtualization 的功能喔

2. 正式安裝相關套件
首先不多說,就是安裝 KVM 下去
# apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder
好了之後可以檢查 KVM 是否有啟動了,還有它所載入的 Module 為何
# lsmod | grep kvm
kvm_intel              56851  0
kvm                   367707  1 kvm_intel
檢查 KVM 有載入哪些 Module
# modprobe -l | grep kvm
kernel/arch/x86/kvm/kvm.ko
kernel/arch/x86/kvm/kvm-intel.ko
kernel/arch/x86/kvm/kvm-amd.ko
檢查我們的硬體規格
# virsh nodeinfo
處理器類型:   x86_64
處理器數目:   2
處理器的頻率: 800 MHz
處理器的插槽: 1
每個插槽的核心: 2
每個核心的執行續: 1
NUMA cell:         1
記憶體大小:   4058760 kB
因為我裝的版本是 ubuntu desktop 64 位元版,所以用圖形化的介面來操作
因此來安裝一個比較視覺化的管理軟體,方便未來管理
# apt-get install virt-manager
裝好之後應該會在「應用程式」->「系統工具」看到一個「虛擬機器管理員」
3. 網路設定
接下來要來搞定網路這一塊,首先我們要弄出一張虛擬網卡讓它可以橋接原本的 eth0 出去,到時裡面的 VM 網路才會通
首先網路卡給停掉 ( 這裡的 vim 是我另外裝的,預設是沒有的 )
# invoke-rc.d networking stop
# vim /etc/network/interfaces
如果你的網路環境是手動設定 IP 的話,請參考這個設定
auto lo
iface lo inet loopback

auth eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 192.168.0.105
        network 192.168.0.0
        netmask 255.255.255.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
如果你的網路環境是 DHCP 的話,請參考這個設定
auto lo
iface lo inet loopback

auth eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

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

ubuntu 更換網卡 鎖住原ip eth0 不見

1. cat /proc/net/dev "抓到的網路卡是eth1"
 eht1:    70634      820  0      0      0      0      0      0      4401        36    0      0      0      0      0      2.sudo 2.rm -f /etc/udev/rules.d/70-persistent-net.rules
3.sudo reboot

2011年4月27日 星期三

Script Nova 安裝

cloud controller--------------------------------------------------------------------------------------------------------------------------
1.前置動作  
A.查看cpu有無支援權虛擬化
egrep -c '(vmx|svm)' /proc/cpuinfo 檢查cpu是否支援虛擬化
如果算出來的數字大於 0 的話,就表示有支援了,不過還是記得要去 BIOS 裡確認是否有 Enable CPU Virtualization 
 鳥哥 http://linux.vbird.org/linux_enterprise/xen.php--說明
 B.如果設定網路IP等...確認./etc/init.d/networking restart 執行會不會fall"
C.sudo apt-get update

設定 固定ip
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.104.30
        netmask 255.255.255.0
        broadcast 192.168.104.255
        gateway 192.168.104.1
        dns-nameservers 61.64.172.2

2. 下載 Script  
wget --no-check-certificate https://github.com/elasticdog/
OpenStack-NOVA-Installer-Script/raw/master/nova-install
3.變更權限  sudo chmod 755 nova-install
4. 執行

sudo bash nova-install -t cloud
提問
################################################################
 Nova Services Configuration
################################################################

This section includes setting the host IP addresses for the Nova Cloud
Controller, S3, RabbitMQ, and MySQL services...these are typically hosted on
the same machine.

Cloud Controller host IP address [192.168.104.15]:"enter"
S3 host IP address [192.168.104.15]:"enter"
RabbitMQ host IP address [192.168.104.15]:"enter"
MySQL host IP address [192.168.104.15]:"enter"

Database credentials
####################

Desired MySQL root password:"輸入mysql密碼"
Verify MySQL root password:"輸入mysql密碼"
 :###############################################################
################################################################
 Local Network Settings
################################################################

In order to set up the network bridge, we'll need some information on your
local network interface configuration. The settings will default to the first
known device as listed by 'ifconfig'.

Enter this machine's IP address [192.168.104.15]: 192.168.104.15
Enter this machine's broadcast address [192.168.104.255]:
Enter this machine's netmask [255.255.255.0]:
Enter this machine's gateway [192.168.104.1]: 192.168.104.254
Enter this machine's DNS nameserver address [61.64.172.2]
  Local Network Settings
################################################################

In order to set up the network bridge, we'll need some information on your
local network interface configuration. The settings will default to the first
known device as listed by 'ifconfig'.

Enter this machine's IP address [192.168.104.15]: "enter"
Enter this machine's broadcast address [192.168.104.255]:"enter"
Enter this machine's netmask [255.255.255.0]:"enter"
Enter this machine's gateway [192.168.104.1]: 192.168.104.254
Enter this machine's DNS nameserver address [61.64.172.2]:"enter"

################################################################
 Project Network Configuration
################################################################

Here you will set the network range that ALL of your projects will reside in,
and the number of IP addresses in that block that should be available for use.
After that, you'll create a project administrator and a new project.

Network range for ALL projects (normally x.x.x.x/12): 10.0.0.0/12
Total amount of usable IPs for ALL projects: 8

New project creation
####################

User name for the project administrator: dub
Name for the project: dubproject

Desired network range for the 'dubproject' project (normally x.x.x.x/24): 192.168.0.0/24
How many networks for the 'dubproject' project: 1
How many available IPs per 'dubproject' project network: 255

########
########

One last thing...there is currently no way to background/preeseed the
RabbitMQ package's installation splash screen, so we'll need you to
manually go through it.

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-os-mon erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools
  libsctp1 lksctp-tools
Suggested packages:
  erlang-tools erlang erlang-manpages erlang-doc-html
The following NEW packages will be installed:
  erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-os-mon erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools
  libsctp1 lksctp-tools rabbitmq-server
0 upgraded, 13 newly installed, 0 to remove and 30 not upgraded.
Need to get 4,337 kB/7,198 kB of archives.
After this operation, 14.2 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ natty/main erlang-base amd64 1:13.b.3-dfsg-2ubuntu3 [4,337 kB]
Fetched 4,337 kB in 18s (235 kB/s)
Selecting previously deselected package erlang-base.
(Reading database ... 47590 files and directories currently installed.)
Unpacking erlang-base (from .../erlang-base_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-crypto.
Unpacking erlang-crypto (from .../erlang-crypto_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-mnesia.
Unpacking erlang-mnesia (from .../erlang-mnesia_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-runtime-tools.
Unpacking erlang-runtime-tools (from .../erlang-runtime-tools_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-public-key.
Unpacking erlang-public-key (from .../erlang-public-key_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-ssl.
Unpacking erlang-ssl (from .../erlang-ssl_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-inets.
Unpacking erlang-inets (from .../erlang-inets_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-snmp.
Unpacking erlang-snmp (from .../erlang-snmp_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-os-mon.
Unpacking erlang-os-mon (from .../erlang-os-mon_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package erlang-syntax-tools.
Unpacking erlang-syntax-tools (from .../erlang-syntax-tools_1%3a13.b.3-dfsg-2ubuntu3_amd64.deb) ...
Selecting previously deselected package libsctp1.
Unpacking libsctp1 (from .../libsctp1_1.0.11+dfsg-1_amd64.deb) ...
Selecting previously deselected package lksctp-tools.
Unpacking lksctp-tools (from .../lksctp-tools_1.0.11+dfsg-1_amd64.deb) ...
Selecting previously deselected package rabbitmq-server.
Unpacking rabbitmq-server (from .../rabbitmq-server_2.3.1-1ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up erlang-base (1:13.b.3-dfsg-2ubuntu3) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-crypto (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-mnesia (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-runtime-tools (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-public-key (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-ssl (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-inets (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-snmp (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-os-mon (1:13.b.3-dfsg-2ubuntu3) ...
Setting up erlang-syntax-tools (1:13.b.3-dfsg-2ubuntu3) ...
Setting up libsctp1 (1.0.11+dfsg-1) ...
Setting up lksctp-tools (1.0.11+dfsg-1) ...
Setting up rabbitmq-server (2.3.1-1ubuntu1) ...
Adding group `rabbitmq' (GID 112) ...
Done.
Adding system user `rabbitmq' (UID 104) ...
Adding new user `rabbitmq' (UID 104) with group `rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Starting rabbitmq-server: SUCCESS
rabbitmq-server.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

################################################################
 ENTERING AUTO-PILOT MODE
################################################################

At this point, you've entered all the information needed to finish the
installation of this Nova component. Feel free to get some coffee, you have
earned it!

Installing packages
###################

Installing package 'python-software-properties' ... done
Adding 'ppa:nova-core/release' repository ... done
Installing package 'euca2ools' ... done
Installing package 'mysql-server' ... done
Installing package 'nova-api' ... done
Installing package 'nova-compute' ... done
Installing package 'nova-network' ... done
Installing package 'nova-objectstore' ... done
Installing package 'nova-scheduler' ... done
Installing package 'unzip' ... done

Setting up the Nova configuration file
######################################

Generating nova.conf ... done
Setting proper permissions for nova.conf ... done

Finalizing MySQL setup
######################

Adjusting MySQL network configuration ... done
Creating database ... done
Initializing database ... done

Generate Nova user credentials
##############################

Generating and extracting novacreds.zip ... done
Appending novarc environment settings to your ~/.bashrc ... done

Updating network interfaces
###########################

Adding bridge device ... done
Restarting networking service ... done

Bringing your Nova node online
##############################

Restarting Nova services ... done
Ensure all five Nova services are running:

UID        PID  PPID  C STIME TTY      STAT   TIME CMD
nova      6671  6667 19 15:55 ?        S      0:00 nova-api
nova      6660  6657 37 15:55 ?        S      0:01 nova-compute
nova      6647  6645 18 15:55 ?        S      0:00 nova-network
root      6683  6675  5 15:55 ?        S      0:00 nova-objectstor
nova      6692  6690 16 15:55 ?        S      0:00 nova-scheduler

Allowing ICMP and SSH access to all VMs ... done


########################################################################
# You /MUST/ re-source your 'novarc' to use the API commands since the #
# script cannot pass the source information out of its own process...  #
# the variables have been appended to your ~/.bashrc file for sourcing #
########################################################################

For reference, the generated credentials can be found in /root/creds/


The next thing you are going to want to do it get a VM to test with.
You can find a test VM how-to and read about custom image creation here:

  http://nova.openstack.org/adminguide/multi.node.install.html
  http://wiki.openstack.org/GettingImages

Enjoy your new private cloud!
reboot
source /root/creds/novarc
5.檢查
執行 euca-describe-instances  測試api server 是否運作正常
情況
A.正常 不會出現 訊息
B.EC2_ACCESS_KEY environment variable must be set. #EC2_ACCESS_KEY沒設好
重設

/usr/bin/python /usr/bin/nova-manage project zipfile nova nova /root/creds/novacreds.zip
unzip /root/creds/novacreds.zip -d /root/creds/
cat /root/creds/novarc >> ~/.bashrc
source ~/.bashrc
source /root/creds/novarc


euca-describe-instances 測試確定
--------------------------------------------------------------------------------------------------------------------------
cloud node---------------------------------------------------------------------------------------------------------

wget --no-check-certificate https://github.com/elasticdog
/OpenStack-NOVA-Installer-Script/raw/master/nova-install
1.變更權限  sudo chmod 755 nova-install


nova-install -t compute
 .....省略

2.What is the IP address of your NOVA CONTROLLER? 輸入相關資訊

-------------------------------------------------------------------------------------------------------------------------------

controller--------------------------------------------------------------------------------------------------------------------------
1.mysql -uroot -pnova nova -e 'select * from services;'
可以看到node 加入
+---------------------+---------------------+------------+---------+----+---------+----------------+----------                                                -+--------------+----------+-------------------+
| created_at          | updated_at          | deleted_at | deleted | id | host    | binary         | topic                                                     | report_count | disabled | availability_zone |
+---------------------+---------------------+------------+---------+----+---------+----------------+----------                                                -+--------------+----------+-------------------+
| 2011-05-05 13:37:50 | 2011-05-05 15:49:56 | NULL       |       0 |  1 | nova-cc | nova-network   | network                                                   |          786 |        0 | nova              |
| 2011-05-05 13:37:55 | 2011-05-05 15:49:59 | NULL       |       0 |  2 | nova-cc | nova-compute   | compute                                                   |          787 |        0 | nova              |
| 2011-05-05 13:38:00 | 2011-05-05 15:50:01 | NULL       |       0 |  3 | nova-cc | nova-scheduler | scheduler                                                 |          785 |        0 | nova              |
| 2011-05-05 15:47:50 | 2011-05-05 15:50:00 | NULL       |       0 |  4 | 64node1 | nova-compute   | compute                                                   |           13 |        0 | nova              |
+---------------------+---------------------+------------+---------+----+---------+----------------+---------- 
2.image="ubuntu1010-UEC-localuser-image.tar.gz"
3.wget http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz
4.uec-publish-tarball ubuntu1010-UEC-localuser-image.tar.gz dub-bucket x86_64

euca-describe-images
euca-add-keypair test > test.pem
chmod 600 test.pem

euca-run-instances -k test -t m1.tiny "ami-key" 
5.test images  
查 image ipaddress
euca-describe-instances 
ssh ubuntu@$ipaddress
sudo -i

2011年4月26日 星期二

Open Stack Nova Compute node configuration steps

1.wget --no-check-certificate https://github.com/dubsquared/OpenStack-NOVA-Installer-Script/raw/master/nova-NODE-installer.sh


2. sudo chmod 755 nova-NODE-installer.sh

3.sudo ./nova-NODE-installer.sh
 

What is the IP address of your NOVA CONTROLLER?
...... 
並將 控制台端 etc/nova/nova.conf copy 到Node 的同一個位置

4.到控制器主機 打 mysql -u帳號  -p密碼 nova -e 'select * from services;' 查看