From: John Sommerville Date: Fri, 27 Sep 2019 20:09:10 +0000 (-0600) Subject: build: build proper VMDK formats for ESXI 6.5 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6041eb9547be49edaa6c2ecd5dd77e8a9e067244;p=openwrt%2Fstaging%2Fjow.git build: build proper VMDK formats for ESXI 6.5 VMWare ESXI 6.5 and above is not compatible with subformat=monolithicSparse (The default qemu-img convert -O VMDK option). Monolithic Sparse vmdk can be imported, but issues occur when running sysupgrade with new images and other tasks that modify the file system (issues like Kernel panics, reboot loops, sometimes crashing the Host ESXI box). This change creates an additional VMDK output file for ESXI that sets the subformat to monlithicFlat, and the adapter_type to the SCSI lsilogic controller. This change existed back on: 25e36d379e73d64d6316fae9dc841c5ef28980f1 But it looks like the change was removed when refactoring occurred with: 5f6a2732f892b6229473576d89cc963ae9c97d5d Signed-off-by: John Sommerville --- diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index 4383bcdcb2..eb0db417a3 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -133,6 +133,12 @@ ifneq ($(CONFIG_VMDK_IMAGES),) $(STAGING_DIR_HOST)/bin/qemu-img convert -f raw -O vmdk \ $(BIN_DIR)/$(IMG_COMBINED)-$(1).img \ $(BIN_DIR)/$(IMG_COMBINED)-$(1).vmdk + #build the ESXI VMDK with + rm $(BIN_DIR)/$(IMG_COMBINED)-$(1)-esxi.vmdk || true + rm $(BIN_DIR)/$(IMG_COMBINED)-$(1)-esxi-flat.vmdk || true + $(STAGING_DIR_HOST)/bin/qemu-img convert -f raw -O vmdk -o adapter_type=lsilogic,subformat=monolithicFlat \ + $(BIN_DIR)/$(IMG_COMBINED)-$(1).img \ + $(BIN_DIR)/$(IMG_COMBINED)-$(1)-esxi.vmdk endef endif