> **宿主机要开启硬件辅助虚拟化,VMware vsphere必须依赖宿主机开启硬件辅助虚拟化功能,即必须在宿主机的BIOS设置中开启Inter vt-x。而且vmware esxi虚拟机也要开启虚拟化** # 0、安装一个windows **在esxi中安装一个windows server2019版本的虚拟机** * 内存要大于等于32G * 硬盘大于等于120G 安装过程不再赘述,安装完成之后挂载vsphere的iso文件 ![image-20230406101237995](assets/image-20230406101237995.png) # 1、安装第一步 1. 打开安装文件 ![image-20230406101323094](assets/image-20230406101323094.png) 2. 选择安装 ![image-20230406101411362](assets/image-20230406101411362.png) 3. 下一步,输入esxi的域名,用户名和密码 ![image-20230406101503155](assets/image-20230406101503155.png) 4. 设置名称 ---- 名称最好不要有空格 ![image-20230406101546665](assets/image-20230406101546665.png) 5. 按照实际需求选择 ![image-20230406101617906](assets/image-20230406101617906.png) 6. 注意勾选 ![image-20230406101636874](assets/image-20230406101636874.png) 7. 填写网络配置 ![image-20230406101727315](assets/image-20230406101727315.png) * 网络选择VM Network,不要选择和esxi主机同一个网络 * FQDN域名最好按照我的填写 * DNS服务器必须填写8.8.8.8 8. 静静等待第一步安装完成 ![image-20230406101920635](assets/image-20230406101920635.png) # 2、第二步安装 1. 此时打开浏览器中,在地址栏中输入https://10.234.234.90:5480 ,会显示系统配置界面,单击“设置”,提示输入root密码登录,输入即可。 ![image-20230406102055380](assets/image-20230406102055380-16807476558291.png) 2. 设置网络 ![image-20230406102309810](assets/image-20230406102309810.png) 3. 耐心等待一段时间后,先不要配置SSO域,使用xshell连接服务器,配置hosts,配置必须和下图一直,分别为FQNQ,主机名,localhost ![image-20230406102441198](assets/image-20230406102441198.png) 4. 输入SSO域名及密码。 ![image-20230406102530005](assets/image-20230406102530005-16807479305482.png) 5. 等vCenter Server系统启动完成之后,配置完成。 ![image-20230406102552675](assets/image-20230406102552675.png) # 3、配置vsphere 1. 进入主界面 ![image-20230406102638133](assets/image-20230406102638133.png) 2. 分配许可证 ![image-20230406102703588](assets/image-20230406102703588.png) ![image-20230406102753782](assets/image-20230406102753782.png) ![image-20230406102838021](assets/image-20230406102838021.png) ![image-20230406102851012](assets/image-20230406102851012-16807481316263.png) 2. 配置vCenter Server,将ESXi主机加入到vCenter中,创建名为“Datacenter”的数据中心。 ![image-20230406103058002](assets/image-20230406103058002.png) 3. 创建名为“cluster”的集群,将vSphere DRS功能开启。注意HA功能只有在存在多个esxi主机的时候才可以开启,这里关闭即可。 ![image-20230406110807099](assets/image-20230406110807099.png) 4. 点击步骤2的“添加主机”,将ESXi主机添加到集群。 ![image-20230406103223763](assets/image-20230406103223763.png) 5. 配置集群,点击步骤3的“配置”。 ![image-20230406103326115](assets/image-20230406103326115.png) 6. 检查,确认信息无误后,点击“完成”。 ![image-20230406110914300](assets/image-20230406110914300.png) ![image-20230406103420977](assets/image-20230406103420977.png)