When attempting to download an ISO file from a vSphere Datastore using the Datastore Browser (vSphere Client or ESXi Host Client), the download fails with the following symptoms:
Esxi 7.x
Esxi 8.x
vCenter server 7.x
vCenter server 8.x
ESXi hosts place a lock on ISO files that are currently mounted to a powered-on Virtual Machine as a "Datastore ISO File".
When a file is actively mounted in a Guest OS, an exclusive lock is placed at the ESXi host level. This prevents the NFC (Network File Copy) service from accessing the file to facilitate a download via the web browser, resulting in the Internal Server Error (500).
To resolve this issue, you must identify and release the file lock by disconnecting the ISO from the virtual machine(s).
vmfsfilelockinfo -p /vmfs/volumes/[DatastoreName]/[PathToISO]/[FileName].isoRelated Articles:
Investigating virtual machine file locks on ESXi hosts
VMware Cloud Director Media Download Failure
Similar error for .vmx file download:
Downloading .vmx from the vCenter/vSphere datastore browser fails with HTTP ERROR 500.