[GH-ISSUE #54] Unable to open VIB archive in streaming mode #34

Closed
opened 2026-02-28 02:14:22 +03:00 by kerem · 7 comments
Owner

Originally created by @mrpressIdent on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/VFrontDe-Org/ESXi-Customizer-PS/issues/54

Hi,

I have installed PowerCLI 13 and wanted to create the ESXi8 ISO. When adding a VIB for ESXi8 it first says it is "ok". And then at the end it gives the error message:
('vib20/qlnativefc/MVL_bootbank_qlnativefc_5.4.80.0-1OEM.800.1.0.20143090.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'")

Any Ideas?

Originally created by @mrpressIdent on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/VFrontDe-Org/ESXi-Customizer-PS/issues/54 Hi, I have installed PowerCLI 13 and wanted to create the ESXi8 ISO. When adding a VIB for ESXi8 it first says it is "ok". And then at the end it gives the error message: ('vib20/qlnativefc/MVL_bootbank_qlnativefc_5.4.80.0-1OEM.800.1.0.20143090.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'") Any Ideas?
kerem closed this issue 2026-02-28 02:14:22 +03:00
Author
Owner

@fvlaicu commented on GitHub (Nov 25, 2022):

Same here:

An unexpected error occurred:
Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'").
Full log
**********************
Windows PowerShell transcript start
Start time: 20221125134551
Username: DESKTOP-148I57N\user
RunAs User: DESKTOP-148I57N\user
Configuration Name: 
Machine: DESKTOP-148I57N (Microsoft Windows NT 10.0.19045.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 8544
PSVersion: 5.1.19041.1682
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.1682
BuildVersion: 10.0.19041.1682
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
          Welcome to VMware PowerCLI!

Log in to a vCenter Server or ESX host:
Connect-VIServer
To find out what commands are available, type:
Get-VICommand
To show searchable help for all PowerCLI commands:
Get-PowerCLIHelp
Once you've connected, display all virtual machines:
Get-VM
If you need more help, visit the PowerCLI community:
Get-PowerCLICommunity

       Copyright (C) VMware, Inc. All rights reserved.



Running with PowerShell version 5.1 and VMware PowerCLI version 13.0.0 build 20829139

Connecting the VMware ESXi Software depot ...
 [OK]

Getting Imageprofiles, please wait ...
WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.
 [OK]

Using Imageprofile ESXi-8.0.0-20513097-standard ...
(Dated 09/23/2022 18:59:28, AcceptanceLevel: PartnerSupported,
The general availability release of VMware ESXi Server 8.0.0 brings whole new levels of virtualization performance to datacenters and enterprises.)

Loading Offline bundles and VIB files from C:\Users\user\Desktop\esxi-customizer\esxi80-drivers\ ...
   Loading C:\Users\user\Desktop\esxi-customizer\esxi80-drivers\ESXi800-VMKUSB-NIC-FLING-61054763-component-20826251.zip ...
 [OK]
      Add VIB vmkusb-nic-fling 1.11-1vmw.800.1.20.61054763
 [OK, added]

Exporting the Imageprofile to 'C:\Users\user\Desktop\esxi-customizer\ESXi-8.0.0-20513097-standard-customized.iso'. Please be patient ...

PS>TerminatingError(Export-EsxImageProfile): "Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'")."
>> TerminatingError(Export-EsxImageProfile): "Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'")."


An unexpected error occurred:
Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'").

If requesting support please be sure to include the log file
   C:\Users\user\AppData\Local\Temp\ESXi-Customizer-PS-8544.log
**********************
Windows PowerShell transcript end
End time: 20221125135041
**********************
<!-- gh-comment-id:1327903105 --> @fvlaicu commented on GitHub (Nov 25, 2022): Same here: ``` An unexpected error occurred: Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'"). ``` <details> <summary> Full log</summary> ``` ********************** Windows PowerShell transcript start Start time: 20221125134551 Username: DESKTOP-148I57N\user RunAs User: DESKTOP-148I57N\user Configuration Name: Machine: DESKTOP-148I57N (Microsoft Windows NT 10.0.19045.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Process ID: 8544 PSVersion: 5.1.19041.1682 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.1682 BuildVersion: 10.0.19041.1682 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Welcome to VMware PowerCLI! Log in to a vCenter Server or ESX host: Connect-VIServer To find out what commands are available, type: Get-VICommand To show searchable help for all PowerCLI commands: Get-PowerCLIHelp Once you've connected, display all virtual machines: Get-VM If you need more help, visit the PowerCLI community: Get-PowerCLICommunity Copyright (C) VMware, Inc. All rights reserved. Running with PowerShell version 5.1 and VMware PowerCLI version 13.0.0 build 20829139 Connecting the VMware ESXi Software depot ... [OK] Getting Imageprofiles, please wait ... WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead. [OK] Using Imageprofile ESXi-8.0.0-20513097-standard ... (Dated 09/23/2022 18:59:28, AcceptanceLevel: PartnerSupported, The general availability release of VMware ESXi Server 8.0.0 brings whole new levels of virtualization performance to datacenters and enterprises.) Loading Offline bundles and VIB files from C:\Users\user\Desktop\esxi-customizer\esxi80-drivers\ ... Loading C:\Users\user\Desktop\esxi-customizer\esxi80-drivers\ESXi800-VMKUSB-NIC-FLING-61054763-component-20826251.zip ... [OK] Add VIB vmkusb-nic-fling 1.11-1vmw.800.1.20.61054763 [OK, added] Exporting the Imageprofile to 'C:\Users\user\Desktop\esxi-customizer\ESXi-8.0.0-20513097-standard-customized.iso'. Please be patient ... PS>TerminatingError(Export-EsxImageProfile): "Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'")." >> TerminatingError(Export-EsxImageProfile): "Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'")." An unexpected error occurred: Error retrieving file for VIB 'VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763': ('vib20/vmkusb-nic-fling/VMW_bootbank_vmkusb-nic-fling_1.11-1vmw.800.1.20.61054763.vib', "Unable to open VIB archive in streaming mode: '_SharedFile' object has no attribute 'writing'"). If requesting support please be sure to include the log file C:\Users\user\AppData\Local\Temp\ESXi-Customizer-PS-8544.log ********************** Windows PowerShell transcript end End time: 20221125135041 ********************** ``` </details>
Author
Owner

@kerakcz commented on GitHub (Nov 25, 2022):

Try downgrading the VMware.PowerCLI because that helped me. Use offline packages (I used this guide and 12.3.0 version).

I tried Install-Module -Name VMware.PowerCLI -RequiredVersion 12.3.0.17860403 but that did not help because the latest version is used for all dependencies and they need to be downgraded too.

<!-- gh-comment-id:1327922379 --> @kerakcz commented on GitHub (Nov 25, 2022): Try downgrading the VMware.PowerCLI because that helped me. Use offline packages ([I used this guide](https://vdc-repo.vmware.com/vmwb-repository/dcr-public/9619cb6d-3975-4bff-aa1f-0e785283a1a9/17c43dcb-fcc9-40e9-a9da-f22797ccaa33/GUID-3034A439-E9D7-4743-ABC0-EE38610E15F8.html) and 12.3.0 version). I tried `Install-Module -Name VMware.PowerCLI -RequiredVersion 12.3.0.17860403` but that did not help because the latest version is used for all dependencies and they need to be downgraded too.
Author
Owner

@fvlaicu commented on GitHub (Nov 30, 2022):

Try downgrading the VMware.PowerCLI because that helped me. Use offline packages (I used this guide and 12.3.0 version).

I tried Install-Module -Name VMware.PowerCLI -RequiredVersion 12.3.0.17860403 but that did not help because the latest version is used for all dependencies and they need to be downgraded too.

trying to build an iso for esxi 8.0 - so i need version 13.

<!-- gh-comment-id:1331784280 --> @fvlaicu commented on GitHub (Nov 30, 2022): > Try downgrading the VMware.PowerCLI because that helped me. Use offline packages ([I used this guide](https://vdc-repo.vmware.com/vmwb-repository/dcr-public/9619cb6d-3975-4bff-aa1f-0e785283a1a9/17c43dcb-fcc9-40e9-a9da-f22797ccaa33/GUID-3034A439-E9D7-4743-ABC0-EE38610E15F8.html) and 12.3.0 version). > > I tried `Install-Module -Name VMware.PowerCLI -RequiredVersion 12.3.0.17860403` but that did not help because the latest version is used for all dependencies and they need to be downgraded too. trying to build an iso for esxi 8.0 - so i need version 13.
Author
Owner

@fvlaicu commented on GitHub (Dec 1, 2022):

Seems this is an upstream problem, not script issue:
https://williamlam.com/2022/11/heads-up-unable-to-open-vib-archive-in-streaming-mode-using-export-esximageprofile-with-powercli-13-0.html

<!-- gh-comment-id:1334549311 --> @fvlaicu commented on GitHub (Dec 1, 2022): Seems this is an upstream problem, not script issue: https://williamlam.com/2022/11/heads-up-unable-to-open-vib-archive-in-streaming-mode-using-export-esximageprofile-with-powercli-13-0.html
Author
Owner

@virtualex-itv commented on GitHub (Dec 7, 2022):

@mrpressIdent - This is a known bug and has been filed internally with the product management team. Currently, there is no workaround so please be patient as we need VMware to fix this...it's not an issue with the script itself.

See here for more info...

<!-- gh-comment-id:1341414803 --> @virtualex-itv commented on GitHub (Dec 7, 2022): @mrpressIdent - This is a known bug and has been filed internally with the product management team. Currently, there is no workaround so please be patient as we need VMware to fix this...it's not an issue with the script itself. See [here](https://williamlam.com/2022/11/heads-up-unable-to-open-vib-archive-in-streaming-mode-using-export-esximageprofile-with-powercli-13-0.html) for more info...
Author
Owner
<!-- gh-comment-id:1406737292 --> @fvlaicu commented on GitHub (Jan 27, 2023): There's a solution, upgrade to python 3.7.9 see: https://williamlam.com/2022/11/heads-up-unable-to-open-vib-archive-in-streaming-mode-using-export-esximageprofile-with-powercli-13-0.html#comment-67215
Author
Owner

@mrpressIdent commented on GitHub (Jan 30, 2023):

@fvlaicu Thanks for the link. I didn't check the comment section. I can confirm, that python 3.7.9 fixed the issue on my side.

<!-- gh-comment-id:1408183500 --> @mrpressIdent commented on GitHub (Jan 30, 2023): @fvlaicu Thanks for the link. I didn't check the comment section. I can confirm, that python 3.7.9 fixed the issue on my side.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ESXi-Customizer-PS#34
No description provided.