Hello all,
This is part two of my original attempt at injecting a community nvme fling driver into my v8 ESXi image.
@knikolov was awesome enough to point me in the right direction on my Python issue - thanks again!
I've now stepped through the process of :
set-ExecutionPolicy -ExecutionPolicy AllSigned
add-EsxSoftwareDepot -DepotUrl https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
add-EsxSoftwareDepot -DepotUrl .\pkgdir\nvme-community-driver_1.0.1.0-1vmw.670.0.0.8169922-offline_bundle-17658145.zip (not sure if there is a way to pull flings from a URL)
new-EsxImageProfile -CloneProfile ESXi-8.0.0-20513097-standard -Name "ESXi-8-nvme"
Export-ESXImageProfile -ImageProfile "ESXi-8-nvme" -ExportToISO -filepath .\ESXi-8-nvme_mod.iso
It's at this last step that I encounter :
Export-ESXImageProfile : [PEM: NO_START_LINE] no start line (_ssl.c:2460)
At line:1 char:1
+ Export-ESXImageProfile -ImageProfile "ESXi-8-nvme" -ExportToISO -file ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Export-EsxImageProfile], FaultException
+ FullyQualifiedErrorId : System.ServiceModel.FaultException,VMware.ImageBuilder.Commands.ExportProfile
Judging by the errors involving PEM and the _ssl, my first assumption was that it might be related to the other SSL cert issues that I've seen in other threads about connectivity. However, the machine that I am running PowerCLI on does not have Vsphere, Workstation, or other VMware-related installations on it. I don't have an ESXi / Vsphere installation up and running yet - I'm still trying to create the ISO to install one haha.
On a whim, I checked the local and personal Certificate Authority on my machine to see if I *did* have any VMWare-related certs installed. I found a pair under Current User : Trusted Publishers. One was issued by DigiCert and the other, by Symantec. The Symantec one expired in 2021.
For information sake, I have a Win 11 machine running Powershell version 5.1.22621 . I'm running v13 of VMware.PowerCLI and v8.0.0.2 of VMware.ImageBuilder.
Any thoughts, suggestions, or otherwise would be greatly appreciated.
Thanks!
I actually ran into this issue earlier this week and have already reported it internally, waiting to hear back from PowerCLI team. I also saw that other folks ran into same problem, so there could be an issue with Image Builder cmdlets and/or compatibility in creating ESXi 8.0 Images ... For now, you can use Image Builder UI OR vLCM https://williamlam.com/2022/11/creating-custom-esxi-images-using-vsphere-lifecycle-manager-vlcm-ui-a...
Also having an issue with esxi7 so not isolated to 8
Seems to be a PowerCLI v13 issue.
Works fine for v7.0U3i with PowerCLI v11.2 (yeah old version, but it's all I had to hand to test with!!)
Yes, this is indeed specific to PowerCLI 13 and doesn't matter which version of ESXi you attempt to export to ISO. I had posted https://williamlam.com/2022/11/heads-up-unable-to-open-vib-archive-in-streaming-mode-using-export-es... and have already reported this internally but there's no workaround using PowerCLI at the moment and earlier suggestion is still applicable for the time being if you need to create an ESXi image profile
Nice one, thanks William 👍
I too am facing this exact same issue but only when running on macOS or Linux...working fine for me with Windows 11...
```TerminatingError(Export-EsxImageProfile): "[PEM: NO_START_LINE] no start line (_ssl.c:2570)"```
I found a workaround for at least MacOS, may work on other platforms.
Append a '-NoSignatureCheck' to the end of the Export-EsxImageProfile like so. It worked for me, hopefully it works for you too.
Export-EsxImageProfile -ImageProfile "Intel NUC 7.0U3i" -ExportToIso -FilePath '/Users/Name/Downloads/IntelNUC_esxi_70u3i.iso' -NoSignatureCheck
I tried using this for ESXi v8.x and kept getting an error "Export-EsxImageProfile: [Errno 54] Connection reset by peer"
To work around this, I Uninstalled v13 of the module and installed v12 instead.
Short answer is you need to use Windows to do a custom ISO still.
I met with 1 of the PowerCLI team leads at VMware Explore US 2023. They admitted that they found an issue with using other OSs to make Custom ISOs and that they would be releasing a new version of PowerCLI that has the fix in it. If you have API support, file a case. Apparently they have a beta fix out already, but have not done this yet.
I have been holding out for the update that should be out anytime now.