Build vSphere + nfs cluster (two)

Part II: Installation and Configuration ESXi host

Note: The contents of this article is written purely experimental testing purposes, it does not involve any commercial purposes.

Install ESXi host

Create a virtual machine in VMware-workstation in

Custom (Advanced) Configuration

Hardware compatibility is selected from → mware-workstation 15.x

→ install the operating system later

→ operating system select the third VMWare ESX, VMWare ESXi6.x version of choice

→ Virtual Machine Name: esxi1, such as the location: E: \ vSphere_cluster \ esxi1

→ number of processors: 2, the number of cores per processor: 2

→ Virtual Machine Memory: 4096M

→ Network: the first network type is selected a card, select the first item, bridge mode

→ IO Controller Type: Default paravirtualization

→ disk type: SCSI

→ select a disk, select the first, creating a new disk

→ Disk Size: Default 40G, select the "stored in a single file." This disk is only used to install ESXi operating system, after running above the virtual machine is stored in shared memory or vSAN in nfs.

→ Disk name: esxi1.vmdk

→ Next, Finish.

Adjustment of the configuration of the virtual machine:

1, view the processor virtualization engine is turned on, confirm the front of the box is on the hook

2, optical drives, inserted ESXi host operating system installation iso, where the installation of version 6.7 update 3, Download

http://dl1.technet24.ir/Downloads/Software/VMware/vCenter/67u3/VMware-VMvisor-Installer-6.7.0.update03-14320388.x86_64.iso

3, remove the sound card and printer

Click OK to finish creating the virtual machine.

Open the virtual machine, install ESXi system, specific installation process involves only choose to install the disk, set the root password, not repeat them here.

ESXi host configuration

First, a network configuration management

After installing the ESXi system and restart, the following interface will appear (IP 0.0.0.0 is here because there is no LAN dhcp server):

Press F2, root user password provided during installation, configuration interface

After entering the third choice

Configure their network management

回车,选IPv4 Configuration

按照上一节的表格,将其ipv4测地址设置成10.8.20.251,子网掩码和默认网关也根据情况设置好

设置好后按回车保存

IPv6设置成disable

DNS和主机名设置

按需要进行其他配置,按ESC退出,系统要求重启,按Y重启、

重启好之后,主界面会显示其管理的IP地址:

按F2,输入root的密码再次进入,为了管理方便,需要打开其ssh远程登录

选择诊断选项

选择第二项Enable SSH,右边提示 SSH is Enabled即可

打开主机上的浏览器(建议使用Google浏览器,不要用IE),打开以下网址

https://10.8.20.251,会提示“您的连接不是私密连接”,按高级,继续浏览此网址

如果能出现以下界面,则表示管理网络配置成功

至此,ESXi的主机的初始化配置完成

二、登录ESXi的主机管理平台,查看主机的相关配置

在上一个界面中输入root用户和密码,登录ESXi主机管理平台

可以查看其他配置,以后我们使用vcsa(vCenter)管理esxi主机,很少使用这个界面的。

三、配置第二块网卡

现在只有vmnic0这第一块网卡

下面为其增加2块网卡

先关闭esxi1这台主机,然后在VMware-workstation中为其增加1块网卡

设置网卡属性,网络连接到VMNet1

再增加一块网卡,网络链接到VMNet2

启动esxi1这台ESXi主机,然后登录管理平台,可以看到新增的2块网卡

现在先为vmnic1这块网卡做配置,以后作为存储网络

1、先添加一个标准虚拟交换机,名称为vSwitch1,上行链路选择vmnic1,其余选项默认。

2、增加vmkernel网卡

新建端口组:Storage Network(下图中为存储网络,下文以英文的 Storage Network 为准)

虚拟交换机选择vSwitch1

设置其ipv4地址为192.168.10.251 子网掩码 255.255.255.0

其他不需要配置,如下图所示

在物理主机上ping下,能ping通说明这块网卡配置成功。

还有一块网卡现在先不配置,后面使用vCenter的分布式交换机进行配置。

四、升级系统

升级系统不是必须的,具体升级方式参看这里的另外一篇博文。

至此,第一台主机就安装和配置好了。

用以上的方法创建、安装和配置第二台虚拟机esxi2和第三台虚拟机esxi3,并添加好3块网卡,设置好ip。

千万不要使用克隆的方式进行,否则将无法添加到vCenter中,会提示存储冲突。

欢迎访问我的技术博客:秋天里的回忆


Guess you like

Origin blog.51cto.com/11694088/2455564