##5.2 Nova計算節點--openstack
阿新 • • 發佈:2017-09-30
重啟 rate proc 鏡像 server 加速 lac mysq key
##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