Solved

VMWare ESXi 4.1 - Accidentally deleted config files

Posted on 2014-01-08
7
866 Views
Last Modified: 2014-01-08
In the process of cleaning up a VMWare 4.1 all the configuration files for a running Virtual Server were deleted.  The actual hard disk files were not deleted because they were in use.  I thought I could just shut down the system and build a new VM and choose to add the Hard Disks that were previously created.  I shut down the VM and created a new Virtual Machine but when I go to add the Hard Drives the files are not listed.  I can see the files when I browse the DataStore.  It looks like there was a snapshot that had been created.  I have the following files...

Caroline-XXXXXX.vswp
Caroline-flat.vmdk
Caroline-000001-delta.vmdk

The delta file has today's date.

Please help.

Thanks,
John
0
Comment
Question by:LiberatingInsight
  • 4
  • 3
7 Comments
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
can you check you have just two VMDKs?

you may need to do this via SSH?

you should have

Caroline-flat.vmdk
Caroline.vmdk
Caroline-000001-delta.vmdk

do you have Caroline.vmdk ?

also screenshot would be good?

It looks like you are missing the descriptor file?

this can be re-created?

Recreating a missing virtual machine disk (VMDK) descriptor file
0
 

Author Comment

by:LiberatingInsight
Comment Utility
I do not have the Caroline.vmdk file.  Here is a screenshot of browsing the datastore.


I'm going to try the recreating the VMDK descriptor file.  Is there any special concerns since there is a Snapshot?
Screen-Shot-2014-01-08-at-11.52..png
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
The descriptor has been deleted.

Create the descriptor as normal.

and then add the snapshot delta disk, because it chains the parent, or I could show you how to clone the disk, so you have a single parent disk.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:LiberatingInsight
Comment Utility
I created the descriptor files for both the main and the snapshot vmdk's.  When I attempt to add the disks to the new Virtual Machine I get an error:
An internal error occurred in the vSphere Client.
Details: Object reference not set to an instance of an object.

I ran the vmkfstools -q on both files and they both came back with "... is not an rdm" which I think means both disks are good.

Not sure where to go.

I was able to mount the Caroline.vmdk drive and booted the VM and it came up and started windows but I need the Snapshot data.
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
Now that you have started the VM on the parent disk, without the snapshot attached, you will now have to fix the mismatching CIDs!

see here

VMware KB: Resolving the CID mismatch error: The parent virtual ...

once you have done this, the best think would then create a new virtual disk, using the clone technique

vmkfstools -i <most recent snapshot file name> /vmfs/volumes/<temp folder name>/<newfilename.vmdk>

and then newfilename.vmdk is your new virtual machine disk to attach to your VM.
0
 

Author Comment

by:LiberatingInsight
Comment Utility
Cloning the disk fixed it.  Thank you VERY MUCH!!!
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
No Problems...Glad to help!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

762 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

11 Experts available now in Live!

Get 1:1 Help Now