Solved

Cannot power on virtual machine on ESXi 5 host

Posted on 2012-03-29
19
3,582 Views
Last Modified: 2012-12-02
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!
0
Comment
Question by:Sekodata
  • 11
  • 7
19 Comments
 
LVL 117
ID: 37783658
A swap file is created when a VM is powered ON.

do you have a swap file already in the datastore
0
 

Author Comment

by:Sekodata
ID: 37783670
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
 
LVL 117
ID: 37783676
are all datastores present?
0
 
LVL 117
ID: 37783679
check the vmx file, for the correct location of the swap file.
0
 

Author Comment

by:Sekodata
ID: 37783713
It's the correct path
0
 
LVL 117
ID: 37783742
can you upload the latest vmware log file from the virtual machine folder
0
 

Author Comment

by:Sekodata
ID: 37783795
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
 

Author Comment

by:Sekodata
ID: 37783801
Other virtual machines on the same host works fine
0
 
LVL 117
ID: 37783815
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 117
ID: 37783823
you may have to tail vmkernel.log, at point of power on
0
 
LVL 117
ID: 37783824
its always possible we have corrupt virtual disks
0
 

Author Comment

by:Sekodata
ID: 37783831
Good call, will start to create a new VM. There's no data that will be lost in the process?
0
 
LVL 117
ID: 37783855
your data is safevin the vmdk, BUT if you do not have a copy, backup.
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 37783870
0
 

Author Comment

by:Sekodata
ID: 37784169
Workaround worked, server up and running... Thanks for input Hanc!
0
 
LVL 117
ID: 37784186
something odd with vmx file
0
 

Author Comment

by:Sekodata
ID: 38648873
I've requested that this question be deleted for the following reason:

ok
0
 
LVL 117
ID: 38648874
I believe the question has been answered. If the answer has been helpful please assign points.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now