Comments (4)
After debugging, the problem is that the value of "version" in a spec JSON file is String rather than set. In other words, using a bundle containing multiple versions such as VMware ESXi 7.0U3d ("7.0.3-0.35.19482537", "7.0.3-0.30.19482531") will encounter an error owing to invalid data type.
Workaround method:
- Execute "create_custom_esxi_iso.ps1". It ends with errors.
- Modify spec JSON file. Select a version in this file, and make sure the type of "version" is String.
Example:
{ "base_image": { "version": "7.0.3-0.35.19482537" }, "components": { "Net-Community-Driver": "1.2.7.0-1vmw.700.1.0.15843807" } }
- Comment the following codes in "create_custom_esxi_iso.ps1" to disable spec JSON file auto-generation.
- Execute "create_custom_esxi_iso.ps1" again, a custom ISO file will be successfully generated.
from vmware-scripts.
I think replacing
$ESXIBaseImageVersion = (Get-DepotBaseImages -Depot $ESXIBaseImagePath).Version
with
$ESXIBaseImageVersion = (Get-DepotBaseImages -Depot $ESXIBaseImagePath).Version | select -first 1
might be sufficient?
Update: I see somebody else created already a pull request for this issue...
from vmware-scripts.
Hello everyone,
i used the script and modified the multiple versions error above to be single one as a string under "VMware-ESXi-7.0U3f-20036589-depot.zip" the latest one right now..
but another error message appears:
( New-IsoImage : For "msg" expected type str, but got tuple )
any help guys..
appreciated.
from vmware-scripts.
@lamw @jellybean13 @jthat @frank1119
from vmware-scripts.
Related Issues (20)
- make_vcsp_2018 run only for new or specific images
- make_vcsp_2018.py UnboundLocalError: local variable
- Does this script also work with VMware 6.0 or 6.5 ? HOT 1
- Comment conflicts with Action
- Get GlobalPermissions HOT 1
- Get-GlobalPermissions
- Get-GlobalPermission
- vCenterAdvSettingMgmt.pl only works with strings HOT 1
- deploy_3nic_haproxy.ps1 - This cmdlet requires a vCenter Server connection. HOT 1
- xNew-VM does not accommodate NSX-T Opaque Networks in the destination vCenter
- vmwarevSphereHealthCheck.pl not working with 7.0.3 HOT 1
- make_vcsp_2022.py: vCenter expect an integer/long for the etag HOT 2
- make_vcsp_2022.py - vCloud not wanting to sync ISO's
- vmdkManagement.pl fail to share the disk
- Make MacLearn.ps1 into a module HOT 2
- make_vcsp_2018 : Adding S3 onprem HOT 2
- Cannot connect to Vcenter Error: Cannot complete login due to an incorrect user name or password.
- TKG+NSXT automation script fails on the VM strokes with error: "Put USB HID scan codes"
- Server version unavailable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmware-scripts.