0%

install macos in esxi

下载镜像

https://apps.apple.com/us/app/macos-catalina/id1466841314?l=en-us&mt=12

转换格式

hdiutil create -o ~/Desktop/Catalina.dmg -size 9g -layout GPTSPUD -fs HFS+J
hdiutil attach ~/Desktop/Catalina.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build –nointeraction
hdiutil detach “/Volumes/Install macOS Catalina”
hdiutil convert ~/Desktop/Catalina.dmg -format UDTO -o ~/Desktop/Catalina.cdr
mv ~/Desktop/Catalina.cdr ~/Desktop/Catalina.iso

直通显卡

hypervisor.cpuid.v0 = “FALSE”

第一次设置要重启esxi

直通usb鼠标键盘

lsusb -v | grep -E ‘(^Bus|HID)’

vi /etc/vmware/config

usb.generic.allowHID = “TRUE”
usb.quirks.device0 = “0x24ae:0x2003 allow”
usb.quirks.device1 = “0x413c:0x2107 allow”
usb.quirks.device2 = “0x093a:0x2510 allow”

vi /bootbank/boot.cfg
CONFIG./USB/quirks=0x24ae:0x2003::0xffff:UQ_KBD_IGNORE:0x413c:0x2107::0xffff:UQ_KBD_IGNORE:0x093a:0x2510::0xffff:UQ_KBD_IGNORE

第一次设置要重启esxi

esxi upgrade

vim-cmd /hostsvc/maintenance_mode_enter
esxcli network firewall ruleset set -e true -r httpClient
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-7.0.0
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-7.0.0-15843807-standard
reboot
vim-cmd /hostsvc/maintenance_mode_exit

esxcli software sources profile list -d /vmfs/volumes/5c9bf508-925a81c5-8aa9-40623106c271/VMware-ESXi-7.0.0-15843807-depot.zip
esxcli software profile update -p ESXi-7.0.0-15843807-standard -d /vmfs/volumes/5c9bf508-925a81c5-8aa9-40623106c271/VMware-ESXi-7.0.0-15843807-depot.zip –dry-run

esxcli software profile update –allow-downgrades

esxi 挂载upan

/etc/init.d/usbarbitrator stop
esxcli storage core device list | grep -i usb
esxcli storage filesystem list

esxi解锁

https://github.com/shanyungyang/esxi-unlocker

欢迎关注我的其它发布渠道