VSphere machine wont start: Insufficient disk space on datastore

datastorevirtualizationvmware-esxivmware-vsphere

I am trying to add a virtual disk using a VMFS datastore with 1.98 TB of capacity and 85 GB used. I then power on the virtual machine, and it gives me the Insufficient disk space on datastore error. And so I removed the newly created disk and try to power on and it gives me the same error! I don't want to panic but I need some good advice on how to fix this and why this is happening…

Here is the configuration:

Datastore: vmfs_temp
Virtual Machine Properties - Options tab
Config file: [vmfs_temp] VM-ASSS16-INT-SQL2K8R2-1/VM-ASSS16-INT-SQL2K8R2-1.vmx
working location: [vmfs_temp] VM-ASSS16-INT-SQL2K8R2-1/
swapfile location: default

EDIT: screenshot showing disk sizes
enter image description here

Best Answer

Take a look at all of the datastores visible to the host (in vSphere, select the host > Configuration tab > Storage). Are any of the datastores full or very close to it? The swap file may be located on a full datastore even if the VM is on another datastore and if the host cannot create the swap file, the VM will not boot.

EDIT: Right-click the VM and go to Edit Settings > Options tab > Swapfile location. Select one of the other options ("Always store with the virtual machine" is recommended and will probably work for you since that datastore has a lot of free space). As far as cleaning up that datastore, you can right-click it and Browse and poke around to see what kind of files are taking up the space. It may be likely that your host is configured to use a different datastore for all VMs by default and it is just taken up by swap files at this point.

To change the default swapfile location for the host select the host, click the Configuration tab and Virtual Machine Swapfile Location.