Solved

VMWare ESXi 4.1 - Accidentally deleted config files

Posted on 2014-01-08
7
881 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 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39765660
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
ID: 39765744
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 119

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39765949
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:LiberatingInsight
ID: 39766061
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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39766108
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
ID: 39766392
Cloning the disk fixed it.  Thank you VERY MUCH!!!
0
 
LVL 119
ID: 39766404
No Problems...Glad to help!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

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.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
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:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

776 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