How to create a differencing disk (a chained one) from a disk that is already a differencing image? I would like to have:
W2008 (base immutable) -> W2008+SQL2008 (differencing, with SQL installed) --- This I can do. -> W2008+SQL2008+SharePoint (chained differencing with Sharepoint installed on top of SQL2008)
There's some info about it the manual: http://www.virtualbox.org/manual/ch05.html#diffimages
Differencing images can be chained. If another differencing image is created for a virtual disk that already has a differencing image, then it becomes a "grandchild" of the original parent. The first differencing image then becomes read-only as well, and write operations only go to the second-level differencing image. When reading from the virtual disk, VirtualBox needs to look into the second differencing image first, then into the first if the sector was not found, and then into the original image.*
I don't get it...
Not what I expected, as I treat this task as a Disk Managment area...
You need to create a machine that will (and stays) you template, each time you install on this machine something that is worth to be released as a template disk - take snapshot. When a snapshot is taken the current disk is frozen and a new differencing image is created.
Then you can attach this frozen disk to another machine, creating antoher differnecing image.
Whan you want some control on where the disk are stred and how are they named, you need to disconnect disk form snapshots (eg. disregard snapshots), and reatach these discs uder new location and name - they will be properly recognized as a chained differencing images.
Thus getting a cleaner hierarchy and better way to chose them when they being attached.
The instructions are great.
This thread is old, but here is my solution to getting a separate disk from a snapshot:
Sample usage (under Linux):
You can leave the
--format VMDK
off if you stick to native .VDI format. I use VMDK format in case I need to use other VM software in the future.