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?
 
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
0
 
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
are all datastores present?
0
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.