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
Solved

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

Posted on 2010-08-27
3
3,249 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
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 configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

856 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