andyneff / docker-esxi

An ESXI image in docker
MIT License
22 stars 7 forks source link

ERROR: Service 'esxi' failed to build #2

Open dmytroshokha opened 4 years ago

dmytroshokha commented 4 years ago

I've done all steps correctly but have an error. Maybe anybody can explain how to fix it?

C:\Users\User\Desktop\docker-esxi-master>docker-compose build --build-arg ISO_IMAGE=esxi-6-5.iso
Building esxi
Step 1/17 : FROM fedora:27 as stage
 ---> f89698585456
Step 2/17 : SHELL ["/usr/bin/bash", "-euxvc"]
 ---> Using cache
 ---> 2404b085cb79
Step 3/17 : RUN dnf install -y p7zip-plugins glibc.i686 zlib.i686 xz libxml2.i686;     dnf clean all
 ---> Using cache
 ---> 3061462fd25e
Step 4/17 : ARG ISO_IMAGE=VMware-VMvisor-Installer-201701001-4887370.x86_64.iso
 ---> Using cache
 ---> c04a1d1d9f9b
Step 5/17 : ADD ${ISO_IMAGE} /esxi.iso
 ---> cc444d77a9a5
Step 6/17 : RUN 7z x /esxi.iso -o/esxi_gzip;     zforce /esxi_gzip/* || :;     mkdir -p /esxi_gunzip;     for x in /esxi_gzip/*.gz; do       name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')";       if [ "${name}" = "/esxi_gzip/" ]; then         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")";       else         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})";       fi;     done
 ---> Running in 0035eb3ec2c9
7z x /esxi.iso -o/esxi_gzip;     zforce /esxi_gzip/* || :;     mkdir -p /esxi_gunzip;     for x in /esxi_gzip/*.gz; do       name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')";       if [ "${name}" = "/esxi_gzip/" ]; then         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")";       else         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})";       fi;     done
+ 7z x /esxi.iso -o/esxi_gzip

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (806EA),ASM,AES-NI)

Scanning the drive for archives:
1 file, 391405568 bytes (374 MiB)

Extracting archive: /esxi.iso
--
Path = /esxi.iso
Type = Iso
Physical Size = 391405568
Created = 2017-02-18 13:41:31
Modified = 2017-02-18 13:41:31

Everything is Ok

Folders: 47
Files: 152
Size:       390664328
Compressed: 391405568
+ zforce /esxi_gzip/README.txt /esxi_gzip/SYSTEMS.txt /esxi_gzip/busybox-1.22.1 /esxi_gzip/ccid-1.4.7 /esxi_gzip/e2fsprogs-1.42.6 /esxi_gzip/embedded_host_client-dev /esxi_gzip/esxboot-2.0.0 /esxi_gzip/gcc-4.8.4 /esxi_gzip/gdb-7.8.1 /esxi_gzip/glib-2.26.0 /esxi_gzip/glibc-2.12.2 /esxi_gzip/gpxe-0.9.7 /esxi_gzip/hwinfo-18.1 /esxi_gzip/jansson-2.3 /esxi_gzip/kbd-1.08-10.6 /esxi_gzip/libfat-4.03 /esxi_gzip/libipmi-4.5 /esxi_gzip/libmspack-0.5alpha /esxi_gzip/libusb-1.0.9 /esxi_gzip/libxml2-2.9.3 /esxi_gzip/libxml2-2.9.4 /esxi_gzip/libxslt-1.1.28 /esxi_gzip/linux-headers-3.0.27 /esxi_gzip/mbedtls-1.3.10 /esxi_gzip/mpi-bindings-pywbem-0.4.0 /esxi_gzip/mtools-3.9.10 /esxi_gzip/ntfsprogs-2.0.0 /esxi_gzip/ntp-4.2.8p8 /esxi_gzip/omc-1.0.8 /esxi_gzip/open-iscsi-2.0-865 /esxi_gzip/parted-2.4 /esxi_gzip/pcsc-lite-1.8.5 /esxi_gzip/pyparted-1.8.2 /esxi_gzip/pyparted-3.10.7 /esxi_gzip/pywbem-0.7.0 /esxi_gzip/rapidjson-0.1 /esxi_gzip/refit-0.14 /esxi_gzip/sblim-cmpi-2.0.1 /esxi_gzip/sblim-sfcb-1.3.7 /esxi_gzip/sblim-sfcc-2.2.1 /esxi_gzip/syslinux-3 /esxi_gzip/urlgrabber-3.10.1 /esxi_gzip/urwid-1.0.2 /esxi_gzip/usbutils-006 /esxi_gzip/vmkdrivers-gpl /esxi_gzip/weasel-1.0 /esxi_gzip/xz-utils-5.2.2
zforce: /esxi_gzip/busybox-1.22.1 not a file
zforce: /esxi_gzip/ccid-1.4.7 not a file
zforce: /esxi_gzip/e2fsprogs-1.42.6 not a file
zforce: /esxi_gzip/embedded_host_client-dev not a file
zforce: /esxi_gzip/esxboot-2.0.0 not a file
zforce: /esxi_gzip/gcc-4.8.4 not a file
zforce: /esxi_gzip/gdb-7.8.1 not a file
zforce: /esxi_gzip/glib-2.26.0 not a file
zforce: /esxi_gzip/glibc-2.12.2 not a file
zforce: /esxi_gzip/gpxe-0.9.7 not a file
zforce: /esxi_gzip/hwinfo-18.1 not a file
zforce: /esxi_gzip/jansson-2.3 not a file
zforce: /esxi_gzip/kbd-1.08-10.6 not a file
zforce: /esxi_gzip/libfat-4.03 not a file
zforce: /esxi_gzip/libipmi-4.5 not a file
zforce: /esxi_gzip/libmspack-0.5alpha not a file
zforce: /esxi_gzip/libusb-1.0.9 not a file
zforce: /esxi_gzip/libxml2-2.9.3 not a file
zforce: /esxi_gzip/libxml2-2.9.4 not a file
zforce: /esxi_gzip/libxslt-1.1.28 not a file
zforce: /esxi_gzip/linux-headers-3.0.27 not a file
zforce: /esxi_gzip/mbedtls-1.3.10 not a file
zforce: /esxi_gzip/mpi-bindings-pywbem-0.4.0 not a file
zforce: /esxi_gzip/mtools-3.9.10 not a file
zforce: /esxi_gzip/ntfsprogs-2.0.0 not a file
zforce: /esxi_gzip/ntp-4.2.8p8 not a file
zforce: /esxi_gzip/omc-1.0.8 not a file
zforce: /esxi_gzip/open-iscsi-2.0-865 not a file
zforce: /esxi_gzip/parted-2.4 not a file
zforce: /esxi_gzip/pcsc-lite-1.8.5 not a file
zforce: /esxi_gzip/pyparted-1.8.2 not a file
zforce: /esxi_gzip/pyparted-3.10.7 not a file
zforce: /esxi_gzip/pywbem-0.7.0 not a file
zforce: /esxi_gzip/rapidjson-0.1 not a file
zforce: /esxi_gzip/refit-0.14 not a file
zforce: /esxi_gzip/sblim-cmpi-2.0.1 not a file
zforce: /esxi_gzip/sblim-sfcb-1.3.7 not a file
zforce: /esxi_gzip/sblim-sfcc-2.2.1 not a file
zforce: /esxi_gzip/syslinux-3 not a file
zforce: /esxi_gzip/urlgrabber-3.10.1 not a file
zforce: /esxi_gzip/urwid-1.0.2 not a file
zforce: /esxi_gzip/usbutils-006 not a file
zforce: /esxi_gzip/vmkdrivers-gpl not a file
zforce: /esxi_gzip/weasel-1.0 not a file
zforce: /esxi_gzip/xz-utils-5.2.2 not a file
+ :
+ mkdir -p /esxi_gunzip
+ for x in /esxi_gzip/*.gz
++ gzip -l -N --quiet '/esxi_gzip/*.gz'
++ sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||'
gzip: /esxi_gzip/*.gz: No such file or directory
+ name=
+ '[' '' = /esxi_gzip/ ']'
+ zcat '/esxi_gzip/*.gz'
++ basename '/esxi_gzip/*'
++ basename
basename: missing operand
Try 'basename --help' for more information.
gzip: /esxi_gzip/*.gz: No such file or directory
ERROR: Service 'esxi' failed to build: The command '/usr/bin/bash -euxvc 7z x /esxi.iso -o/esxi_gzip;     zforce /esxi_gzip/* || :;     mkdir -p /esxi_gunzip;     for x in /esxi_gzip/*.gz; do       name="$(gzip -l -N --quiet "${x}" | sed 's| *[0-9]* *[0-9]* *[0-9%.]* ||')";       if [ "${name}" = "/esxi_gzip/" ]; then         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}")";       else         zcat "${x}" > "/esxi_gunzip/$(basename "${x%.*}").$(basename ${name##*.})";       fi;     done' returned a non-zero code: 1
andyneff commented 4 years ago
  1. I cloned this repo
  2. I downloaded the 6.5.0U3 iso (SHA256SUM: d70609793add74372bb842ec66bc66f817516f6a99b0278ab1c73195fc2679a7) into the git cloned repo directory
  3. docker-compose build --build-arg ISO_IMAGE=VMware-VMvisor-Installer-6.5.0.update03-13932383.x86_64.iso

And I seem to get past where you did.

...
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,2 CPUs Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz (306C3),ASM,AES-NI)

Scanning the drive for archives:
1 file, 331452416 bytes (317 MiB)

Extracting archive: /esxi.iso
--
Path = /esxi.iso
Type = Iso
Physical Size = 331452416
Comment =
Volume: ESXI-6.5.0-20190702001-STANDARD
Application: ESXIMAGE
Created = 2019-06-25 09:38:00
Modified = 2019-06-25 09:38:00

Everything is Ok

Folders: 3
Files: 168
Size:       331222378
Compressed: 331452416
+ zforce /esxi_gzip/A.B00 /esxi_gzip/ATA_LIBA.V00 /esxi_gzip/ATA_PATA.V00 /esxi_gzip/ATA_PATA.V01 /esxi_gzip/ATA_PATA.V02 /esxi_gzip/ATA_PATA.V03 /esxi_gzip/ATA_PATA.V04 /esxi_gzip/ATA_PATA.V05 /esxi_gzip/ATA_PATA.V06 /esxi_gzip/ATA_PATA.V07 /esxi_gzip/B.B00 /esxi_gzip/BLOCK_CC.V00 /esxi_gzip/BNXTNET.V00 /esxi_gzip/BOOT.CAT /esxi_gzip/BOOT.CFG /esxi_gzip/BRCMFCOE.V00 /esxi_gzip/BTLDR.T00 /esxi_gzip/CHARDEVS.B00 /esxi_gzip/CHAR_RAN.V00 /esxi_gzip/EFI /esxi_gzip/EFIBOOT.IMG /esxi_gzip/EHCI_EHC.V00 /esxi_gzip/ELXNET.V00 /esxi_gzip/EMULEX_E.V00 /esxi_gzip/ESX_DVFI.V00 /esxi_gzip/ESX_UI.V00 /esxi_gzip/FEATURES.GZ /esxi_gzip/HID_HID.V00 /esxi_gzip/I40EN.V00 /esxi_gzip/IGBN.V00 /esxi_gzip/IMA_QLA4.V00 /esxi_gzip/IMGDB.TGZ /esxi_gzip/IMGPAYLD.TGZ /esxi_gzip/IPMI_IPM.V00 /esxi_gzip/IPMI_IPM.V01 /esxi_gzip/IPMI_IPM.V02 /esxi_gzip/ISOLINUX.BIN /esxi_gzip/ISOLINUX.CFG /esxi_gzip/IXGBEN.V00 /esxi_gzip/JUMPSTRT.GZ /esxi_gzip/K.B00 /esxi_gzip/LPFC.V00 /esxi_gzip/LSI_MR3.V00 /esxi_gzip/LSI_MSGP.V00 /esxi_gzip/LSI_MSGP.V01 /esxi_gzip/LSI_MSGP.V02 /esxi_gzip/LSU_HP_H.V00 /esxi_gzip/LSU_LSI_.V00 /esxi_gzip/LSU_LSI_.V01 /esxi_gzip/LSU_LSI_.V02 /esxi_gzip/LSU_LSI_.V03 /esxi_gzip/LSU_LSI_.V04 /esxi_gzip/MBOOT.C32 /esxi_gzip/MENU.C32 /esxi_gzip/MISC_CNI.V00 /esxi_gzip/MISC_DRI.V00 /esxi_gzip/MTIP32XX.V00 /esxi_gzip/NATIVE_M.V00 /esxi_gzip/NE1000.V00 /esxi_gzip/NENIC.V00 /esxi_gzip/NET_BNX2.V00 /esxi_gzip/NET_BNX2.V01 /esxi_gzip/NET_CDC_.V00 /esxi_gzip/NET_CNIC.V00 /esxi_gzip/NET_E100.V00 /esxi_gzip/NET_E100.V01 /esxi_gzip/NET_ENIC.V00 /esxi_gzip/NET_FCOE.V00 /esxi_gzip/NET_FORC.V00 /esxi_gzip/NET_IGB.V00 /esxi_gzip/NET_IXGB.V00 /esxi_gzip/NET_LIBF.V00 /esxi_gzip/NET_MLX4.V00 /esxi_gzip/NET_MLX4.V01 /esxi_gzip/NET_NX_N.V00 /esxi_gzip/NET_TG3.V00 /esxi_gzip/NET_USBN.V00 /esxi_gzip/NET_VMXN.V00 /esxi_gzip/NHPSA.V00 /esxi_gzip/NMLX4_CO.V00 /esxi_gzip/NMLX4_EN.V00 /esxi_gzip/NMLX4_RD.V00 /esxi_gzip/NMLX5_CO.V00 /esxi_gzip/NTG3.V00 /esxi_gzip/NVME.V00 /esxi_gzip/NVMXNET3.V00 /esxi_gzip/OHCI_USB.V00 /esxi_gzip/PVSCSI.V00 /esxi_gzip/QEDENTV.V00 /esxi_gzip/QFLE3.V00 /esxi_gzip/QFLGE.V00 /esxi_gzip/QLNATIVE.V00 /esxi_gzip/RSTE.V00 /esxi_gzip/S.V00 /esxi_gzip/SAFEBOOT.C32 /esxi_gzip/SATA_AHC.V00 /esxi_gzip/SATA_ATA.V00 /esxi_gzip/SATA_SAT.V00 /esxi_gzip/SATA_SAT.V01 /esxi_gzip/SATA_SAT.V02 /esxi_gzip/SATA_SAT.V03 /esxi_gzip/SATA_SAT.V04 /esxi_gzip/SB.V00 /esxi_gzip/SCSI_AAC.V00 /esxi_gzip/SCSI_ADP.V00 /esxi_gzip/SCSI_AIC.V00 /esxi_gzip/SCSI_BNX.V00 /esxi_gzip/SCSI_BNX.V01 /esxi_gzip/SCSI_FNI.V00 /esxi_gzip/SCSI_HPS.V00 /esxi_gzip/SCSI_IPS.V00 /esxi_gzip/SCSI_ISC.V00 /esxi_gzip/SCSI_LIB.V00 /esxi_gzip/SCSI_MEG.V00 /esxi_gzip/SCSI_MEG.V01 /esxi_gzip/SCSI_MEG.V02 /esxi_gzip/SCSI_MPT.V00 /esxi_gzip/SCSI_MPT.V01 /esxi_gzip/SCSI_MPT.V02 /esxi_gzip/SCSI_QLA.V00 /esxi_gzip/SHIM_ISC.V00 /esxi_gzip/SHIM_ISC.V01 /esxi_gzip/SHIM_LIB.V00 /esxi_gzip/SHIM_LIB.V01 /esxi_gzip/SHIM_LIB.V02 /esxi_gzip/SHIM_LIB.V03 /esxi_gzip/SHIM_LIB.V04 /esxi_gzip/SHIM_LIB.V05 /esxi_gzip/SHIM_VMK.V00 /esxi_gzip/SHIM_VMK.V01 /esxi_gzip/SHIM_VMK.V02 /esxi_gzip/SMARTPQI.V00 /esxi_gzip/TBOOT.B00 /esxi_gzip/TOOLS.T00 /esxi_gzip/UC_AMD.B00 /esxi_gzip/UC_INTEL.B00 /esxi_gzip/UHCI_USB.V00 /esxi_gzip/UPGRADE /esxi_gzip/USBCORE_.V00 /esxi_gzip/USB_STOR.V00 /esxi_gzip/USER.B00 /esxi_gzip/USEROPTS.GZ /esxi_gzip/VMKATA.V00 /esxi_gzip/VMKPLEXE.V00 /esxi_gzip/VMKUSB.V00 /esxi_gzip/VMWARE-ESX-BASE-OSL.TXT /esxi_gzip/VMWARE-ESX-BASE-README /esxi_gzip/VMWARE_E.V00 /esxi_gzip/VMW_AHCI.V00 /esxi_gzip/VSAN.V00 /esxi_gzip/VSANHEAL.V00 /esxi_gzip/VSANMGMT.V00 /esxi_gzip/WEASELIN.T00 /esxi_gzip/XHCI_XHC.V00 /esxi_gzip/XORG.V00 '/esxi_gzip/[BOOT]'
/esxi_gzip/A.B00 -- replaced with /esxi_gzip/A.B00.gz
/esxi_gzip/ATA_LIBA.V00 -- replaced with /esxi_gzip/ATA_LIBA.V00.gz
/esxi_gzip/ATA_PATA.V00 -- replaced with /esxi_gzip/ATA_PATA.V00.gz
/esxi_gzip/ATA_PATA.V01 -- replaced with /esxi_gzip/ATA_PATA.V01.gz
/esxi_gzip/ATA_PATA.V02 -- replaced with /esxi_gzip/ATA_PATA.V02.gz
/esxi_gzip/ATA_PATA.V03 -- replaced with /esxi_gzip/ATA_PATA.V03.gz
/esxi_gzip/ATA_PATA.V04 -- replaced with /esxi_gzip/ATA_PATA.V04.gz
/esxi_gzip/ATA_PATA.V05 -- replaced with /esxi_gzip/ATA_PATA.V05.gz
/esxi_gzip/ATA_PATA.V06 -- replaced with /esxi_gzip/ATA_PATA.V06.gz
/esxi_gzip/ATA_PATA.V07 -- replaced with /esxi_gzip/ATA_PATA.V07.gz
/esxi_gzip/B.B00 -- replaced with /esxi_gzip/B.B00.gz
/esxi_gzip/BLOCK_CC.V00 -- replaced with /esxi_gzip/BLOCK_CC.V00.gz
/esxi_gzip/BNXTNET.V00 -- replaced with /esxi_gzip/BNXTNET.V00.gz
/esxi_gzip/BRCMFCOE.V00 -- replaced with /esxi_gzip/BRCMFCOE.V00.gz
/esxi_gzip/BTLDR.T00 -- replaced with /esxi_gzip/BTLDR.T00.gz
/esxi_gzip/CHARDEVS.B00 -- replaced with /esxi_gzip/CHARDEVS.B00.gz
/esxi_gzip/CHAR_RAN.V00 -- replaced with /esxi_gzip/CHAR_RAN.V00.gz
zforce: /esxi_gzip/EFI not a file
/esxi_gzip/EHCI_EHC.V00 -- replaced with /esxi_gzip/EHCI_EHC.V00.gz
/esxi_gzip/ELXNET.V00 -- replaced with /esxi_gzip/ELXNET.V00.gz
/esxi_gzip/EMULEX_E.V00 -- replaced with /esxi_gzip/EMULEX_E.V00.gz
/esxi_gzip/ESX_DVFI.V00 -- replaced with /esxi_gzip/ESX_DVFI.V00.gz
/esxi_gzip/ESX_UI.V00 -- replaced with /esxi_gzip/ESX_UI.V00.gz
...

I can see from your logs that the file you used is 391405568 bytes (374 MiB). I do not see any files from here that match that size. Could you tell me exactly what ISO you downloaded?

dmytroshokha commented 4 years ago

I can't get iso from here so i download iso from here