Compute node Run virtual machine
[[email protected] ~]# yum install openstack-nova.noarch openstack-nova-api.noarch openstack-nova-conductor.noarch openstack-nova-novncproxy.noarch openstack-nova-scheduler.noarch openstack-nova-console.noarch # #控制节点 [[Email protected] ~]# yum install openstack-nova-compute.noarch # #计算节点keystone user-create --name nova --pass hequankeystone user-role-add --user nova --role admin --tenant serviceskeystone service-create --name nova --type compute --description nova| 7708b5c40aec4cf3b59d6d84596a5f6b | nova | compute | openstack compute service | | 017bdbf9f335436cbd7f65fe74089b28 | nova_ec2 | ec2 | ec2 service | | 4f7b60427d304fd89658f4f8c23dd708 | novav3 | computev3 | openstack compute service v3 |+---------------------- ------------+-----------+-------------------------------------------------+------------------------------------ -------------+--------------------------------------------+----------------------------------+| id | region | publicurl | internalurl | adminurl | service_id |+----------------------------------+-----------+------------------------------------- ------------+-------------------------------------------------+--------------------------------------------+-------------------------------- --+| 0bda7145ebc944a99112c53e97362fa1 | regionone | http:// 115.29.107.17:8774/v2/% (tenant_id) s | http://115.29.107.17:8774/v2/% ( tenant_id) s | http://115.29.107.17:8774/v2/% (tenant_id) s | 7708b5c40aec4cf3b59d6d84596a5f6b | | 731be711c3be4497b57c8751ce111986 | regionone | http:// 115.29.107.17:8773/services/cloud | http:// 115.29.107.17:8773/services/cloud | http://115.29.107.17:8773/services/admin | 017bdbf9f335436cbd7f65fe74089b28 | | 7ec9cb12959f4bedb7e0757c79b636fd | RegionOne | http://127.0.0.1:8774/v3 | http://127.0.0.1:8774/v3 | http://127.0.0.1:8774/v3 | 4f7b60427d304fd89658f4f8c23dd708 | keystone endpoint-create --service-id --publicul ' -- internalurl ' --adminurl ' openstack-db --init --service nova --password hequan --root 123456[[email protected] ~]# ls -ld /var/log/ Nova/drwxr-x--- 2 nova root 4096 7 month 23 00:08 /var/log/nova/[[ email protected] ~]# chown nova.nova /var/log/nova/ -r[[email Protected] nova (KeystoNe_admin)]# mv nova.conf nova.conf.bak[[email protected] nova (keystone_admin)]# systemctl list-unit-files | grep novaopenstack-nova-api.service enabledopenstack-nova-cert.service enabledopenstack-nova-compute.service enabledopenstack-nova-conductor.service enabledopenstack-nova-console.service disabledopenstack-nova-consoleauth.service enabledopenstack-nova-metadata-api.service disabledopenstack-nova-novncproxy.service enabledopenstack-nova-scheduler.service enabledopenstack-nova-xvpvncproxy.service disabledvncserver_proxyclient_address=115.29.107.17 # #改成本机的IP
Vim nova.conf
[default]internal_service_availability_zone=internaldefault_availability_zone=novanovncproxy_host= 0.0.0.0NOVNCPROXY_PORT=6080NOTIFY_API_FAULTS=FALSESTATE_PATH=/VAR/LIB/NOVAREPORT_INTERVAL=10ENABLED_APIS=EC2, Osapi_compute,metadataec2_listen=0.0.0.0ec2_listen_port=8773ec2_workers=1osapi_compute_listen=0.0.0.0osapi_ Compute_listen_port=8774osapi_compute_workers=1metadata_listen=0.0.0.0metadata_listen_port=8775metadata_ workers=1compute_manager=nova.compute.manager.computemanagerservice_down_time=60rootwrap_config=/etc/nova/ Rootwrap.confvolume_api_class=nova.volume.cinder.apiauth_strategy=keystoneuse_forwarded_for=falseheal_instance _info_cache_interval=60reserved_host_memory_mb=512cpu_allocation_ratio=16.0ram_allocation_ratio=1.5network_api _class=nova.network.neutronv2.api.apidefault_floating_pool=publicforce_snat_range =0.0.0.0/0metadata_host =115.29.107.17dhcp_domain=novalocalsecurity_group_api=neutronscheduler_default_filters=retryfilter, Availabilityzonefilter,ramfilter,computefilter,Computecapabilitiesfilter,imagepropertiesfilter,corefilterscheduler_driver=nova.scheduler.filter_scheduler. Filterschedulercompute_driver=libvirt. libvirtdrivervif_plugging_is_fatal=true ## Modify false If there is an error Instance execution request failed vif_plugging_timeout=300 ## modified to 0firewall_driver= Nova.virt.firewall.noopfirewalldriverforce_raw_images=truedebug=falseverbose=truelog_dir=/var/log/novause_ Syslog=falsesyslog_log_facility=log_useruse_stderr=truenotification_topics=notificationsrpc_backend=rabbitamqp _durable_queues=falsesql_connection=mysql://nova:[email protected]/novaimage_service= Nova.image.glance.glanceimageservicelock_path=/var/lib/nova/tmposapi_volume_listen=0.0.0.0vncserver_ proxyclient_address=115.29.107.17 # #修改本机地址vnc_keymap =en-usvnc_enabled=truevncserver_listen= 0.0.0.0novncproxy_base_url=http://115.29.107.17:6080/vnc_auto.html[api_database][barbican][cells][cinder] Catalog_info=volumev2:cinderv2:publicurl[conductor][cors][cors.subdomain][database][ephemeral_storage_encryption][glance]api_servers= 115.29.107.17:9292[guestfs][hyperv][image_file_url][ironic][keymgr][keystone_authtoken]auth_uri=http:// 115.29.107.17:5000/v2.0identity_uri=http://115.29.107.17:35357admin_user=novaadmin_password=hequanadmin_tenant _name=services[libvirt]virt_type=qemuinject_password=falseinject_key=falseinject_partition=-1live_migration_ Uri=qemu+tcp://[email protected]%s/systemcpu_mode=nonevif_driver= Nova.virt.libvirt.vif.libvirtgenericvifdriver[matchmaker_redis][matchmaker_ring][metrics][neutron]service_ Metadata_proxy=truemetadata_proxy_shared_secret =hequanurl=http://115.29.107.17:9696admin_username= neutronadmin_password=hequanadmin_tenant_name=servicesregion_name=regiononeadmin_auth_url=http:// 115.29.107.17:5000/v2.0auth_strategy=keystoneovs_bridge=br-intextension_sync_interval=600timeout=30default_ Tenant_id=default[osapi_v21][oslo_concurrency][oslo_messaging_amqp][oslo_messaging_qpid][oslo_messaging_rabbit]kombu_reconnect_delay=1.0rabbit_host=115.29.107.17rabbit_port=5672rabbit_hosts= 115.29.107.17:5672rabbit_use_ssl=falserabbit_userid=guestrabbit_password=guestrabbit_virtual_host=/rabbit_ha_ queues=falseheartbeat_timeout_threshold=0heartbeat_rate=2[oslo_middleware][rdp][serial_console][spice][ssl][ Trusted_computing][upgrade_levels][vmware][vnc][workarounds][xenserver][zookeeper][osapi_v3]enabled=false
[[Email protected] ~]# nova-manage service list[[email protected] ~ ( Keystone_admin)]# nova host-list+---------------+-------------+----------+| host_name | service | zone |+---------------+-------------+----------+| hequan.lol | consoleauth | internal | | hequan.lol | scheduler | internal | | hequan.lol | conductor | internal | | hequan.lol | compute | nova | | hequan.lol | cert | internal | [[Email protected] ~]# systemctl is-active libvirtd.serviceactive
This article is from the "what-all" blog, please be sure to keep this source http://hequan.blog.51cto.com/5701886/1832697
OpenStack Learning Note 11 Nova