nerdexam
Broadcom-VMware

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.

Section 5 – Administer and Protect vSphere 6.x Resources

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)
  • A
    84% (32)
  • B
    8% (3)
  • C
    3% (1)
  • D
    5% (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.

AAdd the full file path to the command.Correct

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.

BUse the update option instead of install.

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.

CUse the switch -d instead of -v.

-d is the correct flag for specifying a depot source in esxcli software vib commands; there is no -v flag that serves this purpose.

DReplace esxcli with esxupdate.

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

#esxcli software vib#file path syntax#offline bundle#patching error

Community Discussion

No community discussion yet for this question.

Full 2V0-621 Practice