##5.2 Nova计算节点--openstack

##5.2 Nova计算节点

##5.2 Nova计算节点
# compute 安装
#5.2.Nova-compute.sh

#基本配置:
#关闭selinux、防火墙
#更换阿里源、升级、重启、时间同步
#hostname设置
#安装OpenStack库

#安装配置Nova
yum install -y openstack-nova-compute
yum install -y python-openstackclient openstack-selinux

#设置Nova实例路径(磁盘镜像文件)
Vdir=/XLH_Data/nova
VHD=$Vdir/instances
mkdir -p $VHD
chown -R nova:nova $Vdir

#使用QEMU或KVM ,KVM硬件加速需要硬件支持
[[ `egrep -c ‘(vmx|svm)‘ /proc/cpuinfo` = 0 ]] && { Kvm=qemu; } || { Kvm=kvm; }
echo "使用 $Kvm"

# #nova配置
cp /etc/nova/nova.conf{,.bak}
#egrep -v ‘^$|#‘ /etc/nova/nova.conf
echo ‘#
[DEFAULT]
instances_path=‘$VHD‘
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:[email protected]
my_ip = 10.2.1.21
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api_database]
connection = mysql+pymysql://nova:[email protected]/nova_api
[database]
connection = mysql+pymysql://nova:[email protected]/nova

[api]
auth_strategy = keystone
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova

[vnc]
enabled = true
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html
[glance]
api_servers = http://controller:9292
[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = placement

[libvirt]
virt_type = ‘$Kvm‘
#‘>/etc/nova/nova.conf

#启动
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service

#-----------------------------------------
时间: 2024-11-11 16:33:52

##5.2 Nova计算节点--openstack的相关文章

openstack云计算(二):Openstack rocky 部署三 nova计算节点部署

Openstack 云计算(二): Openstack Rocky部署三 nova 部署与验证 (计算节点) 标签(空格分隔): openstack系列 一:nova计算节点初始化 二:nova 计算节点配置 一: nova计算节点初始化 1.1 配置主机名 login: 10.0.0.31 cat /etc/hosts --- 10.0.0.11 controller 10.0.0.31 computer1 10.0.0.41 block1 10.0.0.51 object1 10.0.0.5

CentOS 7部署OpenStack(5)—部署Nova计算节点

安装基础环境 [[email protected] ~]# yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm [[email protected] ~]# yum install -y centos-release-openstack-liberty [[email protected] ~]# yum install -y python-openstackclie

七、OpenStack服务-Nova(计算节点)

本章目录 1.概述 2.安装配置计算节点 一.概述 计算节点上:https://docs.openstack.org/nova/rocky/install/compute-install.html nova-compute调用libvirtd来创建虚拟机 nova-compute的功能可以分为两类: 定时向OpenStack报告计算节点的状态 实现instance声明周期的管理 1.安装nova-compute [[email protected] ~]# yum install opensta

##6.2 Neutron计算节点--openstack

##6.2 Neutron计算节点 ##6.2 Neutron计算节点 #6.2.Neutron.compute.sh #安装 yum install -y openstack-neutron-linuxbridge ebtables ipset #配置 cp /etc/neutron/neutron.conf{,.bak} echo '# [DEFAULT] auth_strategy = keystone transport_url = rabbit://openstack:[email p

##5.1 Nova控制节点--openstack

##5.1 Nova控制节点 ##5.1 Nova控制节点 # controller 安装 #5.1.Nova-controller.sh #创建Nova数据库.用户.认证,前面已设置 source ./admin-openstack.sh || { echo "加载前面设置的admin-openstack.sh环境变量脚本";exit; } # keystone上服务注册 ,创建nova用户.服务.API # nova用户前面已建 openstack service create -

OpenStack-liberty版Nova计算节点部署服务部署(四)

Nova Compute:nova-compute 一般运行在计算节点上,通过Message Queue接收并管理VM的生命周期.Nova-compute通过Libvirt管理KVM,通过XenAPI管理Xen等. node2:修改主机名:注意:修改主机名,以后不能更改.[[email protected] ~]# hostname linux-node2.smoke.com [[email protected] ~]# vim /etc/hostname hostname linux-node

##1 Nova计算节点

###openstack-ocata 单节点安装 部署 目录汇总 一 安装nova服务 yum install openstack-nova-compute -y -------------------------------------------------------------------------------- 二 配置nova文件cp /etc/nova/nova.conf /etc/nova/nova.conf.bak> /etc/nova/nova.conf ##注意修改my_

##6.2 Neutron计算节点-- openstack pike

##6.2 Neutron计算节点 #6.2.Neutron.compute.sh #安装 yum install -y openstack-neutron-linuxbridge ebtables ipset #配置 cp /etc/neutron/neutron.conf{,.bak} echo '# [DEFAULT] auth_strategy = keystone transport_url = rabbit://openstack:[email protected] [keyston

openstack安装nova计算节点报错

Error: Package: 1:openstack-nova-compute-17.0.5-1.el7.noarch (centos-openstack-queens)Requires: qemu-kvm-rhev >= 2.9.0 [[email protected] yum.repos.d]# cat CentOS-QEMU-EV.repo[centos-qemu-ev]name=CentOS-$releasever - QEMU EVbaseurl=https://mirrors.al