EntreRock
Contributor
Contributor

Can't apply vmware update thru ssh session

I'm trying to apply a VMWare update thru a putty session into VMWare.  I have the correct zip file.  Whenever I try to apply the esxcli command, it says it can't find directory.  I've tried the label "datastore1" and it's UUID.  See output here:

[root@localhost:/vmfs] cd ..
[root@localhost:~] cd vmfs
[root@localhost:/vmfs] cd volumes
[root@localhost:/vmfs/volumes] cd datastore1
[root@localhost:/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4] ls -l
total 412696
drwxr-xr-x 1 root root 280 Feb 5 03:07 ESXi
-rw------- 1 root root 422163356 Feb 5 01:31 ESXi600-202002001.zip
drwxr-xr-x 1 root root 1820 Aug 8 2019 StonesSplunk
drwxr-xr-x 1 root root 420 Nov 8 2017 iso
[root@localhost:/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4] cd \
>
[root@localhost:~] esxcli software vib install -d /vmfs/volumes/datastore1/ESXi6
70-201901001.zip
[MetadataDownloadError]
Could not download from depot at zip:/vmfs/volumes/datastore1/ESXi670-201901001.zip?index.xml, skipping (('zip:/vmfs/volumes/datastore1/ESXi670-201901001.zip?index.xml', '', "Error extracting index.xml from /vmfs/volumes/datastore1/ESXi670-201901001.zip: [Errno 2] No such file or directory: '/vmfs/volumes/datastore1/ESXi670-201901001.zip'"))
url = zip:/vmfs/volumes/datastore1/ESXi670-201901001.zip?index.xml
Please refer to the log file for more details.
[root@localhost:~] esxcli software vib install -d /vmfs/volumes/55de20ea-a797c55
a-dd11-3ca82a20ccc4/ESXi670-201901001.zip
[MetadataDownloadError]
Could not download from depot at zip:/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4/ESXi670-201901001.zip?index.xml, skipping (('zip:/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4/ESXi670-201901001.zip?index.xml', '', "Error extracting index.xml from /vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4/ESXi670-201901001.zip: [Errno 2] No such file or directory: '/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4/ESXi670-201901001.zip'"))
url = zip:/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4/ESXi670-201901001.zip?index.xml
Please refer to the log file for more details.
[root@localhost:~] esxcli storage filesystem list
Mount Point Volume Name UUID Mounted Type Size Free
------------------------------------------------- ----------- ----------------------------------- ------- ------ ------------ ------------
/vmfs/volumes/55de20ea-a797c55a-dd11-3ca82a20ccc4 datastore1 55de20ea-a797c55a-dd11-3ca82a20ccc4 true VMFS-5 891742584832 611047178240
/vmfs/volumes/55de20e3-ee5db811-847a-3ca82a20ccc4 55de20e3-ee5db811-847a-3ca82a20ccc4 true vfat 299712512 83451904
/vmfs/volumes/13b9647f-215907fd-ee59-f6e9dc99f4c7 13b9647f-215907fd-ee59-f6e9dc99f4c7 true vfat 261853184 71553024
/vmfs/volumes/55de20ea-c44ea484-f6ce-3ca82a20ccc4 55de20ea-c44ea484-f6ce-3ca82a20ccc4 true vfat 4293591040 4266131456
/vmfs/volumes/49653c7e-ea09427c-13a4-8ab2c28b4bc9 49653c7e-ea09427c-13a4-8ab2c28b4bc9 true vfat 261853184 261844992
[root@localhost:~]

moderator edit by wila: Moved to ESXi discussions forum

0 Kudos
1 Reply
e_espinel
Commander
Commander

Hello.
You don't see the ESXi670-201901001.zip in the patch-directory you show at the beginning of your post, you only see the ESXi600-202002001.zip.

Just in case you get the zip file from the official VMware site and try again.
https://my.vmware.com/group/vmware/patch#search

Download the ZIP file and upload it to a datastore (via VMware vSphere client or via WinSCP)

Remember to shut down or move all VMs on the ESXi host, then put the ESXi host in maintenance mode, login via SSH and apply the patch you previously loaded on the ESXi host.

 

Enrique Espinel
Senior Technical Support IBM, Lenovo and VMware vSphere.
VMware VSP-SV, VTSP-SV, VTSP-HCI
VMware VTSP 4, VTSP 5.
Please mark my comment as the Correct Answer/Kudos if this solution resolved your problem Thank you.
Пожалуйста, отметьте мой комментарий как "Правильный ответ или пометьте Кудо ", если он решил вашу проблему. Спасибо.
0 Kudos