VMware Cloud Community
Matheresa
Contributor
Contributor

Cannot add VMware base offline bundle?

what does this mean? im new here,  im a student doing a practicum  and i was told to creatye an ESXi-Customizer, when i was trying to do the guide step by step video by alex lopez it gives me this error:

PS C:\Users\Theresa\Downloads> .\ESXi-Customizer-PS-v2.5.1.ps1 -v65 -vft -load net51-r8169,esx-tools-for-esxi-9.7.2,sata

-xahci-1.39,vmmware-esx-dvfilter-maclearn -pkgDir C:\Test\PKG -outDir C:\Users\Theresa\Downloads\update-from-esxi6.5-6.5

_update01 (1) -log C:\Users\Theresa\Downloads\update-from-esxi6.5-6.5_update01 (1) nsc

This is ESXi-Customizer-PS Version 2.5.1 (visit https://ESXi-Customizer-PS.v-front.de for more information!)

(Call with -help for instructions)

Logging to C:\Users\Theresa\Downloads\update-from-esxi6.5-6.5_update01 ...

Running with PowerShell version 5.1 and VMware PowerCLI 6.5.1 build 5377412

Adding base Offline bundle 1 ...Add-EsxSoftwaredepot : Could not download from depot at file:///C:/Users/Theresa/Downloads/1/index.xml, skipping

(('C:\\Users\\Theresa\\Downloads\\1\\index.xml', '', '<urlopen error unknown url type: c>'))

At C:\Users\Theresa\Downloads\ESXi-Customizer-PS-v2.5.1.ps1:238 char:22

+     if ($basedepot = Add-EsxSoftwaredepot $izip) {

+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ReadError: (System.String[]:String[]) [Add-EsxSoftwareDepot], Exception

    + FullyQualifiedErrorId : ConnectDepotError,VMware.ImageBuilder.Commands.AddDepot

FATAL ERROR: Cannot add VMware base Offline bundle!

Please help

Sincerely,

Maria

0 Kudos
8 Replies
LucD
Leadership
Leadership

Did you already try running with the -test option?

Is there anything in the log for the error you are seeing?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

karo101
Contributor
Contributor

Do you have internet connection on server where you try to run?
Make sure that you have correct path to log file ( I see there some spaces and no quotation marks). Also I think on the end should be “-nsc” as it is a script option. Once you will have a proper path to log file, past output from it. 

Matheresa
Contributor
Contributor

Thank you all for the reply, luckily I was able to make it work, 

0 Kudos
ethancyd
Contributor
Contributor

Hi LucD,

I have a similar issue with that I encountered, I have tried the "-test" behind the command too. My objective is to create a custom ESXi v6.5 iso with the network driver loaded to it.

PS >.\ESXi-Customizer-PS-v2.6.0.ps1 v65 -vft -load net-tulip -test

This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)

(Call with -help for instructions)

Logging to C:\Users\echow\AppData\Local\Temp\ESXi-Customizer-PS-6096.log ...

Running with PowerShell version 5.1 and VMware PowerCLI version 11.2.0.12483638

Adding base Offline bundle v65 ...Add-EsxSoftwaredepot : Could not download from depot at file:///C:/Users/echow/Desktop/ESXi-in-HyperV/v65/index.xml, skipping

(('C:\\Users\\echow\\Desktop\\ESXi-in-HyperV\\v65\\index.xml', '', '<urlopen error unknown url type: c>'))

At C:\Users\echow\Desktop\ESXi-in-HyperV\ESXi-Customizer-PS-v2.6.0.ps1:235 char:22

+     if ($basedepot = Add-EsxSoftwaredepot $izip) {

+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ReadError: (System.String[]:String[]) [Add-EsxSoftwareDepot], Exception

    + FullyQualifiedErrorId : ConnectDepotError,VMware.ImageBuilder.Commands.AddDepot

FATAL ERROR: Cannot add VMware base Offline bundle!

Hope to hear from you soon. Thank you.

- Ethan

0 Kudos
LucD
Leadership
Leadership

I'm afraid I'm not a regular user of this tool, so my practical knowledge is limited.
Why don't you contact the author of the tool?
His contact info is mentioned in ESXi-Customizer-PS


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Howard-Park
Contributor
Contributor

I have the same problem, how did you solve it?

Thanks for let me know.

0 Kudos
adielmachado
Contributor
Contributor

Eu estava sofrendo e notei que havia apenas um "dígito" faltando antes da versão pretendida "v55". Revise o script. No meu caso, recebi o mesmo erro com o comando:

.\ESXi-Customizer-PS.ps1 v55 -pkgDir C:\distr\esxi\driver onde deveria estar:.\ESXi-Customizer-PS.ps1 -v55 -pkgDir C:
\distr\esxi\driver

Lembre-se de que o arquivo PS1 deve ter o mesmo nome que o comando e você deve chamá-lo de dentro do diretório onde o script .ps1 do Customizer está localizado.

0 Kudos
adielmachado
Contributor
Contributor

I was suffering and noticed that there was only one "digit" missing before the intended version "v55". Review the script. In my case, I got the same error with the command:

.\ESXi-Customizer-PS.ps1 v55 -pkgDir C:\distr\esxi\driver
where it should be:
.\ESXi-Customizer-PS.ps1 -v55 -pkgDir C:\distr\esxi\driver

Remember that the PS1 file must have the same name as the command, and you must call it from within the directory where the Customizer .ps1 script is located.

0 Kudos