Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

OpenStack Train version dual-node installation (7) install computing service nova (compute node)

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Part VII installation of Computing Services nova (Compute Node)

Do the following on the compute node (C1) to install the compute service nova (compute node)

Turn on the vmware-workstation virtual machine of the compute node (C1) (not enabled since the last backup, o (∩ _ ∩) o)

After booting up, connect it with xshell

Check its hostname, network configuration, communication with the control node, etc., and make sure that the hostname ping can be used to communicate with the control node.

Hostnamctl

Ifconfig

Ping ct

Install the package

Yum install openstack-nova-compute-y

Because you want to install the KVM virtualization package, there are more packages installed, so please be patient. If prompted that there is no package, install the openstack source first (refer to the installation of basic services in part 1 of this series)

Modify the nova configuration file of a compute node

Cp / etc/nova/nova.conf / etc/nova/nova.conf.bak

Grep-Ev'^ $| #'/ etc/nova/nova.conf.bak > / etc/nova/nova.conf

Vim / etc/nova/nova.conf

Add: in [DEFAULT]:

[DEFAULT]

Enabled_apis = osapi_compute,metadata

Transport_url = rabbit://openstack:RABBIT_PASS@ct

My_ip = 192.168.10.42

Use_neutron = true

Firewall_driver = nova.virt.firewall.NoopFirewallDriver

Add keystone authentication to [api] and [keystone_authtoken]:

[api]

Auth_strategy = keystone

[keystone_authtoken]

Www_authenticate_uri = http://ct:5000/

Auth_url = http://ct:5000/

Memcached_servers = ct:11211

Auth_type = password

Project_domain_name = Default

User_domain_name = Default

Project_name = service

Username = nova

Password = NOVA_PASS

Add: in [vnc]:

[vnc]

Enabled = true

Server_listen = 0.0.0.0

Server_proxyclient_address = $my_ip

Novncproxy_base_url = http://192.168.10.41:6080/vnc_auto.html

In the [glance] section, add:

[glance]

Api_servers = http://ct:9292

In the [oslo_concurrency] section, add:

[oslo_concurrency]

Lock_path = / var/lib/nova/tmp

In the [placement] section, add:

[placement]

Region_name = RegionOne

Project_domain_name = Default

Project_name = service

Auth_type = password

User_domain_name = Default

Auth_url = http://ct:5000/v3

Username = placement

Password = PLACEMENT_PASS

Ps: the modification is similar to that of the control node, so we will not take a screenshot here.

Determine whether the compute node supports virtual machine hardware acceleration

Egrep-c'(vmx | svm)'/ proc/cpuinfo

If the return value of this command is not 0, the compute node supports hardware acceleration and does not need to be added to the following configuration.

If the return value of this command is 0, the compute node does not support hardware acceleration, and libvirt must be configured to use QEMU instead of KVM, and the [libvirt] section of the / etc/nova/nova.conf file needs to be edited:

[libvirt]

Virt_type = qemu

As shown in the figure above, there is no need to configure libvirt section

Start the Compute service and its related services and configure them to start automatically when the system starts

Systemctl enable libvirtd.service openstack-nova-compute.service

Systemctl start libvirtd.service openstack-nova-compute.service

Determine if the service is running

Ps-ef | grep nova

Ps-ef | grep libvirtd

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report