Solved

Vmware issue

Posted on 2011-03-07
5
387 Views
Last Modified: 2012-05-11
I have 3 flat files for my ESXi server.
I need to run the vmware wizard using the existing harddrive images but since its the flat files and not the vmdk files i cannot.  How can I recreate the vmdk files if i have no backup of them?
0
Comment
Question by:cjameson74
5 Comments
 
LVL 2

Expert Comment

by:pod86
ID: 35065473
Try this, dont know if it will do the job though: source = http://www.itexperience.net/2008/03/03/howto-recreate-vmdk-files/

On VMWare ESX3, your VM has one or more VMDK files (extension .vmdk) and one or more flat vmdk files (last characters flat.vmdk )

In some cases, you may corrupt, lose or accidentally delete your VMDK files. Your VMDK’s contain metadata for your flat.vmdk files. Without your VMDK’s, you cannot load your flat.vmdk-files. Consequence: you cannot load the VM in your VirtualCenter and you cannot start the VM.
The following steps will guide you to recreate your vmdk files (.vmdk):

   1. Determine the hard disk sizes of your original VM (I call this VM from now on: VM A)
   2. Create a new VM (I call this VM from now on: VM B) with VirtualCenter with the same number of hard disks as your old VM, and the exact same sizes. So: if your original VM contained 2 harddisks from 8,00GB and 12,00GB, recreate these harddisks exactly the same in your new VM.
   3. After your VM B has been created, use Putty (or a similar tool) to navigate to your ESX server. Then navigate to the location / directory where your VM B is stored.
   4. Copy all VMDK’s (not the flat ones, but only the metadata files) to your VM A directory. The filesize of your META-data files should be a few KB.
   5. Navigate to your VM A directory. You just copied the *.VMDK files to this directory. Edit the VMDK’s with a text editor: You should replace the old filenames with the correct file names -> They refer to the new VM B, but they should refer to your old (original) VM A
   6. Save the files.
   7. Load the VM in your VirtualCenter. You should now be able to add th flat.vmdk to your VM.
0
 
LVL 1

Author Comment

by:cjameson74
ID: 35065696
I am using ESXi ....when I created the vms i dont see the the vmdk files anywhere the ones that map your flat files
0
 
LVL 19

Expert Comment

by:Miguel Angel Perez Muñoz
ID: 35067090
Try using vmware converter.
0
 
LVL 40

Accepted Solution

by:
coolsport00 earned 500 total points
ID: 35068842
Review this KB "cjameson74" on how to recreate your VMDK (decriptor) files:
http://kb.vmware.com/kb/1002511

Regards,
~coolsport00
0
 
LVL 28

Expert Comment

by:bgoering
ID: 35069156
Do you have 4 files that comprise one virtual hard disk? Or do the 3 files represent 3 different virtual drives?

If the latter the article coolsport00 posted would be the correct one for you. Repeat the instructions for each virtual HD.

However if you have former case where the disk has been split into chunks up to 2GB in size use the article http://kb.vmware.com/kb/1026266 to recover your singel hard dirve.

Good Luck
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
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.

929 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

9 Experts available now in Live!

Get 1:1 Help Now