Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VMWare ESXi 4.1 - Accidentally deleted config files

Posted on 2014-01-08
7
Medium Priority
?
907 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
[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
  • 4
  • 3
7 Comments
 
LVL 124

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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 124

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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 124
ID: 39766404
No Problems...Glad to help!
0

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

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

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…
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

618 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