-
源码下载、安装
-
参考:
http://ericzhong.github.io/2013/09/04/install-openstack-from-source/
-
下载:git clone -b stable/icehouse https://github.com/openstack/nova.git
pip install -r requirements.txt
python setup.py install
- 创建用户、服务
-
生成nova配置文件:(不稳定,可能需要多执行几次)
yum install postgresql-devel、pip install tox、pip install -r test-requirements.txt
tox –egenconfig
-
配置nova配置文件、数据库初始化:
配置sql连接(修改connection而不是sql_connection)
mysql -uroot -popenstack -e "CREATE DATABASE nova;"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'openstack';"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'openstack';"
mysql -uroot -popenstack -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'controller0' IDENTIFIED BY 'openstack';"
nova-manage db sync(nova-manage --config-file=/etc/nova/nova.conf db sync)
错误参考:
yum -y install yum-plugin-priorities
https://ask.openstack.org/en/question/25546/table-novamigrate_version-doesnt-exist/
https://community.rackspace.com/products/f/45/t/3620
yum install python-oslo-messaging
yum install python-migrate
- Nova.conf配置日志、rpc、vnc、keystone认证等
- 添加api-paste.ini 的 Keystone认证信息
-
启动nova服务
-
nova-all &
mkdir -p /var/lib/nova
lock_path= /var/lib/nova,解决RequiredOptError: value required for option: lock_path问题:http://yhz.me/blog/Openstack-Icehouse-Source-on-CentOS.html
-
nova-manage service list
- nova-api默认占用8774端口。nova-api默认占用8774、8775端口。nova-novncproxy默认占用6080端口。
-
nova-novnc启动失败问题:http://8065082.blog.51cto.com/8055082/1542085
https://github.com/kanaka/noVNC.git
cp -rf noVNC/* /usr/share/novnc/
-
-
-
Nova-client下载安装
-
下载:git clone -b stable/kilo https://github.com/openstack/python-novaclient.git(git clone https://github.com/openstack/python-novaclient.git)
pip install -r requirements.txt
python setup.py install
- 有问题看日志!!!经验主义!!!
-
虚拟机动态迁移参考:
-
-
日志分析——ELK组合
-
同类云平台比较
相关文章
- 【OpenStack】OpenStack系列1之OpenStack本地开发环境搭建&&向社区贡献代码
- (一)Openstack系列之 如何修改 并且调试 观察效果
- openstack运维实战系列(一)之keystone用户建立
- Centos7上部署openstack mitaka配置详解(将疑难点都进行划分)
- 【OpenStack】OpenStack系列12之OpenStack自动化测试详解
- 照着官网来安装openstack pike之nova安装
- nova-compute 部署 instance 详解 - 每天5分钟玩转 OpenStack(28)
- 【OpenStack】OpenStack系列1之OpenStack本地开发环境搭建&&向社区贡献代码
- OpenStack之Nova分析——创建虚拟机(八)
- OpenStack之Nova分析——创建虚拟机(一)