ESXI7 安装教程

ESXI7 安装教程

做个简图方便了解vmware,esxi,docker的区别

https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-5.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

上图可以看出vmware和docker都可以理解为在已安装(win/linux/mac)的系统之上安装了一个应用管理app。

而esxi可以理解为在硬件上直接安装的管理系统。

无论是安装ESXi 7.0,还是vCenter Server Appliance,与vSphere 6.7都非常相似或者说相同,用安装vSphere 6.7的方法安装7.0就行。无论是在Workstation的虚拟机安装ESXi,还是使用物理机安装ESXi,都很容易。但ESXi已经放弃了对一些网卡的支持,如果以前在ESXi 6.0、6.5、6.7中能正常使用的网卡,在7.0中可能已经不再受到支持。

附测试秘钥:

  • VMware vCenter 7.0 Standard
    104HH-D4343-07879-MV08K-2D2H2
    410NA-DW28H-H74K1-ZK882-948L4
    406DK-FWHEH-075K8-XAC06-0JH08
  • VMware vSphere ESXi 7.0 Enterprise Plus
    JJ2WR-25L9P-H71A8-6J20P-C0K3F
    HN2X0-0DH5M-M78Q1-780HH-CN214
    JH09A-2YL84-M7EC8-FL0K2-3N2J2

安装没什么难度,注意看系统提示就OK.

注:默认ESXI有密码复杂度,大小写+数字,文章底部有修改密码复杂度

挂载ISO,开始安装

https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-6.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-7.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-8.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-9.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-10.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-11.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-12.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-13.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-14.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-15.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-18.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-22.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-23.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-24.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-25.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

打开浏览器访问配置的IP

https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-19.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

秘钥

https://qnimg.ffing.cn/wp-content/uploads/2021/09/image-20.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

OK,折腾吧。

———————————————————————————————————————————

其他

关闭密码复杂度:需要修改pam认证配置

第一步,打开ssh

esxi安装后,就可以打开(第一种方法)

https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-9.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

web页面也可以打开(第二种方法,根据自己情况,自行选择)

在服务列表中向下滑动,找到ssh,右键“启动”

https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-8.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

第二步,ssh登录

编辑 /etc/pam.d/passwd

注释掉:password   requisite    /lib/security/$ISA/pam_passwdqc.so retry=3 min=disabled,disabled,disabled,7,7

再添加:password   required    /lib/security/$ISA/pam_passwdqc.so retry=3 min=disabled,disabled,7,7,7 max=30 match=4 similar=deny enforce=users
https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-7.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

保存后就可以通过passwd进行root密码修改,或者再web页面修改。

vmrc访问

vmrc://主机IP:端口号/?moid=虚拟主机ID

注:当前查看虚拟主机ID为2

所以:vmrc://192.168.68.222/?moid=2

https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-12.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

vmrc连接小技巧

偶尔需要将单个vm分享给别人,就需要获取vmrc地址后,再告知对方要贴在浏览器中并收藏,懒人,做个bat,直接双击更方便。

首先vmrc格式:

https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-10.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
#第一个,这是esxi自动生成的,第2个vm(moid=2)
start iexplore "vmrc://clone:cst-52653d6b-caa5-854b-136b-9d2906b466f3--tp-15-68-53-CA-EF-86-F5-DD-23-4C-F8-80-5E-DD-0E-B2-5D-EE-27-B3@192.168.68.222/?moid=2"
 
#ESXI地址vm编号(第几个vm)
start iexplore "vmrc://192.168.68.222/?moid=2"
#或者给出esxi给vm分配的用户名
start iexplore "vmrc://centos@192.168.68.222/?moid=2"

因此bat启动格式:

#使用ie浏览器打开
start iexplore "vmrc://《vmrc生成的地址》"
#如果google浏览器打开(以此类推)
start chrome "vmrc://《vmrc生成的地址》"

所以,但为了更好的完善“一键”,需要客户机装vmrc,可以将vmrc和bat使用rar工具封装为一个exe,让客户机去执行。

包内就2个文件:vmrc.exe和这个bat

https://qnimg.ffing.cn/wp-content/uploads/2021/12/image-11.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

附上我封装exe时用的bat(如果vmrc存在就直接启动,不存在则安装vmrc)

注:如果你还想懒,还可以使用rar工具在桌面生成快捷方式!!!

@echo off & title 启动VMRC

REM 保存bat时,请使用ANSI编码,否则报错!!
REM 保存bat时,请使用ANSI编码,否则报错!!
REM 保存bat时,请使用ANSI编码,否则报错!!

REM 将引号内部分改成你要查找的服务名称 
REM 后面这个方法无效: sc query |find /i "serviceName" >nul 2>nul
SC QUERY "VMUSBArbService" > NUL
IF not ERRORLEVEL 1 GOTO EXIST
GOTO NOTEXIST
REM(另外,上方的if这里好像不识别无需else)

:NOTEXIST
REM 这里写服务不存在时用的代码
ECHO  "VMUSBArbService" service 不存在

REM 延申:服务不存在可以执行安装操作!(VMRC静默安装)
ECHO  正在安装VMRC,请等待。。。
vmrc《写你的vmrc具体名称》.exe  /s /v "/qn EULAS_AGREED=1  AUTOSOFTWAREUPDATE=0 DATACOLLECTION=0"
GOTO END

:EXIST
REM 这里写服务存在时用的代码
ECHO  "VMUSBArbService" service 已存在
GOTO END

:END
start iexplore "vmrc://192.168.68.222/?moid=2"
good good study, day day up!

发表评论

textsms
account_circle
email

ESXI7 安装教程
做个简图方便了解vmware,esxi,docker的区别 上图可以看出vmware和docker都可以理解为在已安装(win/linux/mac)的系统之上安装了一个应用管理app。 而esxi可以理解为在硬件上直…
扫描二维码继续阅读
2021-09-14