method to merge differential VHD

This is for discussing general topics about how to use VirtualBox.
Post Reply
takeru
Posts: 1
Joined: 21. Dec 2009, 05:06
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Home Server

method to merge differential VHD

Post by takeru »

I run a VM with a VHD formatted virtual HDD.
Once I created another temporary VM with the same VHD for testing, so that the system created two differential VHD trees.
Now I have dropped the temporary VM, but the VHD remains a static parents with differential VHD which costs me so much storage overhead.
I cannot see any snapshots on the VirtualBox console, and cannot find any user interface to merge the differential VHDs.

Is there any method to manage such a situation?
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: method to merge differential VHD

Post by MarkCranness »

Instructions here should let you clonehd/merge the differencing disks:
http://forum.virtualbox.org/viewtopic.p ... 06#p106206
Ignore the parts about finding which differencing disks are attached to which snapshot (you have no snapshots), use VHD in place of VDI, and just directly clonehd the {hexUUID}.vhd file using the hexUUID, for example:
VBoxManage clonehd b6441469-5ccb-418c-8fdd-73c5e1a17314 CloneDisk.vhd --format VHD
Post Reply