vSphere machine wont start: Insufficient disk space on datastore

35,270

Solution 1

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.

Solution 2

How big is the virtual disk and what is the block size of the datastore? The size of the virtual disk may exceed the allowable size as predicated by the datastore block size.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003565

Solution 3

Are there any files of the VM stored on other data stores? How full are they? Log into the host and check to see how full the other partitions of the hard drive are.

Share:
35,270

Related videos on Youtube

JFB
Author by

JFB

Full Stack C# .NET / Typescript / Javascript Web Developer Microsoft MCSD Web Applications certified developer Interested in modern web technologies such as: .NET Framework 4.7.2 C# 8.0 ASP.NET Core 3.1 ASP.NET MVC 5 Entity Framework 7 SQL Server 2016 RESTful Web Services WCF Services (SoA) jQuery React Angular AngularJS Bootstrap SignalR

Updated on September 18, 2022

Comments

  • JFB
    JFB over 1 year

    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

  • JFB
    JFB over 12 years
    No, using the vSphere client, I can see that all 9 drives in total are on the same VMFS datastore
  • Ryan Ferretti
    Ryan Ferretti over 12 years
    Log into the host via ssh and check if the other partitions are full. A full log drive can cause all sorts of problems including VMs not booting.
  • JFB
    JFB over 12 years
    I do not follow, the host being...? you mean vSphere? With all the virtual machines?
  • JFB
    JFB over 12 years
    Please see the edit above. The .vmx is on the same datastore
  • JFB
    JFB over 12 years
    I have added an edit to show the used space
  • joeqwerty
    joeqwerty over 12 years
    What I mean is that if the size of the virtual disk that you're trying to add is larger than what the block size of the host datastore supports, that might be causing the error.
  • JFB
    JFB over 12 years
    Allright! I have left the swapfile location to Default for the Virtual Machine but I have changed the host's default swapfile location to another Datastore, and voilà! The machine starts! Thanks.