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...

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

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.

link|improve this answer
How do you disconnect a disk from snapshots? For the life of me I cant find this feature in virtualbox --- seems the only way is to manually edit the VM XML files? – Adam Aug 20 '10 at 2:40
I do not, I leave them be. – WooYek Apr 24 at 14:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.