6. Configure Compute services

Controller Node:

1. sudo apt-get install nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler python-novaclient

2. sudo vi /etc/nova/nova.conf

[database]

connection = mysql://nova:[email protected]/nova

[DEFAULT]

...

rpc_backend = rabbit

rabbit_host = controller

rabbit_password = RABBIT_PASS

[DEFAULT]

...

my_ip = 10.0.0.11 (controller_node_ip)

vncserver_listen = 10.0.0.11 (controller_node_ip)

vncserver_proxyclient_address = 10.0.0.11 (controller_node_ip)

3. sudo rm /var/lib/nova/nova.sqlite

4. 创建数据库

mysql -u root -p

CREATE DATABASE nova;

GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘NOVA_DBPASS‘;

GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘NOVA_DBPASS‘;

5. sudo -s /bin/sh -c "nova-manage db sync" nova

6. 创建用户

keystone user-create --name=nova --pass=NOVA_PASS [email protected]

keystone user-role-add --user=nova --tenant=service --role=admin

7. sudo vi /etc/nova/nova.conf

[DEFAULT]

...

auth_strategy = keystone

[keystone_authtoken]

...

auth_uri = http://controller:5000

auth_host = controller

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = nova

admin_password = NOVA_PASS

8.

keystone service-create --name=nova --type=compute --description="OpenStack Compute"

keystone endpoint-create \

--service-id=$(keystone service-list | awk ‘/ compute / {print $2}‘) \

--publicurl=http://controller:8774/v2/%\(tenant_id\)s \

--internalurl=http://controller:8774/v2/%\(tenant_id\)s \

--adminurl=http://controller:8774/v2/%\(tenant_id\)s

9. 重启服务

sudo service nova-api restart

sudo service nova-cert restart

sudo service nova-consoleauth restart

sudo service nova-scheduler restart

sudo service nova-conductor restart

sudo service nova-novncproxy restart

10. nova image-list

Compute Node:

1. sudo apt-get install nova-compute-kvm

2. sudo vi /etc/nova/nova.conf

[DEFAULT]

...

auth_strategy = keystone

...

rpc_backend = rabbit

rabbit_host = controller

rabbit_password = RABBIT_PASS

...

my_ip = 10.0.0.31 (Compute Node IP)

vnc_enabled = True

vncserver_listen = 0.0.0.0

vncserver_proxyclient_address = 10.0.0.31  (Compute Node IP)

novncproxy_base_url = http://controller:6080/vnc_auto.html

...

glance_host = controller

[database]

# The SQLAlchemy connection string used to connect to the database

connection = mysql://nova:[email protected]/nova

[keystone_authtoken]

auth_uri = http://controller:5000

auth_host = controller

auth_port = 35357

auth_protocol = http

admin_tenant_name = service

admin_user = nova

admin_password = NOVA_PASS

3. 检测服务器是否支持虚拟化

egrep -c ‘(vmx|svm)‘ /proc/cpuinfo

若结果不为零,则继续进行下一步;若为零,需将/etc/nova/nova-compute.conf里的virt_type置为qemu

4. sudo rm /var/lib/nova/nova.sqlite

5. sudo service nova-compute restart

时间: 2024-12-28 12:27:43

6. Configure Compute services的相关文章

openstack--newton安装过程(官方文档)compute

Install and configure a compute node yum install -y openstack-nova-compute vim /etc/nova/nova.conf [DEFAULT]...enabled_apis = osapi_compute,metadata [DEFAULT]...transport_url = rabbit://openstack:[email protected] [DEFAULT]...auth_strategy = keystone

How to install and configure Azure PowerShell

https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/ In this article: How to: Install Azure PowerShell How to: Connect to your subscription How to use the cmdlets: An example Getting Help Additional Resources 11 Comm

openstack ocata版本简化安装

Network Time Protocol (NTP) Controller Node apt install chrony Edit the /etc/chrony/chrony.conf 添加如下信息 #修改10.0.0.0/24为自己环境的网段 server controller iburst allow 10.0.0.0/24 注释掉 pool 2.debian.pool.ntp.org offline iburst line Restart the NTP service servic

OpenStack 学习笔记(五):OpenStack nova服务搭建

--先决条件 1.)创建数据库 MariaDB [(none)]> CREATE DATABASE nova; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> GRANT ALL ON nova.* TO 'nova'@'%' IDENTIFIED BY 'nova'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> GRANT ALL ON nova.* TO 'n

Openstack(Kilo)安装系列之neutron(九)

控制节点 Before you configure the OpenStack Networking (neutron) service, you must create a database, service credentials, and API endpoint. 一.创建neutron数据库并授权 1.登陆数据库 mysql -u root -p 2.创建数据库并授权 CREATE DATABASE neutron; GRANT ALL PRIVILEGES ON neutron.*

Openstack(Kilo)安装系列之nova(七)

控制节点 Before you install and configure the Compute service, you must create a database, service credentials, and API endpoint. 一.创建nova数据库并授权 1.登陆数据库 mysql -u root -p 2.创建数据库并授权 CREATE DATABASE nova; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost

openstack三个节点icehouse-gre模式部署

一.环境准备 1.架构 创建3台虚拟机,分别作为controll节点.network节点和compute1节点. Controller节点:1processor,2G memory,5G storage. Network节点:1processor,2G memory,5G storage. Comute1节点:1processor,2G memory,5G storage. 架构图: 外部网络:提供上网业务,外界登录openstack(在上图为蓝色模块) 管理网络:三节点通信比如keystone

OpenStack(i版)之Keystone,Glance,Nova,Neutron,Horizon

一.前期准备 1.1.linux-node1端: [[email protected]1 ~]# egrep '(vmx|svm)' /proc/cpuinfo ##有输出就支持虚拟化 [[email protected] ~]# cat /etc/redhat-release CentOS release 6.8 (Final) [[email protected] ~]# uname -r 2.6.32-642.el6.x86_64 [[email protected] ~]# getenf

Gentoo Linux安装详解--根据官方WiKi整理

1. 前期准备 远程登录: 开启ssh服务: /etc/init.d/sshd start 设置密码: passwd 以便使用putty.ssh client远程登录上传stage等(有时在线下载很慢,而局域网上传很快) 准备磁盘: 分区: fdisk /dev/sda /dev/sda1 : /boot 100M(32-100M) 设启动笔记-a/dev/sda2 : / 20G/dev/sda3 : /home 20G/dev/sda5 : /swap 1G (内存< 512 MB,分区分配