Four ways to upload files to VMware vSphere datastore
Uploading files whether it be ISO’s, VMX config files, or VMDKs is a necessary task for most VMware administrators in various situations. When looking to upload files to your VMware vSphere environment, there are multiple ways to skin a cat as they say. However, let’s take a look at Four ways to upload files to VMware vSphere datastore.
Four Ways to upload files to VMware vSphere datastore
There are a variety of ways to upload files. ย In this quick post we will take a look at uploading via ESXi host, vCenter Server web client, WinSCP connected to the host, and lastly vSphere Windows client connected directly to the ESXi host.
ESXi host
The first way we want to look at is by connecting to the web interface of the ESXi host itself. ย Below, I have connected to an ESXi 6.5a host by simply navigating to https://<esxi host IP>/
After logging into your ESXi host, you can click onย Storage and then over in the right hand pane, you will seeย Datastore browser. ย Click theย Datastore browser button.
This will open a new window for the Datastore browser. ย Notice theย Upload button. ย Click the Upload button to browse to the file you want to upload. ย Note, whatever folder context you are in is where the file will be uploaded.
vCenter Server
Uploading files to your VMware vSphere datastore via vCenter Server is very straightforward and similar to the ESXi host connection. ย You can click on your datastores tab, then right click the datastore you want to upload to. ย Notice you have the context menu pop up where you can selectย Browse Files.
When you click theย Browse Files option, you will see your datastore and a button on the upper right hand side that is fairly intuitive (datastore symbol with a green arrow pointing up). ย Click this button and you will be able to select the file you want to upload. ย Again, the folder context you are currently in determines where the file will be uploaded.
WinSCP
For this option, you can use any SSH client of your choosing. ย Here, I am using WinSCP. ย Also, important to note with this method, you need to have enabled SSH on the ESXi host you want to connect to. ย After doing that, simply choose SCP, enter the IP or hostname of your host, port 22, and your user name and password which by default would be root.
Once you have connected, simply navigate toย /vmfs/volumes and you will see a symlink to your datastore. ย Simply drill into the datastore folder. After you have done that, you can drag and drop files to your datastore or sub folder.
vSphere Windows Client
Even though the Windows Client is no longer supported with vSphere 6.5, you CAN still connect to an ESXi 6.5 host, just not vCenter Server. ย I wanted to show this asย it is still a viable option for uploading files to a VMware vSphere datastore.
Click your host, then underย Storage, righ click your datastore and chooseย Browse Datastore.
This will take you to aย Datastore Browser window where you have the option to upload files, etc.
Thoughts
In this postย Four ways to upload files to VMware vSphere datastore we took a look at four ways to upload files. ย This doesn’t encapsulate all the methods as there are numerous ways even via the commandline. ย However, I think the four mentioned above are most likely the methods that most will use in uploading and managing files in their datastores.