• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 895
  • Last Modified:

Merge vmdk files for Unknow VM

I have an unknown machine on one of my esx servers. I tried vmware-cmd -s register but it still shows up as unknow. So just created a new machine and added the old disk. Well it's not happy because I guess it wants one of the old snapshot files.

Anyway, i have  Image-0002-delta.vmk, Image-0002.vmdk, Image-0002-flat.vmdk and image.vmdk. The delta file shows from todays date, the others are a few months ago. How can i merge these to one disk so I can recreate the machine.?
  • 3
1 Solution
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
do you have the original VMX file for these virtual disks?

the problem now is that you have tried to power on the virtual machine disk with a snapshot, which is not good because it would have updated the virtual machine disk, but did not know about the snapshot files, so you will now need to also fix the snapshot chain.
bml104Author Commented:
The orginal vmxcorrupt.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
See here to fix the snapshot CID mismatch

Resolving the CID mismatch error: The parent virtual disk has been modified since the child was created


But you will also need to regenerate the VMX file, to ensure that when you fix the above CIDs in the files, that you include the correct items in the VMX file.

or Merge Snapshots at the command line.

(but do not do this until you have fixed the CIDs)

See here

Merge Snapshots at command line
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
So, you can fix the CIDs with the articles supplied, and then merge the snapshots at the command line, and then ADD to a VM without issue.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now