itiligent / Easy-OpenWRT-Builder

A simple framework for building customized OpenWRT images with additional options for virtual machine conversion & embedded parition resizing
22 stars 8 forks source link

"Unsupported or invalid disk type 2" booting Esxi images #3

Closed AbcITAndrzej closed 1 month ago

AbcITAndrzej commented 1 month ago

Before starting Openwrt on ESXI, you should perform the following operation on the image created, e.g. "openwrt-23.05.5-custom-x86-64-generic-ext4-combined-efi.vmdk": vmkfstools -i openwrt-23.05.5-custom-x86-64-generic-ext4-combined-efi.vmdk new.vmdk Only the disk named "new.vmdk" can be added to the new image and the system can be started correctly. As: Guest OS version, you can select the type as "Other Linux (64-bit)".

itiligent commented 1 week ago

UPDATE: Thanks to @AbcITAndrzej for pointing this out. I'd previously not been able to replicate this until updating to more recent Esxi 7 & 8 builds.. I've also deleted unecessary info from this issue to keep it on point.

SOLUTION:

  1. Create a new VM as "Other 5.x Linux (64-bit)"
  2. Upload the new vmdk image to the the new VM's ESXi directory and run: vmkfstools -i source.vmdk destintation.vmdk
  3. Point your new OWRT vm to destintation.vmdk using a SCSI or SAS controller
  4. Finish any other VM configs and boot.
  5. If you still cant boot, check to see if secure boot is enbled on the VM. (Depending on your HW BIOS setup and TPM this can also prevent booting.)