##5.2 Nova计算节点--openstack
Posted Elvin笔记分享
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了##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 #-----------------------------------------
以上是关于##5.2 Nova计算节点--openstack的主要内容,如果未能解决你的问题,请参考以下文章