$ sudo apt-get install nova-novncproxy novnc nova-api nova-ajax-console-proxy nova-cert nova-conductor nova-consoleauth nova-doc nova-scheduler python-novaclient
$ sudo nano /etc/nova/nova.conf
[database]
connection = mysql://nova:openstack@controller/nova
*openstack > nova database password
$ sudo nano /etc/nova/nova.conf
rpc_backend = nova.rpc.impl_kombu
rabbit_host = controller
rabbit_password = openstack
$ sudo rm -f /var/lib/nova/nova.sqlite
$ mysql -u root -p
mysql> CREATE DATABASE nova;
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY openstack;
mysql> GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY openstack;
$ sudo nova-manage db sync
$ sudo nano /etc/nova/nova.conf
...
[DEFAULT]
...
my_ip=192.168.0.10
vncserver_listen=192.168.0.10
vncserver_proxyclient_address=192.168.0.10
*replace 192.168.0.10 with your controller ip
$ keystone user-create --name=nova --pass=openstack --email=nova@example.
com
$ keystone user-role-add --user=nova --tenant=service --role=admin
$ sudo nano /etc/nova/nova.conf
[DEFAULT]
...
auth_strategy=keystone
[keystone_authtoken]
...
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = openstack
$ sudo nano /etc/nova/api-paste.ini
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host = controller
auth_port = 35357
auth_protocol = http
auth_uri = http://controller:5000/v2.0
admin_tenant_name = service
admin_user = nova
admin_password = openstack
*Ensure that the api_paste_config=/etc/nova/api-paste.ini
option is set in the /etc/nova/nova.conf file.
$ keystone service-create --name=nova --type=compute --description="Nova Compute service"
$ keystone endpoint-create --service-id=the_service_id_above --publicurl=http://controller:8774/v2/%\(tenant_id\)s --internalurl=http://controller:8774/v2/%\(tenant_id\)s --adminurl=http://controller:8774/v2/%\(tenant_id\)s
$ sudo service nova-api restart
$ service nova-cert restart
$ service nova-consoleauth restart
$ service nova-scheduler restart
$ service nova-conductor restart
$ service nova-novncproxy restart
$ nova image-list
0 comments:
Post a Comment