01 openstack之compute
[root@Controller ~]# yum -y install qpid-cpp-server
[root@Controller ~]# vim /etc/qpidd.conf
修改
auth=yes
为
auth=no
[root@Controller ~]# service qpidd start
[root@Controller ~]# chkconfig qpidd on
#以下测试没有成功
[root@Controller ~]# . .admin-openrc.sh
[root@Controller ~]# keystone user-list
[root@Controller ~]# glance p_w_picpath-list
[root@controller ~]# cat .admin-openrc.sh
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://controller:35357/v2.0
[root@Controller ~]# yum install openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-novncproxy openstack-nova-scheduler python-novaclient
61:13(55665)
02 openstack之neutron
环境配置
Network
eth0: 192.168.28.123 仅主机模式
eth1: VMnet2
eth2: 桥接
#同步服务器时间
[root@Network ~]# crontab -l
*/3 * * * * /usr/sbin/ntpdate 192.168.1.1 &> /dev/null
#配置openstack-Network
[root@Network ~]# cd /etc/sysconfig/netwok-scripts
[root@Network network-scripts]# cp ifcfg-eth{0,1}
[root@Network network-scripts]# cp ifcfg-eth{0,2}
[root@Network network-scripts]# vim ifcfg-eth0
删除UUID、MAC、MM_CONTROLLED、网关、DNS
修改IP地址为192.168.28.123
[root@Network network-scripts]# vim ifcfg-eth1
替换所有的eth0为eth1
删除UUID、MAC、MM_CONTROLLED、IP、网关行
其它保持不变
[root@Network network-scripts]# vim ifcfg-eth2
删除UUID、MAC、MM_CONTROLLED行
替换所有的eth0为eth2
[root@Network network-scripts]# service NetworkManager stop
[root@Network network-scripts]# chkconfig NetworkManager off
[root@Network network-scripts]# service network restart
[root@Network network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:B6:7D:F0
inet addr:192.168.28.123 Bcast:192.168.28.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb6:7df0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:729 (729.0 b) TX bytes:3146 (3.0 KiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:B6:7D:FA
inet6 addr: fe80::20c:29ff:feb6:7dfa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:726 (726.0 b)
eth2 Link encap:Ethernet HWaddr 00:0C:29:B6:7D:04
inet addr:192.168.1.123 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb6:7d04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1282 errors:0 dropped:0 overruns:0 frame:0
TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:270631 (264.2 KiB) TX bytes:21092 (20.5 KiB)
[root@Controller ~]# mysql
mysql> CREATE DATABASE neutron CHARACTER SET 'utf8';
mysql> GRANT ALL ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'neutron';
mysql> FLUSH PRIVILEGES;
mysql> \q
42:55(39030)
03 openstack之运行vm