anonimous
Enthusiast
Enthusiast

*.vmdk file is lost

Jump to solution

hi

One of our VM (WIN2000) running on ESX 3.5 Update2 doesn't have *.vmdk file, but this machine still works.

In the Datastore Browser in the directory of this VM there are just these 2 files:

w2k.vswp

w2k-flat.vmdk

Howto recreate missing *.vmdk file?

0 Kudos
1 Solution

Accepted Solutions
10 Replies
Troy_Clavell
Immortal
Immortal

see this KB article

http://kb.vmware.com/kb/1002511

0 Kudos
anonimous
Enthusiast
Enthusiast

Thx, but to Identify the SCSI controller type doesn't work.

I've tried the following command on my ESX 3.5 Update2 in the VM directory, but it seems not to work:

less *.vmx | grep -i virtualdev

*.vmx: No such file or directory

0 Kudos
Troy_Clavell
Immortal
Immortal

if you are missing the .vmx file, you can create a new virtual machine (custom), with no disk, then create the .vmdk

anonimous
Enthusiast
Enthusiast

THX again, but howto create a new virtual machine (custom), with no disk?

Can I do it from the command line using putty?

0 Kudos
Troy_Clavell
Immortal
Immortal

you can do it from the command line, but it's a lot easier from the VI Client. Otherwise something like http://www.easyvmx.com/.

If using the VI Client, right click on choose create virtual machine, then choose custom.

anonimous
Enthusiast
Enthusiast

THX, I've created a new virtual machine (custom), with no disk, but what's next step?

Should I move and rename the new vmx file from the new directory to the old directory where the vmdk file is missing?

0 Kudos
Troy_Clavell
Immortal
Immortal

yes, get all files together, this way you can recreate the discripter file (.vmdk). Once done, you can add Hard Disk (Use an existing virtual disk) to the VM and power it back on.

0 Kudos
anonimous
Enthusiast
Enthusiast

U mean move and rename all moved files?

There are 3 new files:

new_no_disk.vmsd

new_no_disk.vmx

new_no_disk.vmxf

0 Kudos
Troy_Clavell
Immortal
Immortal

question: Is the guest in question still powered on and registered in inventory? If so, power it down, and remove it from inventory. Move all the files into the correct folder (probably the name of the original VM), once that it done, add the guest back to inventory, add the HDD back into the guest. Before you power it on, click on migrate, move the guest and it's disk files to another LUN, this will rename everything to whatever you have added the guest to inventory as.

Make sense?

0 Kudos
anonimous
Enthusiast
Enthusiast

THX, I've done what U suggested, created a vmdk file and it works well.

0 Kudos