Cannot power on virtual machine on ESXi 5 host

Hi, my ESXi server lost power, and I can't start a virtual machine. The error is cannot create swap file, file not found.

Usually it is because the swap file is locked by a rougue process, but the file isn't there...

It's urgent....

Thanks!
SekodataAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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:
A swap file is created when a VM is powered ON.

do you have a swap file already in the datastore
0
SekodataAuthor Commented:
No, that's the problem. The virtual machine is off, there is no swap file, and the error is that it cannot be created. There's 650GB free on the disk.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
are all datastores present?
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
check the vmx file, for the correct location of the swap file.
0
SekodataAuthor Commented:
It's the correct path
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
can you upload the latest vmware log file from the virtual machine folder
0
SekodataAuthor Commented:
Something tells me that there's something here...:

log FIFO capture | Msg_Reset:
log FIFO capture | [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/config": No such file or directory.
log FIFO capture | ----------------------------------------
log FIFO capture | PREF Optional preferences file not found at /usr/lib/vmware/config. Using default values.
log FIFO capture | Msg_Reset:
log FIFO capture | [msg.dictionary.load.openFailed] Cannot open file "//.vmware/config": No such file or directory.
log FIFO capture | ----------------------------------------
log FIFO capture | PREF Optional preferences file not found at //.vmware/config. Using default values.
log FIFO capture | Msg_Reset:
log FIFO capture | [msg.dictionary.load.openFailed] Cannot open file "//.vmware/preferences": No such file or directory.
log FIFO capture | ----------------------------------------
log FIFO capture | PREF Failed to load user preferences.
log FIFO capture | Msg_Reset:
log FIFO capture | [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/config": No such file or directory.
log FIFO capture | ----------------------------------------
log FIFO capture | ConfigDB: Failed to load /usr/lib/vmware/config
log FIFO capture | Msg_Reset:
log FIFO capture | [msg.dictionary.load.openFailed] Cannot open file "//.vmware/config": No such file or directory.
log FIFO capture | ----------------------------------------
log FIFO capture | ConfigDB: Failed to load ~/.vmware/config
log FIFO capture | Using system libcrypto, version 90811F
0
SekodataAuthor Commented:
Other virtual machines on the same host works fine
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if this is URGENT, you could Create a new VM, Custom, and make the config, identical, and Add an Exisiting disk browse to existing disk.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you may have to tail vmkernel.log, at point of power on
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
its always possible we have corrupt virtual disks
0
SekodataAuthor Commented:
Good call, will start to create a new VM. There's no data that will be lost in the process?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
your data is safevin the vmdk, BUT if you do not have a copy, backup.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
SekodataAuthor Commented:
Workaround worked, server up and running... Thanks for input Hanc!
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
something odd with vmx file
0
SekodataAuthor Commented:
I've requested that this question be deleted for the following reason:

ok
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I believe the question has been answered. If the answer has been helpful please assign points.
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.