OpenStack Grizzly(Control Node+Network Node+Compute Node)
来源:互联网 发布:税控盘开票软件打不开 编辑:程序博客网 时间:2024/04/29 16:40
1. 环境搭建
节点角色: NICs
控制节点:eth0 (172.16.100.2), eth1 (192.168.1.211)
计算节点:eth0 (172.16.100.3), eth1 (10.20.20.53)
网络节点:eth0 (172.16.100.4), eth1 (192.168.100.52) , eth2 (10.20.20.52)
网络架构大致如下。
2. 控制节点
2.1. 准备Ubuntu
•安装好Ubuntu 12.04.02 Server 64bits后, 进入sudo模式直到完成本指南:
•sudo su -
添加源
添加 Grizzly 源,并升级系统
cat > /etc/apt/sources.list.d/grizzly.list<<EOF
debhttp://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main
deb http://ubuntu-cloud.archive.canonical.com/ubuntuprecise-proposed/grizzly main
EOF
apt-get update
apt-get upgrade
执行apt-get update如遇到这样的提示
sudo apt-key adv--recv-keys --keyserverkeyserver.ubuntu.com C1289A29
导入提示中key的最后八位执行完后再次update
2.2.设置网络
如下编辑网卡配置文件/etc/network/interfaces:
重启网络服务:
service networking restart
apt-get install -y vlan bridge-utils
开启路由转发:
sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sysctl net.ipv4.ip_forward=1
2.3. 安装MySQL
安装MySQL并为root用户设置密码:
apt-get install -y mysql-server python-mysqldb
配置mysql监听所有网络接口请求:
sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
service mysql restart
2.4. 安装RabbitMQ和NTP
apt-get install -y rabbitmq-server
apt-get install -y ntp
2.5. 创建数据库
mysql -u root -p
#Keystone
CREATE DATABASE keystone;
GRANT ALL ON keystone.* TO 'keystoneUser'@'%' IDENTIFIED BY 'keystonePass';
#Glance
CREATE DATABASE glance;
GRANT ALL ON glance.* TO 'glanceUser'@'%' IDENTIFIED BY 'glancePass';
#Quantum
CREATE DATABASE quantum;
GRANT ALL ON quantum.* TO 'quantumUser'@'%' IDENTIFIED BY 'quantumPass';
#Nova
CREATE DATABASE nova;
GRANT ALL ON nova.* TO 'novaUser'@'%' IDENTIFIED BY 'novaPass';
#Cinder
CREATE DATABASE cinder;
GRANT ALL ON cinder.* TO 'cinderUser'@'%' IDENTIFIED BY 'cinderPass';
2.6. 配置Keystone
安装keystone软件包:
apt-get install -y keystone
在/etc/keystone/keystone.conf中设置连接到新创建的数据库:
connection = mysql://keystoneUser:keystonePass@172.16.100.2/keystone
重启身份认证服务并同步数据库:
service keystone restart
keystone-manage db_sync
使用git仓库中脚本填充keystone数据库
#注意在执行脚本前请按你的网卡配置修改HOST_IP和HOST_IP_EXT
wget https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/OVS_MultiNode/KeystoneScripts/keystone_basic.sh
wget https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/OVS_MultiNode/KeystoneScripts/keystone_endpoints_basic.sh
sh keystone_basic.sh
sh keystone_endpoints_basic.sh
创建一个简单的凭据文件,这样稍后就不会因为输入过多的环境变量而感到厌烦:
Vi creds
#Paste the following:
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin_pass
export OS_AUTH_URL="http://192.168.1.211:5000/v2.0/"
# Load it:
source creds
通过命令行列出Keystone中添加的用户:
2.7. 设置Glance
安装Glance:
apt-get install -y glance
按下面更新/etc/glance/glance-api-paste.ini:
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
delay_auth_decision = true
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = service_pass
按下面更新/etc/glance/glance-registry-paste.ini:
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = service_pass
按下面更新/etc/glance/glance-api.conf:
sql_connection = mysql://glanceUser:glancePass@172.16.100.2/glance
[paste_deploy]
flavor = keystone
按下面更新/etc/glance/glance-registry.conf:
sql_connection = mysql://glanceUser:glancePass@172.16.100.2/glance
[paste_deploy]
flavor = keystone
重启glance-api和glance-registry服务:
service glance-api restart; service glance-registry restart
同步glance数据库:
glance-manage db_sync
重启服务使配置生效:
service glance-registry restart; service glance-api restart
测试Glance, 从网络上传cirros云镜像:
glance image-create --name myFirstImage --is-public true --container-format bare --disk-format qcow2 --location http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
列出镜像检查是否上传成功:
2.8. 设置Quantum
安装Quantum组件:
apt-get install -y quantum-server
编辑 /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
#Under the database section
[DATABASE]
sql_connection = mysql://quantumUser:quantumPass@172.16.100.2/quantum
#Under the OVS section
[OVS]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
enable_tunneling = True
#Firewall driver for realizing quantum security group function
[SECURITYGROUP]
firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
编辑/etc/quantum/api-paste.ini:
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
编辑/etc/quantum/quantum.conf:
keystone_authtoken]
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
signing_dir = /var/lib/quantum/keystone-signing
重启quantum所有服务:
service quantum-server restart
2.9. 设置Nova
安装nova组件:
apt-get install -y nova-api nova-cert novnc nova-consoleauth nova-scheduler nova-novncproxy nova-doc nova-conductor
在/etc/nova/api-paste.ini配置文件中修改认证信息:
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = service_pass
signing_dirname = /tmp/keystone-signing-nova
# Workaround for https://bugs.launchpad.net/nova/+bug/1154809
auth_version = v2.0
如下修改/etc/nova/nova.conf:
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
compute_scheduler_driver=nova.scheduler.simple.SimpleScheduler
rabbit_host=172.16.100.2
nova_url=http://172.16.100.2:8774/v1.1/
sql_connection=mysql://novaUser:novaPass@172.16.100.2/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
# Auth
use_deprecated_auth=false
auth_strategy=keystone
# Imaging service
glance_api_servers=172.16.100.2:9292
image_service=nova.image.glance.GlanceImageService
# Vnc configuration
novnc_enabled=true
novncproxy_base_url=http://192.168.1.211:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=172.16.100.2
vncserver_listen=0.0.0.0
# Network settings
network_api_class=nova.network.quantumv2.api.API
quantum_url=http://172.16.100.2:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=service_pass
quantum_admin_auth_url=http://172.16.100.2:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
#If you want Quantum + Nova Security groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=quantum
#If you want Nova Security groups only, comment the two lines above and uncomment line -1-.
#-1-firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
#Metadata
service_quantum_metadata_proxy = True
quantum_metadata_proxy_shared_secret = helloOpenStack
# Compute #
compute_driver=libvirt.LibvirtDriver
# Cinder #
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
同步数据库:
nova-manage db sync
重启所有nova服务:
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done
检查所有nova服务是否启动正常:
2.10. 设置Cinder
安装软件包:
apt-get install -y cinder-api cinder-scheduler cinder-volume iscsitarget open-iscsi iscsitarget-dkms
配置iscsi服务:
sed -i 's/false/true/g' /etc/default/iscsitarget
重启服务:
service iscsitarget start
service open-iscsi start
如下配置/etc/cinder/api-paste.ini:
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
service_protocol = http
service_host = 192.168.1.211
service_port = 5000
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = service_pass
signing_dir = /var/lib/cinder
编辑/etc/cinder/cinder.conf:
[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
sql_connection = mysql://cinderUser:cinderPass@172.16.100.2/cinder
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper=ietadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
iscsi_ip_address=172.16.100.2
接下来同步数据库:
cinder-manage db sync
最后别忘了创建一个卷组命名为cinder-volumes:
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G
losetup /dev/loop2 cinder-volumes
fdisk /dev/loop2
#Type in the followings:
n
p
1
ENTER
ENTER
t
8e
w
创建物理卷和卷组:
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
修改/etc/rc.local
重启cinder服务:
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i restart; done
确认cinder服务在运行:
cd /etc/init.d/; for i in $( ls cinder-* ); do sudo service $i status; done
2.11. 设置Horizon
如下安装horizon
apt-get install -y openstack-dashboard memcached
如果你不喜欢OpenStack ubuntu主题, 你可以停用它:
dpkg --purge openstack-dashboard-ubuntu-theme
重启Apache和memcached服务:
service apache2 restart; service memcached restart
3. 网络节点
3.1.准备Ubuntu
•安装好Ubuntu 12.04.02 Server 64bits后, 进入sudo模式直到完成本指南:
•sudo su -
添加源
添加 Grizzly 源,并升级系统
cat> /etc/apt/sources.list.d/grizzly.list <<EOF
debhttp://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-proposed/grizzlymain
EOF
apt-getupdate
apt-getupgrade
3.2.设置网络
如下编辑网卡配置文件/etc/network/interfaces:
# OpenStack management
auto eth0
iface eth0 inet static
address 172.16.100.4
netmask 255.255.255.0
# VM internet Access
auto eth1
iface eth1 inet static
address 192.168.1.213
netmask 255.255.255.0
# VM Configuration
auto eth2
iface eth2 inet static
address 10.20.20.52
netmask 255.255.255.0
重启网络服务:
servicenetworking restart
安装ntp服务
apt-get install -y vlan bridge-utils
apt-get install -y ntp
配置ntp服务从控制节点同步时间:
#Comment the ubuntu NTP servers
sed -i 's/server 0.ubuntu.pool.ntp.org/#server 0.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 1.ubuntu.pool.ntp.org/#server 1.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 2.ubuntu.pool.ntp.org/#server 2.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 3.ubuntu.pool.ntp.org/#server 3.ubuntu.pool.ntp.org/g' /etc/ntp.conf
#Set the network node to follow up your conroller node
sed -i 's/server ntp.ubuntu.com/server 172.16.100.2/g' /etc/ntp.conf
service ntp restart
开启路由转发:
sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sysctl -p
3.3. OpenVSwitch
安装OpenVSwitch软件包:
apt-get install -y openvswitch-controller openvswitch-switch openvswitch-brcompat
修改openvswitch-switch配置文件
sed -i 's/# BRCOMPAT=no/BRCOMPAT=yes/g' /etc/default/openvswitch-switch
重启openvswitch-switch(注意ovs-brcompatd是否启动,如果未启动需要强制加载):
/etc/init.d/openvswitch-switch restart
如果有bridge module is loaded, not loading brcompat提示,需要先卸载bridge模块:
lsmod |grep bridge
rmmod bridge
强制加载brcompat内核模块:
/etc/init.d/openvswitch-switch force-reload-kmod
查看ovs-brcompatd、ovs-vswitchd、ovsdb-server是否均已启动:
/etc/init.d/openvswitch-switch restart
添加网桥 br-ex 并把网卡 eth1 加入br-ex:
ovs-vsctl add-br br-ex
ovs-vsctl add-port br-ex eth1
如下编辑/etc/network/interfaces:
重启网络服务:
/etc/init.d/networking restart
创建内网网桥br-int:
ovs-vsctl add-br br-int
3.4. Quantum
安装Quantum组件
apt-get -y install quantum-plugin-openvswitch-agent quantum-dhcp-agent quantum-l3-agent quantum-metadata-agent
编辑/etc/quantum/api-paste.ini
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
编辑OVS配置文件/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini:
#Under the database section
[DATABASE]
sql_connection = mysql://quantumUser:quantumPass@172.16.100.2/quantum
#Under the OVS section
[OVS]
tenant_network_type = gre
enable_tunneling = True
tunnel_id_ranges = 1:1000
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip = 10.10.10.52
#Firewall driver for realizing quantum security group function
[SECURITYGROUP]
firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
更新/etc/quantum/metadata_agent.ini:
# The Quantum user information for accessing the Quantum API.
auth_url = http://172.16.100.2:35357/v2.0
auth_region = RegionOne
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
# IP address used by Nova metadata server
nova_metadata_ip = 172.16.100.2
# TCP Port used by Nova metadata server
nova_metadata_port = 8775
metadata_proxy_shared_secret = helloOpenStack
编辑/etc/quantum/quantum.conf:
# 确保RabbitMQ IP指向了控制节点
rabbit_host = 172.16.100.2
[keystone_authtoken]
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
signing_dir = /var/lib/quantum/keystone-signing
编辑 /etc/sudoers.d/quantum_sudoers
#Modify the quantum user
quantum ALL=NOPASSWD: ALL
建立如下脚本链接到/etc/rc2.d/S99XXXX
重启quantum所有服务:
cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i restart; done
4. 计算节点
3.1. 准备Ubuntu
•安装好Ubuntu 12.04.02 Server 64bits后, 进入sudo模式直到完成本指南:
•sudo su -
添加源
添加 Grizzly 源,并升级系统
cat > /etc/apt/sources.list.d/grizzly.list <<EOF
deb http://ubuntu-cloud.archive.canonical.com/ubuntuprecise-updates/grizzly main
deb http://ubuntu-cloud.archive.canonical.com/ubuntuprecise-proposed/grizzly main
EOF
apt-get update
apt-get upgrade
3.2.设置网络
如下编辑网卡配置文件/etc/network/interfaces:(由于这样配置会导致计算节点连不上外网,可以在安装完成后,再修改)
# OpenStack management
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
# iface eth0 inet6 auto
address 172.16.100.3
netmask 255.255.255.0
# VM Configuration
auto eth1
iface eth1 inet static
address 10.20.20.53
netmask 255.255.255.0
重启网络服务:
service networking restart
安装ntp服务
apt-get install -y vlan bridge-utils
apt-get install -y ntp
配置ntp服务从控制节点同步时间:
#Comment the ubuntu NTP servers
sed -i 's/server 0.ubuntu.pool.ntp.org/#server 0.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 1.ubuntu.pool.ntp.org/#server 1.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 2.ubuntu.pool.ntp.org/#server 2.ubuntu.pool.ntp.org/g' /etc/ntp.conf
sed -i 's/server 3.ubuntu.pool.ntp.org/#server 3.ubuntu.pool.ntp.org/g' /etc/ntp.conf
#Set the network node to follow up your conroller node
sed -i 's/server ntp.ubuntu.com/server 172.16.100.2/g' /etc/ntp.conf
service ntp restart
开启路由转发:
sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sysctl -p
4.3. KVM
确保你的硬件启用virtualization:
apt-get install cpu-checker
kvm-ok
现在安装kvm并配置它:
apt-get install -y kvm libvirt-bin pm-utils
在/etc/libvirt/qemu.conf配置文件中启用cgroup_device_acl数组:
cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet","/dev/net/tun"
]
删除默认的虚拟网桥
virsh net-destroy default
virsh net-undefine default
更新/etc/libvirt/libvirtd.conf配置文件
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"
编辑libvirtd_opts变量在/etc/init/libvirt-bin.conf配置文件中
env libvirtd_opts="-d -l"
编辑/etc/default/libvirt-bin文件
libvirtd_opts="-d -l"
重启libvirt服务使配置生效
service libvirt-bin restart
4.3. OpenVSwitch
安装OpenVSwitch软件包:
apt-get install -y openvswitch-controller openvswitch-switch openvswitch-brcompat
修改openvswitch-switch配置文件
sed -i 's/# BRCOMPAT=no/BRCOMPAT=yes/g' /etc/default/openvswitch-switch
重启openvswitch-switch(注意ovs-brcompatd是否启动,如果未启动需要强制加载):
/etc/init.d/openvswitch-switch restart
如果有bridge module is loaded, not loading brcompat提示,需要先卸载bridge模块:
lsmod |grep bridge
rmmod bridge
强制加载brcompat内核模块:
/etc/init.d/openvswitch-switch force-reload-kmod
查看ovs-brcompatd、ovs-vswitchd、ovsdb-server是否均已启动:
/etc/init.d/openvswitch-switch restart
创建网桥
ovs-vsctl add-br br-int
4.4. Quantum
安装Quantum组件
apt-get -y install quantum-plugin-openvswitch-agent
编辑OVS配置文件/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini:
#Under the database section
[DATABASE]
sql_connection = mysql://quantumUser:quantumPass@172.16.100.2/quantum
#Under the OVS section
[OVS]
tenant_network_type = gre
enable_tunneling = True
tunnel_id_ranges = 1:1000
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip = 10.10.10.52
#Firewall driver for realizing quantum security group function
[SECURITYGROUP]
firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
编辑/etc/quantum/quantum.conf:
# 确保RabbitMQ IP指向了控制节点
rabbit_host = 172.16.100.2
[keystone_authtoken]
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = service_pass
signing_dir = /var/lib/quantum/keystone-signing
重启quantum所有服务:
service quantum-plugin-openvswitch-agent restart
4.6. Nova
安装nova组件
apt-get install -y nova-compute-kvm
在/etc/nova/api-paste.ini配置文件中修改认证信息
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = 172.16.100.2
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = service_pass
signing_dirname = /tmp/keystone-signing-nova
# Workaround for https://bugs.launchpad.net/nova/+bug/1154809
auth_version = v2.0
如下修改/etc/nova/nova.conf:
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
compute_scheduler_driver=nova.scheduler.simple.SimpleScheduler
rabbit_host=172.16.100.2
nova_url=http://172.16.100.2:8774/v1.1/
sql_connection=mysql://novaUser:novaPass@172.16.100.2/nova
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
# Auth
use_deprecated_auth=false
auth_strategy=keystone
# Imaging service
glance_api_servers=172.16.100.2:9292
image_service=nova.image.glance.GlanceImageService
# Vnc configuration
novnc_enabled=true
novncproxy_base_url=http://192.168.1.211:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=10.10.10.53
vncserver_listen=0.0.0.0
# Network settings
network_api_class=nova.network.quantumv2.api.API
quantum_url=http://172.16.100.2:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=service_pass
quantum_admin_auth_url=http://172.16.100.2:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
#If you want Quantum + Nova Security groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=quantum
#If you want Nova Security groups only, comment the two lines above and uncomment line -1-.
#-1-firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
#Metadata
service_quantum_metadata_proxy = True
quantum_metadata_proxy_shared_secret = helloOpenStack
# Compute #
compute_driver=libvirt.LibvirtDriver
# Cinder #
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
cinder_catalog_info=volume:cinder:internalURL
修改/etc/nova/nova-compute.conf
[DEFAULT]
libvirt_type=kvm
libvirt_ovs_bridge=br-int
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
libvirt_use_virtio_for_bridges=True
重启所有nova服务
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done
检查所有nova服务是否启动正常:
nova-manage service list
参考文档
OpenStack Grizzly Install Guide
https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst
OpenStack Grizzly 双网卡安装指南
https://github.com/fmyzjs/OpenStack-Grizzly-Multi-2NICs-Install-Guide-CN/blob/master/OpenStack_Grizzly_Multi_2NICs_Install_Guide_CN.rst
OpenStack Grizzly 安装指南
https://github.com/ist0ne/OpenStack-Grizzly-Install-Guide-CN/blob/OVS_MutliNode/OpenStack_Grizzly_Install_Guide.rst
OpenStack Grizzly Quantum Multihost部署
http://longgeek.com/2013/04/03/openstack-grizzly-quantum-multihost-deployment/
Openstack G版本 Ubuntu13.04三节点实验记录
http://jerrymin.blog.51cto.com/3002256/1316770
- OpenStack Grizzly(Control Node+Network Node+Compute Node)
- Openstack Grizzly 指定 compute node 创建 instance
- 《转》 Openstack Grizzly 指定 compute node 创建 instance
- Openstack添加compute node
- 使用ESXI作为OpenStack compute node
- OpenStack Grizzly Install Guide----VLAN Mode(3 Node)
- openstack 用nova API 指定 compute node 创建 instance
- Openstack组件部署 — Nova_Install and configure a compute node
- node
- Node
- Node
- Node
- Node
- node
- node
- node
- Node
- Node
- 大型工程在新建文档时,莫名导致程序挂掉的原因
- Android kernel wakelock分析
- 中医知识
- 如何查看SQL Server 2005使用with encryption 加密的存储过程或触发器,函数
- CXF之不用spring配置的实例(Simple Frontend)
- OpenStack Grizzly(Control Node+Network Node+Compute Node)
- ACM 计算n个数的平均值
- CXF脱离Spring运行
- fedora9安装中文输入法
- C语言难点及分析
- log4j日志说明
- MongoDB基本用法
- MFC中ListControl控件的使用 .
- 谷歌地图在地图上添加文字标注