Solved

Cannot power on virtual machine on ESXi 5 host

Posted on 2012-03-29
19
3,696 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 118
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 118
ID: 37783676
are all datastores present?
0
 
LVL 118
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 118
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 118
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 118
ID: 37783823
you may have to tail vmkernel.log, at point of power on
0
 
LVL 118
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 118
ID: 37783855
your data is safevin the vmdk, BUT if you do not have a copy, backup.
0
 
LVL 118

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 118
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 118
ID: 38648874
I believe the question has been answered. If the answer has been helpful please assign points.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VMware-View Replica and Snapshot 6 70
Desktop Pools and Vms 4 58
V2V Hyper-V RODC to ESXi 4 62
Vsphere 6 Lab Setup 4 58
This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now