VMware Cloud Community
sadiq1435
Enthusiast
Enthusiast
Jump to solution

Failed to extend swap file from 0kb to 8GB

Dears



I get below errors while starting  a VM on the ESXi Server  . Any idea how to resolve this .



Failed to start the virtual machine.

Failed to power on VM.

Could not power on virtual machine: msg.vmk.status.VMK_NO_SPACE.

Current swap file size is 0 KB.

Failed to extend swap file from 0 KB to 8388608 KB.

Current swap file size is 0 KB.

Failed to extend swap file from 0 KB to 8388608 KB

1 Solution

Accepted Solutions
sadiq1435
Enthusiast
Enthusiast
Jump to solution

The issue was resolved by reserving the amount of memory for the VM inside the Settings for Memory .

View solution in original post

7 Replies
rcporto
Leadership
Leadership
Jump to solution

How much free space there is on datastore where virtual machine swap file is located ?

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
sadiq1435
Enthusiast
Enthusiast
Jump to solution

Hi Richard

There is still around 100GB of free space in the datastore .

Reply
0 Kudos
ExpletiveDelete
Enthusiast
Enthusiast
Jump to solution

are there any snapshots?

Reply
0 Kudos
sadiq1435
Enthusiast
Enthusiast
Jump to solution

There are no snapshots . This vcenter appliance (8GB)  is installed under ESXi Server (4GB)  which is installed under VMware Workstation 10 ( Nested ) .

Reply
0 Kudos
ExpletiveDelete
Enthusiast
Enthusiast
Jump to solution

Well, the error is telling you that there is no space left on the OS. So you can extend the size of the OS and then try again, or if you're referring to the vSwap file, check to see if its stored with the VM (Default) or if its been moved to another datastore (i.e. the host's swapfile datastore - which could be out of space as well).

Reply
0 Kudos
sadiq1435
Enthusiast
Enthusiast
Jump to solution

The issue was resolved by reserving the amount of memory for the VM inside the Settings for Memory .

SPCSysAdmin
Contributor
Contributor
Jump to solution

Thank you Sadiq1435. This saved me a few hours Smiley Happy

Reply
0 Kudos