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 = Rabbitrabbit_host = Controllerrabbit_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. Create databases Mysql-u root-pcreate database Nova; GRANT all privileges on nova.* to ' nova ' @ ' localhost ' identified by ' nova_dbpass '; GRANT all privileges the nova.* to ' Nova ' @ ' percent ' identified by ' nova_dbpass '; 5. Sudo-s/bin/sh-c "Nova-manage db Sync" Nova 6. Create user 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:5000auth_host = Controllerauth_port = 35357auth_protocol = Httpadmin_tenant_name = Serviceadmin_user = Novaadmin_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 $} ') \--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. Restart Services sudo service nova-api restartsudo service Nova-cert restartsudo service Nova-consoleauth Restartsudo service Nova-sch Eduler Restartsudo service nova-conductor restartsudo 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 = Rabbitrabbit_host = Controllerrabbit_ Password = RABBIT_PASS...MY_IP = 10.0.0.31 (Compute Node IP) vnc_enabled = Truevncserver_listen = 0.0.0.0vncserver_proxycl ient_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 DatabaseConnection = Mysql://nova:[email pr Otected]/nova [Keystone_authtoken]auth_uri = Http://controller:5000auth_host = Controllerauth_port = 35357auth_ protocol = Httpadmin_tenant_name = Serviceadmin_user = Novaadmin_password = Nova_pass 3. Detects if the server supports virtualization Egrep-c ' (VMX|SVM) '/proc/cpuinfo If the result is nonzero, proceed to the next step; if zero, the Virt_type in/etc/nova/nova-compute.conf should be set to QEMU 4. sudo rm/var/lib/nova/nova.sqlite 5. sudo service nova-compute restart
6. Configure Compute Services