Chapter 2-Openstack Environment Preparation

1. Preparation of the underlying hardware environment
If you have two physical servers, you can directly ignore this step.
The environment I used this time is to virtualize a win7 on esxi, deploy vmare in win7, and deploy two servers in vmare, which involves multiple virtualization, so I need to turn on CPU virtualization.
1.1 Turn on virtualization on esxi.
I will not take screenshots one by one in the previous creation steps. You need to check this option when creating hardware virtualization.
Chapter 2-Openstack Environment Preparation
1.2 When enabling virtualization
in Vmare, please check it when you create it. Note that these must be checked when creating a virtual machine. If you have already created it, you cannot select it.
Chapter 2-Openstack Environment Preparation

1.3 Modify IP and host [Operation of both control and computing nodes]
After creating two virtual machines, the system can be selected by the user. It can be centos or ubuntu. I use centos7. Modify it after creation IP, DNS, host name, hosts file, to ensure Internet access, and name resolution, as follows:
edit the network card, eno16777736 is my network card name, you can write
vim /etc/sysconfig/network-scripts/ifcfg according to the actual situation -eno16777736 The
main amendments are as follows, and the others remain unchanged:

TYPE=Ethernet
BOOTPROTO=static #静态地址
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=556a443e-7439-4971-97d1-3e472bbd19ce
DEVICE=eno16777736
ONBOOT=yes  #开机启动
IPADDR=192.168.244.131  #主机IP地址
NETMASK=255.255.255.0  #主机掩码
GATEWAY=192.168.244.2  #网关地址
DNS1=114.114.114.114    #DNS地址

Restart the network: systemctl restart network to
check whether the address is correct, and whether it can be
viewed from the public network IP a, ping www.baidu.com to
Chapter 2-Openstack Environment Preparation
modify the host name and hosts file,
vim /etc/hostname
fill in your own name, such as controller
vim / etc/hosts, edit the hosts file and test, just follow this operation on the other one, pay attention to the name and address
192.168.244.131 controller
192.168.244.132 compute

Chapter 2-Openstack Environment Preparation
1.4 Modify the system time zone and
enter timedatectl. If you see that the Time zone is not Asia/Shanghai, change it to Shanghai,
pay attention to Asia/Shanghai, this case, the initial letter must be capitalized, or an error will be reported afterwards, and I keep reporting the time zone error .

Chapter 2-Openstack Environment Preparation

timedatectl set-local-rtc 1 Adjust the hardware clock to be consistent with the local clock, 0 is set to UTC time.
timedatectl set-timezone Asia/Shanghai Set the system time zone to Shanghai and
use date to view the time.

The rest of the preparation work can refer to the document, in the next article

Guess you like

Origin blog.51cto.com/11125450/2546700