The official doc of OpenWrt on VMware HowTo seems already outdated, and there’s no explaination of how to fix
Unsupported or invalid disk type 2 for 'scsi0:0'. Ensure that the disk has been imported. on ESXi 6.7. Here after looked into some clues on Chinese router forums, I found an usable method to convert the image into ESXi VMDK format on macOS.
You can find the
.img.gz files on https://downloads.openwrt.org/, for example:
brew install gzip # To un-gzip .gz files
You can either upload the image using
scp command or via web UI. However, I would suggest enable SSH on your ESXi host and use
scp, as the next step requires shell prompt on the host.
scp openwrt-19.07.4-x86-64-combined-ext4.vmdk root@esxi:/vmfs/volumes/datastore1/
Before using the
.vmdk file as an “existing hard disk” on ESXi, there’s one more step to convert it into supported disk type.
Done! Now we can create and boot a VM with adding
openwrt-converted.vmdk as the primary disk. Enjoy it!