“Swap datastore is unset” warning on Vmware

When you get Swap datastore is unset warning you need to follow steps below to solve this :

1swapfileunset1

In the vSphere Client, select the host in the inventory. and  Click the Configuration tab. and then Click the Virtual Machine Swap file Location link and click Edit(As you see No datastore specified for swap file):

2swapfileunset1

Select datastore which you want to store swap file and click OK:

3swapfileunset1

Finnally you will see that your warning gone:

4swapfileunset1