In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to build an Openstack environment with Vmware+Centos7". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to build an Openstack environment with Vmware+Centos7".
I. Virtual machine configuration
According to the official tutorial of openstack, the most important thing in the environment of the node is the configuration of the network. First, set it in the virtual machine and select the virtual network editor in editing.
According to the configuration requirements given by the government
Mainly configure two network card interfaces
Interface1 Gateway 10.0.0.1 nat mode
Interface2
Select the vmnet8,nat settings in the virtual network editor as follows
The gateway did not choose 10.0.0.2, because the previous check found that in the virtual machine, the address of 10.0.0.1 is used by the current host, so the gateway should be written as 10.0.0.2.
The subnet and mask settings are as follows:
After that, create a network interface2 with the following settings:
At this point, the virtual network is configured. When you create a virtual machine, you only need to add these two virtual networks to the network adapter in advance.
II. Centos network configuration
1. Control node
The control node has two network card interfaces. According to our configuration method, one should be ens33 and the other is ens34. If you are not sure which interface is which file, you can enter the following code to view it.
~ # ip a
Here, you can see that a total of three are listed, of which lo is the local loopback interface, that is, the address 127.0.0.1, which can be easily distinguished. The address under ens33 is our vmnet8, that is, the interface of the nat network, and ens34 is the interface2 interface that connects to network.
Configure ens33
Enter the configuration file
~ # vi / etc/sysconfig/network-scripts/ifcfg-ens33
Make the following settings:
Add:
Ipaddr=10.0.0.11 prefix=24 gateway=10.0.0.2 dns1=10.0.0.2
Change the value of bootproto to none
Change the value of onboot to yes
Exit Editing
Restart network services
~ # systemctl restart network.service
Or
~ # service network.service restart
Configure Hostnam
The hostname of the control node is controller, and the settings are as follows:
~ # hostnamectl set-hostname controller
Verify the hostname:
~ # hostname
You can see the output as controller.
Configure hosts parsing file
Hosts needs to be configured to resolve the corresponding ip address by hostname
~ # cat > / etc/hosts 10.0.0.11 controller > 10.0.0.31 compute1 > 10.0.0.41 block1 > 10.0.0.51 object1 > 10.0.0.52 object2 > eof
It's done.
2. Other nodes
The configuration method of other nodes is similar to that of the control node, but the ip address should be changed to the ip address of the corresponding node, and the hosts file will not be changed.
3. Connectivity verification
Network connectivity
~ # ping-c 4 www.baidu.com
Node connectivity
~ # ping-c 4 compute1
If you can ping, the network configuration will be complete.
4. Firewall is off
Some of the following ntr and networking services may have problems with the firewall, so it is recommended to turn off the firewall
~ # systemctl stop firewalld.service here, I believe you have a deeper understanding of "how to build an Openstack environment in Vmware+Centos7". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.