Solved

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

Posted on 2010-08-27
3
3,348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE dā€¦
Last article we focus in how to VMware: How to create and use VMs TAGs ā€“ Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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