Problem
I moved a virtual machine by storage vmotion between two ESX servers. (The servers are not a part of a cluster)
After the storage vmotion ended, I couldn’t powered on the virtual machine and I received the following error:
Cannot open the disk. Reason: The parent virtual disk has been modified since the child was created
Solution
- Open SSH connection to the ESX server which the virtual machine is on (by putty)
- From the vSphere client, stand on the virtual machine > right click > Edit Settings > Options > General Options > Virtual Machine Working Location (This is the path of the virtual machine)
- From the Putty connection, Navigate to the virtual’s machine path /vmfs/volumes /and the path from paragraph 2
- From the folder of the virtual machine perform the following:
1.Cat VM_Name-000001.vmdk (according to the error massage you have received)
- The file which end with *.000000x.vmdk is the snapshot file.
- Look for the parentCID and write it down.
2.Cat VM_Name.vmdk (according to the error massage you have received)
- This is the original / source file.
- Look for the CID and write it down.
- Compare the snapshot parentCID and the source disk CID, in case they are different this is the problem.
- Open nano on the snapshot file as follow: nano VM_Name-000001.vmdk
- Change the parentCID to the ID that was written in the source disk under CID
- Save the changes (ctrl+x, y, Enter)
- Make sure the change has saved > cat VM_Name-000001.vmdk
- Start the virtual machine.
Idit.
Thank you for interesting article 🙂
You save my day dude. This is a very good post.
Thx a lot.
In the simplicity all the beauty
Nice work !!!!!
Great!!! You save my day (night)! Thank you!