nerdexam
Broadcom-VMware

2V0-622 · 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 command requires a fully qualified absolute path to the depot zip file, not a relative filename. Without the full path, the tool cannot locate the index.xml inside the archive.

Section 4 – Upgrade vSphere 6.x to vSphere 6.5

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

(63 responses)
  • A
    84% (53)
  • B
    10% (6)
  • C
    2% (1)
  • D
    5% (3)

Why each option

The esxcli command requires a fully qualified absolute path to the depot zip file, not a relative filename. Without the full path, the tool cannot locate the index.xml inside the archive.

AAdd the full file path to the command.Correct

The esxcli software vib update -d flag expects an absolute path such as /tmp/update.zip. When only a bare filename is supplied, the tool attempts to resolve it as a URL and fails to find /tmp/index.xml because the working directory is not /tmp. Providing the full path like -d /tmp/update.zip resolves the IOError immediately.

BUse the update option instead of install.

The 'update' option is already correct for applying VIBs from a bundle; switching to 'install' would not fix a path resolution error.

CUse the switch -d instead of -v.

The -d switch is already present and correct for specifying a depot bundle; there is no -v switch that would resolve the missing file error.

DReplace esxcli with esxupdate.

esxupdate is an older, deprecated tool and switching to it does not address the root cause of an incorrect file path supplied to the depot flag.

Concept tested: esxcli software vib depot absolute path requirement

Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.esxi.upgrade.doc/GUID-4DC83D64-C847-4F80-8C50-E9AF697428B9.html

Topics

#esxcli software vib update#file path syntax#offline bundle#command syntax error

Community Discussion

No community discussion yet for this question.

Full 2V0-622 Practice