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 O version configuration compute node nova and Neutron installation

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

Share

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

Configure nova.conf

[root@compute ~] # yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils ntpdate-y

[root@compute ~] # cp / etc/nova/nova.conf / etc/nova/nova.conf.bak

[root@compute ~] # > / etc/nova/nova.conf

[DEFAULT]

Auth_strategy = keystone

My_ip = 192.168.0.112

Use_neutron = True

Firewall_driver = nova.virt.firewall.NoopFirewallDriver

Transport_url = rabbit://openstack:devops@controller

[keystone_authtoken]

Auth_uri = http://controller:5000

Auth_url = http://controller:35357

Memcached_servers = controller:11211

Auth_type = password

Project_domain_name = default

User_domain_name = default

Project_name = service

Username = nova

Password = devops

[placement]

Auth_uri = http://controller:5000

Auth_url = http://controller:35357

Memcached_servers = controller:11211

Auth_type = password

Project_domain_name = default

User_domain_name = default

Project_name = service

Username = placement

Password = devops

Os_region_name = RegionOne

[vnc]

Enabled = True

Keymap = en-us

Vncserver_listen = 0.0.0.0

Vncserver_proxyclient_address = 192.168.0.112

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

[glance]

Api_servers = http://controller:9292

[oslo_concurrency]

Lock_path = / var/lib/nova/tmp

[libvirt]

Virt_type = qemu setup libvirtd.service and openstack-nova-compute.service boot

[root@compute ~] # systemctl enable libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl restart libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl status libvirtd.service openstack-nova-compute.service to perform verification on controller

[root@controller ~] # source admin-openrc

[root@controller ~] # openstack compute service list

Install Neutron and install related software packages

[root@compute ~] # yum install openstack-neutron-linuxbridge ebtables ipset-y

[root@compute ~] # cp / etc/neutron/neutron.conf / etc/neutron/neutron.conf.bak

[root@compute ~] # > / etc/neutron/neutron.conf

[DEFAULT]

Auth_strategy = keystone

Advertise_mtu = True

Dhcp_agents_per_network = 2

Control_exchange = neutron

Nova_url = http://controller:8774/v2

Transport_url = rabbit://openstack:devops@controller

[keystone_authtoken]

Auth_uri = http://controller:5000

Auth_url = http://controller:35357

Memcached_servers = controller:11211

Auth_type = password

Project_domain_name = default

User_domain_name = default

Project_name = service

Username = neutron

Password = devops

[oslo_concurrency]

Lock_path = / var/lib/neutron/tmp configuration / etc/neutron/plugins/ml2/linuxbridge_agent.ini

[root@compute ~] # cat / etc/neutron/plugins/ml2/linuxbridge_agent.ini | grep-v "^ #" | grep-v "^ $"

[DEFAULT]

[agent]

[linux_bridge]

Physical_interface_mappings = provider:ens33

[securitygroup]

Enable_security_group = True

Firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]

Enable_vxlan = True

Local_ip = 192.168.0.112

L2_population = True configuration nova.conf

[neutron]

Url = http://controller:9696

Auth_url = http://controller:35357

Auth_type = password

Project_domain_name = default

User_domain_name = default

Region_name = RegionOne

Project_name = service

Username = nova

Password = devops restart and enable related services

[root@compute ~] # systemctl restart libvirtd.service openstack-nova-compute.service

[root@compute ~] # systemctl enable neutron-linuxbridge-agent.service

[root@compute ~] # systemctl restart neutron-linuxbridge-agent.service

[root@compute ~] # systemctl status libvirtd.service openstack-nova-compute.service neutron-linuxbridge-agent.service

III. Perform validation on controler

[root@controller ~] # source admin-openrc

[root@controller ~] # neutron agent-list

[root@controller ~] # nova host-list

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: 243

*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