VMWare Error message

Symptoms
•      Cannot power on a virtual machine
•      Powering on a virtual machine fails
•      You see the error:

An unexpected error was received from the ESX host while powering on VM <VM name>.
Could not power on VM : Reason
Failed to power on VM.
Failed to extend swap file from 0 KB to size KB.
nellie5713Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Check your datastore has storage space?

Is the datastore full?
0
nellie5713Author Commented:
Capacity                 Provisioned                Free
[datastore1]      131.00 GB               971.00 MB                130.05 GB

[VMDatastore]    3.64 TB                       5.4 TB                    5.86 GB
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

nellie5713Author Commented:
Thanks NRhode

I read the URLs below.  They give a workaround to the problem.  I need to find the cause of the problem.

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

Resolution or Solution to try:  http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004082
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Is the VM located on datastore1, it only has 971MB left!
0
Nick RhodeIT DirectorCommented:
Is it on datastore 1 or VM datastore?

Datastore 1 is pretty low on space
0
nellie5713Author Commented:
Text got shifted during the post.  The actual amounts are below:

[datastore1]
Capacity 131 GB
Provisioned 971.00MB
Free 130.05 GB

[VMDatastore]

Capacity 3.64TB
Provisioned 5.4TB
Free 5.86 GB

It is still low but for now the servers are still running after deleting a few snapshots.   The VMDatastore has all of the database, snapshot, logfiles and swap data.
0
Nick RhodeIT DirectorCommented:
You could try the workaround just to see if that alleviates the issue this way we can target the datastore, VM, or host in general etc.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Is this just a single VM with issues?
0
nellie5713Author Commented:
There is one physical host and 2 VMware servers.  Only one VMware server is having an issue.

For now deleting  a few snapshots have alleviated the issue.   There also seems to be to many vmdk files that have been generated.  Which could be a part of the problem.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You do not have enough storage space for the swap file to be created.

When a VM is powered on, a swap file is created equal to memory in that host.

e.g. if you have a VM with 16GB allocated, 16GB will need to be created on the datastore, if the VM will not power up.

datastore storage issue, as highlighted earlier.
0
nellie5713Author Commented:
Okay,  I will leave this ticket and try the work around.  I am not sure how long the work around will work, since it isn't the solution but just a work around.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Your issue is over subscribed data store.

Move swap file to new data store with more storage

Move VMs to new datastore

Increase data store space
0
Paul SolovyovskySenior IT AdvisorCommented:
I agree with hancoccka, the memory of your machine is equal to the swap file if memory is pooled which means that if you have 4GB ram you don't have space to put a 4GB swap file with only 1GB or storage available.
0
nellie5713Author Commented:
So if I have 6 gig of memory then I should be able to move the swap file to datastore1  which has a little over 130gb then there will be plenty of space for the swap file, correct?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
That's correct.

or ensure, you always have SWAP space and virtual disk space free on the datastore.

SWAP space is only used when VM is on!
0
nellie5713Author Commented:
Okay,
I spoke with Dell Computers  virtualization team and this is what they discovered:  I had taken several snapshots over the months which had taken up most of the space.  We deleted the snapshots and recovered the space that they had taken up.  The space went from 5.86 gb to almost 200gb.  Problem resolved.  From now on I will delete snapshots one week after they are taken to eliminate the swap file not having enough space.
0
nellie5713Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for nellie5713's comment #a39524330

for the following reason:

Obtained assistance from Dell's virtualization team and they resolved the issue.  Dell had an simpler solution than changing or editing the path of where the swap file is saved.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
A number of Experts have responded with the issue is your datastore is full!

and the SWAP file either needed moving or you needed to increase space on the datastore.
0
Paul SolovyovskySenior IT AdvisorCommented:
The snapshot don't take extra space as deleting the snapshots consolidates the VMDKs and doesn't "delete" them

@hancoccka is correct, multiple experts have provided root cause analysis and clearly identified your issue.  If Dell helped you move the swap file that is good not giving out points for a correct answer is not fair.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nellie5713Author Commented:
Sorry.  Didn't mean to step on any toes.  Snapshots were deleted and consolidated.  We did not move any swap files.  I am just happy that the problem has been resolved.  I didn't try your recommendations.  Who knows, I may have to try them in the future.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.