Openstack-newton手动安装配置 下载本文

In the [glance] section, configure the location of the Image service API:

[glance] ... api_servers = http://controller:9292 In the [oslo_concurrency] section, configure the lock path:

[oslo_concurrency] ... lock_path = /var/lib/nova/tmp Finalize installation

1. Determine whether your compute node supports hardware acceleration for virtual

machines:

egrep -c '(vmx|svm)' /proc/cpuinfo If this command returns a value of one or greater, your compute node supports hardware acceleration which typically requires no additional configuration.

If this command returns a value of zero, your compute node does not support hardware acceleration and you must configure libvirt to use QEMU instead of KVM.

输出值大于2 libvirt配置成KVM

Edit the [libvirt] section in the /etc/nova/nova.conf file as follows:

[libvirt] ... virt_type = kvm

2. Start the Compute service including its dependencies and configure them to start

automatically when the system boots:

systemctlenablelibvirtd.serviceopenstack-nova-compute.service systemctl start libvirtd.serviceopenstack-nova-compute.service

3. List service components to verify successful launch and registration of each process: openstack compute service list

Networking service

Prerequisites

1. To create the database, complete these steps:

Use the database access client to connect to the database server as the root user:

mysql -u root -p Create the neutron database:

mysql> CREATE DATABASE neutron; Grant proper access to the neutron database, replacing NEUTRON_DBPASS with a suitable password:

mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \\ IDENTIFIED BY 'NEUTRON_DBPASS'; mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \\ IDENTIFIED BY 'NEUTRON_DBPASS';

2. To create the service credentials, complete these steps:

Create the neutron user:

openstack user create --domain default --password-prompt neutron 密码:neutron Add the admin role to the neutron user:

openstack role add --project service --user neutron admin Create the neutron service entity:

$openstack service create --name neutron \\ --description \ 3. Create the Networking service API endpoints:

openstack endpoint create --region RegionOne\\ network public http://controller:9696

openstack endpoint create --region RegionOne\\ network internal http://controller:9696 openstack endpoint create --region RegionOne\\ network admin http://controller:9696