Merge vmdk files for Unknow VM

Posted on 2011-10-13
Last Modified: 2012-05-12
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.?
Question by:bml104
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    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.
    LVL 1

    Author Comment

    The orginal vmxcorrupt.
    LVL 116

    Accepted Solution

    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
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    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

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
    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…

    730 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

    18 Experts available now in Live!

    Get 1:1 Help Now