1. Nova 설치
root@nw1 ~(keystone)# apt -y install nova-api nova-conductor nova-scheduler nova-novncproxy placement-api python3-novaclient
2. Nova 설정
root@nw1 ~(keystone)# mv /etc/nova/nova.conf /etc/nova/nova.conf.org
root@nw1 ~(keystone)# vi /etc/nova/nova.conf
# create new [DEFAULT] # define IP address my_ip = 192.168.105.191 state_path = /var/lib/nova enabled_apis = osapi_compute,metadata log_dir = /var/log/nova # RabbitMQ connection info transport_url = rabbit://openstack:RabbitMQ패스워드@192.168.105.191 [api] auth_strategy = keystone # Glance connection info [glance] api_servers = http://192.168.105.191:9292 [oslo_concurrency] lock_path = $state_path/tmp # MariaDB connection info [api_database] connection = mysql+pymysql://nova:NovaDB패스워드@192.168.105.191/nova_api [database] connection = mysql+pymysql://nova:NovaDB패스워드@192.168.105.191/nova # Keystone auth info [keystone_authtoken] www_authenticate_uri = http://192.168.105.191:5000 auth_url = http://192.168.105.191:5000 memcached_servers = 192.168.105.191:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = Nova패스워드 [placement] auth_url = http://192.168.105.191:5000 os_region_name = RegionOne auth_type = password project_domain_name = default user_domain_name = default project_name = service username = placement password = Placement패스워드 [wsgi] api_paste_config = /etc/nova/api-paste.ini |
root@nw1 ~(keystone)# chmod 640 /etc/placement/placement.conf
root@nw1 ~(keystone)# chgrp placement /etc/placement/placement.conf
root@nw1 ~(keystone)# su -s /bin/bash placement -c "placement-manage db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage api_db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage cell_v2 map_cell0"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage db sync"
root@nw1 ~(keystone)# su -s /bin/bash nova -c "nova-manage cell_v2 create_cell --name cell1"
--transport-url not provided in the command line, using the value [DEFAULT]/transport_url from the configuration file
--database_connection not provided in the command line, using the value [database]/connection from the configuration file
root@nw1 ~(keystone)# systemctl restart apache2
root@nw1 ~(keystone)# for service in api conductor scheduler; do
> systemctl restart nova-$service
> done
root@nw1 ~(keystone)# openstack compute service list
참고 사이트
https://www.server-world.info/en/note?os=Ubuntu_20.04&p=openstack_xena&f=8
'IT > 그 외 IT' 카테고리의 다른 글
[OpenStack] 5. nava 구성(3) (0) | 2022.06.05 |
---|---|
[OpenStack] Nova state down 으로 인한 password 삭제 및 cell 재등록 (2) | 2022.06.04 |
[OpenStack] 5. Nova 구성(1) (0) | 2022.06.02 |
[OpenStack] 4. VM image 설치 (0) | 2022.06.01 |
[OpenStack] 3. Glance 설정 (0) | 2022.05.31 |
댓글