vSphere 6.5

Managing Datastore Files in VMware vSphere 6.5

One of the basic, daily administration tasks for any VMware administrator is managing files in the vSphere environment. With the move to vSphere 6.5, how are file management tasks affected versus previous versions of vSphere? What about during the cohabitation phase where you may have a VMware VCSA 6.5 appliance managing vSphere ESXi 6.0 hosts? What are some considerations? Let’s take a look at Managing datastore files in VMware vSphere 6.5.

Managing datastore files in VMware vSphere 6.5

Managing files in VMware vSphere 6.5 officially kills support for the Windows vSphere client as now you can no longer connect to vSphere vCenter 6.5 with the vSphere client. However, you can manage files in either the old flash based vSphere web client or the new HTML 5 UI web based interface. Of course the HTML 5 UI is the interface we have all been waiting for to be able to use for daily administration tasks. As of Update 1, this is now a viable option.

Browser Errors with File Management

With the web centric only nature to manage files with vSphere 6.5, I have seen some quirkiness with file management. Many errors you will encounter relating to downloading or uploading files to a datastore using the vsphere web client or the HTML5 UI client will relate to SSL certificate errors presented in the browser.  For instance, I ran a quick test of downloading a file from a datastore using the HTML 5 UI and quickly encountered an error.

Error-downloading-file-from-datastore-vSphere-6.5
Error downloading file from datastore vSphere 6.5

In clicking on the Details link in the error, vCenter quickly tells me that an SSL error most likely is to blame.

Certificate-Error-noted-as-cause-of-issue-downloading-file
Certificate Error noted as cause of issue downloading file

As a quick test, as it notes, simply try to browse out to the ESXi host listed in the box above.  As expected, I get certificate errors for both hosts in the cluster – 192.168.85.10 and 192.168.85.20.

Browser-certificate-error
Browser certificate error

After accepting the certificate, I attempted to download the file again – much better results!

After-accepting-SSL-certificate-was-able-to-successfully-download-the-file
After accepting SSL certificate was able to successfully download the file

Bypass vCenter in Uploading or Downloading files

Additionally, you can go straight to a particular host if you want to upload or download a file from a datastore.  If it is a VMware ESXi 6.5 host, you can connect to the local host client. Just browse to the host in a browser.  If you click on Storage you will see the Datastore browser link.

Connect-directly-to-vSphere-ESXi-6.5-host
Connect directly to vSphere ESXi 6.5 host

We get the very similar interface to manage files as we do in vCenter to manage datastore files.

ESXi-6.5-host-datastore-browser
ESXi 6.5 host datastore browser

Legacy VMware ESXi hosts

If you have legacy VMware ESXi hosts such as VMware ESXi 6.0 hosts that are managed by a VMware vSphere vCenter 6.5 server, you can still connect directly to those hosts with the Windows vSphere Client if you want and manage datastore files.  If you have downlevel hosts, this can be helpful in a pinch if you are needing connectivity and don’t have time to troubleshoot browser issues.

Utilize PowerCLI for file management

PowerCLI is a VMware administrator’s friend in so many ways!  File management is no exception.  We can copy and download files to a datastore very easily using PowerCLI.

$datastore = get-datastore <your datastore>
copy-datastoreitem C:<path to your iso> $datastore.datastorebrowserpath -Recurse
Copy-file-to-datastore-PowerCLI
Copy file to datastore PowerCLI

Thoughts

A few takeaways with managing datastore files in VMware vSphere 6.5.  We are now much more browser centric in the management of files in vSphere 6.5.  While the web client has been around for quite some time now with vSphere vCenter server, with vSphere 6.5, it is the first version that has killed connectivity from the Windows vSphere client.  With that being said, there can be some browser related quirckiness that can happen with SSL certificates.  If you run into an issue with uploading or downloading files, often this has to do with a certificate error in the backend.  Additionally, with 6.5 we still have a wide array of ways of managing datastore files in VMware vSphere 6.5 including PowerCLI.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.