Skip to content

Export-ESXImageProfile fails with WinError 10054

When creating an ESXi ISO Image from VMware's Online Depot by using the PowerCLI command Export-ESXImageProfile -ExportToISO, the creation might fail with the following error message:

Export-ESXImageProfile : [WinError 10054] An existing connection was forcibly closed by the remote host

Creating an offline .zip bundle (-ExportToBundle) works without any problems. To work around this issue, create the .zip bundle first and then create the .iso file from the local software depot.

Example:
The following commands can be used to create a working ESXi 7.0 Image to be used with Intel's 10th Gen Frost Canyon NUC. See ESXi on 10th Gen Intel NUC (Comet Lake - Frost Canyon) for further information about the updated NE1000 driver required to create the image.

Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Export-ESXImageProfile -ImageProfile "ESXi-7.0.0-15843807-standard" -ExportToBundle -filepath ESXi-7.0.0-15843807-standard.zip
Remove-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Add-EsxSoftwareDepot .\ESXi-7.0.0-15843807-standard.zip
Add-EsxSoftwareDepot .\ESXi670-NE1000-32543355-offline_bundle-15486963.zip
New-EsxImageProfile -CloneProfile "ESXi-7.0.0-15843807-standard" -name "ESXi-7.0.0-15843807-NUC" -Vendor "virten.net"
Remove-EsxSoftwarePackage -ImageProfile "ESXi-7.0.0-15843807-NUC" -SoftwarePackage "ne1000"
Add-EsxSoftwarePackage -ImageProfile "ESXi-7.0.0-15843807-NUC" -SoftwarePackage "ne1000 0.8.4-3vmw.670.3.99.32543355"
Export-ESXImageProfile -ImageProfile "ESXi-7.0.0-15843807-NUC" -ExportToIso -filepath ESXi-7.0.0-15843807-NUC.iso

2 thoughts on “Export-ESXImageProfile fails with WinError 10054”

Leave a Reply

Your email address will not be published. Required fields are marked *