Solved

What would cause a vmware vmx filie to go blank (0 Bytes)

Posted on 2010-08-27
3
3,157 Views
Last Modified: 2012-06-08
Occasionally I have had some Virtual machines that I cannot edit/modify/reconfigure.  If I check the vmx file it is blank.  I have tried to restore the vmx file and reconfigure again but the vmx file goes blank again.

We are running virtual server 2 on a centos box.  the vm in question is actually stored on a file share.  I have other vm's on the file share that I can access just fine.

Any ideas?
0
Comment
Question by:PlazaProp
3 Comments
 
LVL 5

Accepted Solution

by:
Steve M earned 250 total points
ID: 33543232
Try these options -

to recreate a new VMX file:
http://www.techhead.co.uk/vmware-esx-how-to-easily-recreate-a-missing-or-corrupt-vmx-file

Or this website to create a brand new VMX file
http://www.easyvmx.com/

Good Luck
-Steve
0
 
LVL 7

Expert Comment

by:simonseztech
ID: 33551276
First check your file permission of your vm folder
second be sure to not have the .vmx open(editing) when the vm is running or editing config with gui.

Any info in the .log file that can help ?
0
 

Expert Comment

by:linksonice
ID: 38061912
I came across this zero byte .vmx issue yesterday after running some HA (high availability) crash tests on our vmware setup.

One of my crash tests was to disable the storage network NIC on the physical ESXi host. The default isolation response to this test was to NOT shut down, but stay powered on, which is what my dummy VMs did, although they became impossible to work with obviously, not having any access to their storage/disks. Anyway, once I re-enabled the storage network NIC from ESXi, the VMs were extremely unstable, so I thought fair enough, let's reset/restart them, but they did NOT restart successfully no matter what, and I found to my surprise that their .vmx files were indeed zero bytes.

Using the instructions in the techhead link above, I've recovered one of them, and (in a real life situation) should be able to recover the rest of them, although I'm not worried too much, considering they are dummy VMs.

The idea bugs me though - what if this were to happen to production machines in real life?

Also, good ideas for problem resolution aside, the original question hasn't been answered: What would cause a vmware vmx filie to go blank (0 Bytes). Is this a corruption per se, and if so what causes it? Permissions on the "machine folders" are not read only btw.

Also, I managed (in a sense) to re-register a VM from the cmd line after removing it from the inventory, but it came back in an "unknown" or basically unusable state.

Do any vmware experts have any more comments about this? Thanks, Andrei.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Using a software based iSCSI solution, there is no requirement to purchase a hardware iSCSI initiator or TOE (TCP/IP Offload Engine) interface card. A standard network interface card can be used to connect an existing ESXi server to a remote iSCSI t…
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

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

20 Experts available now in Live!

Get 1:1 Help Now