How to merge arbitrary snapshot into base vdi in Virtualbox
- by jmathew
I botched a transfer of a VM from one harddisk to the other. Now I'm left with the base vdi and a whole bunch of snapshots.
My steps
Copied old VM directory over to new HDD
Deleted old VM and added new VM using using Machine-add and
providing the old XML file
Couldn't add base vdi file due to conflict so changed the UUID of base vdi with
VBOXMANGE.EXE internalcommands sethduuid <path/to/vdi>
Attempt to rollback to a snapshot, but it seems the VM is looking for the snapshots on the old HDD (which is formatted and gone)
This is the error (networked is the name):
Failed to restore the snapshot networked of the virtual machine lfs.
Could not open the medium 'H:\vm\ft.vdi'.
VD: error VERR_PATH_NOT_FOUND opening image file 'H:\vm\ft.vdi' (VERR_PATH_NOT_FOUND).
Result Code: E_FAIL (0x80004005)
Component: Medium
Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}
The old HDD was drive H: the new one is drive N:
How can I modify the snapshots/VM to look in N:\vm\ft.vdi for the base vdi? I've already set the default settings in VirtualBox in general (default vm/vm snapshot location).
Or if not that how can I merge the old snap shot with the base vdi given that the only things that have changed is the base vdi's UUID?