背景
要基于公司已有的openstack结合docker搞一个好玩的东西,所以又开始撸openstack了,这就需要对虚拟化有个更深入的理解。
昨天搞整了一下KVM和vlan,http://blog.decbug.com/2016/06/20/kvm/
今天就要在家搞一套openstack开发环境
devstack
devstack是一个一键式搭建open stack环境的脚本,如官网所说DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18git clone https://github.com/openstack-dev/devstack.git
cd devstack/
# 切换到m版本分支
git co stable/mitaka
cd tools
# 创建stack用户
sudo bash create-stack-user.sh
# cd ../../
sudo mv devstack /opt/stack
sudo chown -R stack:stack /opt/stack/devstack
# switch to stack
sudo -i
su stack
参照官网在/opt/stack/devstack
创建local.conf,内容是
记得改host_ip,service_host,PUBLIC_INTERFACE
controller
1 | [[local|localrc]] |
compute node
1 | [[local|localrc]] |
然后运行1
bash /stack.sh
参考http://blog.csdn.net/u011521019/article/details/51114681
改成我的实际IP
提示1
2
3
4
5
6
72016-06-21 14:07:28.255 | ovs-ofctl: br-int is not a bridge or a socket
2016-06-21 14:07:28.262 | ovs-ofctl: br-tun is not a bridge or a socket
2016-06-21 14:07:28.269 | ovs-ofctl: br-ex is not a bridge or a socket
2016-06-21 14:07:28.277 | ovs-ofctl: br-int is not a bridge or a socket
2016-06-21 14:07:28.284 | ovs-ofctl: br-tun is not a bridge or a socket
2016-06-21 14:07:28.292 | ovs-ofctl: br-ex is not a bridge or a socket
2016-06-21 14:07:28.446 | +^[[3242mstack.sh:exit_trap:498 ^[(B^[[m exit 1
说要unstack.sh,然后reboot,再stack.sh,然而还是一样的错
1 | # minimal config |
本博客欢迎转发,但请保留原作者信息
github:codejuan
博客地址:http://blog.decbug.com/