Computer >> Computer tutorials >  >> Software >> Virtual machine

VMWare vSphere: Failed to Upload Files to Datastore

I faced a strange problem when trying to copy (upload) any file (ISO, vmdk, OVA/OVF, etc.) to the VMFS Datastore in VMware vSphere (6.7). When I click on the “Upload Files” button in vSphere Client interface, the error “The operation failed” appears.

VMWare vSphere: Failed to Upload Files to Datastore

To get a detailed information about the error, click Details.

There is the following message in the error window:

The operation failed for an undetermined reason.

Typically this problem occurs due to certificates that the browser does not trust. If you are using self-signed or custom certificates, open the URL below in a new browser tab and accept the certificate, then retry the operation.

https:// my-vcenter

If this does not resolve the problem, other possible solutions are shown in this KB article: https://kb.vmware.com/kb/2147256

VMWare vSphere: Failed to Upload Files to Datastore

As you can see from the error, the problem related to the untrusted SSL certificate used on the vCenter server (the certificate is self-signed or issued by an untrusted certificate authority). To solve this problem, you need follow the instructions from in article “SSL Certificate security warning on vSphere”.

In vSphere 6.5 and 6.7, it is not enough to add a vCenter certificate to trusted certificates in your browser. If a self-signed certificate is not added to the Trusted Root Certification Authorities Store on your computer, the vSphere Web Client won’t allow to upload files to the VMFS datastore.

To add a vCenter certificate to the list of trusted certificates, go to vSphere start page and click “Download trusted root CA certificates” in the bottom right corner.

VMWare vSphere: Failed to Upload Files to Datastore

In Downloads go to the ..\certs\win folder (there are separate folders for Windows, Linux and Mac certificates). Double-click the *.crt file and click the Install Certificate button.

VMWare vSphere: Failed to Upload Files to Datastore

Use the Certificate Import Wizard to place your vCenter certificate to the trusted root certificate store on your computer (Local Machine -> Trusted Root Certification Authorities).

VMWare vSphere: Failed to Upload Files to Datastore

Open vCenter web interface and make sure that the untrusted certificate warning doesn’t appear. Now you can upload files to your VMFS datastore.

VMWare vSphere: Failed to Upload Files to Datastore

In Firefox, you need to add the vSphere certificate to trusted (exception) list in your browser settings or switch Firefox to use certificates from the Windows certificate store: about: config -> security.enterprise_roots.enabled = True (otherwise you will see an error “Secure Connection Failed”).

FireFox, unlike other browsers (Chrome, Opera, IE) by default uses its own trusted certificate list.