Vmware Esxi在创建虚拟机的时候是有Mac OS选项的,但是实际创建时,选择ISO开机后一直反复引导,是有问题的,原因是需要先解锁,需要在ESXI主机上修改配置并重启。
首先找到管理-服务-TSM-ssh,点击启动,此时可ssh连接ESXI
登录进去。
之后下载Vmware exsi-unlocker
Releases · DrDonk/esxi-unlocker · GitHub
我下载的是4.0.6
然后上传到ESXI主机中。
注意:不能上传到根分区,执行unlock会报错,上传到存储目录里。如下:
[root@ESXI01:~] cd /vmfs/volumes/
[root@ESXI01:/vmfs/volumes] ls
144c39dd-85481ced-f0b5-cbcb4ce2f77e BOOTBANK2
65ab8c2a-155585f1-857e-e484294e6c68 Dell-SC5020_LUN03
65ab8c2a-e3bc539d-b692-e484294e6c68 OSDATA-65ab8c2a-e3bc539d-b692-e484294e6c68
65afbc68-db62bc7d-81c3-00620b230640 datastore1
BOOTBANK1 f72e5769-4a43e573-1885-9138ce0a9280
[root@ESXI01:/vmfs/volumes] cd Dell-SC5020_LUN03/
[root@ESXI01:/vmfs/volumes/65afbc68-db62bc7d-81c3-00620b230640]
上传下载好的esxi-unlocker
[root@ESXI01:/vmfs/volumes/65afbc68-db62bc7d-81c3-00620b230640] ll esxi-unlocker-4.0.6/
total 39296
drwxr-xr-x 1 root root 77824 Feb 28 10:35 .
drwxr-xr-t 1 root root 81920 Feb 28 10:41 ..
-rw-r--r-- 1 root root 375 Feb 28 08:53 .gitattributes
drwxr-xr-x 1 root root 73728 Feb 28 08:53 .github
-rw-r--r-- 1 root root 96 Feb 28 08:53 .gitignore
-rw-r--r-- 1 root root 1759 Feb 28 08:53 CHANGELOG.md
-rw-r--r-- 1 root root 1075 Feb 28 08:53 LICENSE
-rw-r--r-- 1 root root 3922 Feb 28 08:53 README.md
-rw-r--r-- 1 root root 3349 Feb 28 08:53 TROUBLESHOOTING.md
-rw-r--r-- 1 root root 38406670 Feb 28 10:35 apple.v00
-rwxr-xr-x 1 root root 1128 Feb 28 08:53 check
-rwxr-xr-x 1 root root 67 Feb 28 08:53 checksmc
-rwxr-xr-x 1 root root 70 Feb 28 08:53 checkvmkctl
-rwxr-xr-x 1 root root 66 Feb 28 08:53 dumpsmc
-rwxr-xr-x 1 root root 10663 Feb 28 08:53 patchsmc
-rwxr-xr-x 1 root root 2157 Feb 28 08:53 patchvmkctl
-rwxr-xr-x 1 root root 677 Feb 28 08:53 relock
-rwxr-xr-x 1 root root 2970 Feb 28 08:53 unlock
执行unlock
[root@ESXI01:/vmfs/volumes/65afbc68-db62bc7d-81c3-00620b230640] cd esxi-unlocker-4.0.6/
[root@ESXI01:/vmfs/volumes/65afbc68-db62bc7d-81c3-00620b230640/esxi-unlocker-4.0.6] ./unlock
VMware ESXi Unlocker 4.0.5
==========================
Installing unlocker...
PatchSMC 4.0.5
==============
Filename: ./tmp/bin/vmx
File ./tmp/bin/vmx is already patched
PatchSMC 4.0.5
==============
Filename: ./tmp/bin/vmx-debug
File ./tmp/bin/vmx-debug is already patched
PatchSMC 4.0.5
==============
Filename: ./tmp/bin/vmx-stats
File ./tmp/bin/vmx-stats is already patched
PatchVMKCTL 4.0.5
=================
Filename: ./tmp/lib64/libvmkctl.so
Patch Status: True
File is already patched
Building apple.v00 VMTAR file...
Cleaning up tmp files...
Adding to bootbank...
Acquiring lock /tmp/bootbank.lck
Copying apple.v00 to /bootbank/apple.v00
Editing /bootbank/boot.cfg to add module apple.v00
Reboot the ESXi server to install unlocker (y/N)?
选择y,之后会重启ESXI
重启完毕后再次创建虚拟机,如下选择
打开虚拟机,正常显示:
点击继续
点击同意
此处会显示没有足够空间,需要点击实用工具-磁盘工具,选中VMware Virtual盘,点击抹掉,然后命令Mac OS
之后退出磁盘工具
等待安装完成
选择中国,继续
继续,填写静态IP地址
下一步设置账号密码随意即可
安装完成
弹出镜像,再安装vmware tools,官网下载
下载后本地解压出darwin.iso,上传到ESXI数据存储中,之后给虚拟机挂载上。
等待安装完成即可