Symptoms
After upgrading to 7.0.2, user is no longer able to select any datastores on host when configuring VM swap files to be stored in dedicated datastores.Datastores are visible but the option to select them is greyed out.
Cause
It is a HTML5 client-side bug
Impact / Risks
Unable to change the datastore for Swap file location on host.
Resolution
This is a known issue in 7.0.2.The issue is resolved in vCenter Server 7.0 Update 3 (build number 18700403)
Workaround
Put the host in maintenance modeRemove the host from clusterExit from maintenance modeDatastores will be available to select for Swap file locationOnce we select the desired datastore, move the host back in to the Cluster.
Or
We can assign a datastore for swap file location using the below PowerCLI script:
Connect-VIServer vcenter.youdomain.com -
Get-Cluster -Name "Cluster Name" | Get-VMHost | Set-VMHost -VMSwapfileDatastore "DatastoreName"