2V0-621 · Question #157
Attempting to update an ESXi 6.x host using the following command: esxcli software vib update -d update.zip Generates the following error: Could not download from depot at /tmp/index.xml, skipping…
The correct answer is A. Add the full file path to the command. The esxcli vib update command fails because a relative filename was provided instead of a full absolute path to the depot zip file.
Question
Attempting to update an ESXi 6.x host using the following command:
esxcli software vib update -d update.zip Generates the following error:
Could not download from depot at /tmp/index.xml, skipping (('/tmp/index.xml', '', "[Errno 4] IOError: <urlopen error [Errno 2] No such file or directory: '/tmp/index.xml'>")) url = /tmp/index.xml What action should be taken to correct the problem?
Options
- AAdd the full file path to the command.
- BUse the update option instead of install.
- CUse the switch -d instead of -v.
- DReplace esxcli with esxupdate.
How the community answered
(38 responses)- A84% (32)
- B8% (3)
- C3% (1)
- D5% (2)
Why each option
The esxcli vib update command fails because a relative filename was provided instead of a full absolute path to the depot zip file.
The error shows the tool is trying to read an index.xml from /tmp rather than from inside the zip, meaning esxcli cannot resolve the depot because no absolute path was given. Providing the full path (e.g., /vmfs/volumes/datastore/update.zip) allows esxcli to correctly locate and expand the depot metadata.
The 'update' option is syntactically valid and appropriate for updating vibs - changing to 'install' would force-reinstall vibs but would not fix the path resolution failure.
-d is the correct flag for specifying a depot source in esxcli software vib commands; there is no -v flag that serves this purpose.
esxupdate is a legacy utility that does not resolve the path issue, and the esxcli command structure itself is correct - only the incomplete file path is at fault.
Concept tested: esxcli software vib update depot absolute path syntax
Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.esxi.upgrade.doc/GUID-E51C5DB6-F28C-43EF-BE44-3C7BD2DB3B92.html
Topics
Community Discussion
No community discussion yet for this question.