Differencing Disks (just like in Virtual PC)
Posted: 8. Jun 2009, 01:00
Hi,
I'm a new user to VirtualBox, but so far am thrilled with it. Unfortunately, one of the things I want to accomplish doesn't seem to be working out for me so great. When I used Microsoft's Virtual PC 2007, I was able to create one primary installation of WinXP, and then set it to read-only and create differencing disks that enabled me to set up multiple additional sessions that each used the primary installation as a base but wrote changes I made elsewhere (so the primary installation was never touched, but changes I made to additional sessions I set up were saved). I tried to do that in VirtualBox (using the instructions I found here: http://forums.virtualbox.org/viewtopic. ... 951#p67969), but it doesn't seem to be working for me. Basically, each time I shut down the additional session, and then restart it, all my changes are gone. Here's what I did:
1) Created a new virtual machine (512 MB RAM, 20 GB Dynamically expanding HD) (called Windows XP #1) and installed WinXP SP2 on it
2) Installed Guest Additions on this virtual machine instance
3) Defragmented this Virtual Machine instance
4) Shut down this virtual machine instance, and using Virtual Media Manager, released it and removed it (but kept the actual data file)
5) Set this Windows XP #1.vdi file to read-only
6) Ran the following command: VBoxManage openmedium disk "C:\documents and settings\<username>\my documents\VirtualBox\Windows XP #1.vdi" -type immutable
7) Re-added this VDI file to Virtual Media Manager and re-attached it to Windows XP #1 virtual machine
8 ) Ran Windows XP #1 virtual machine
9) Upon checking the following directory (C:\Documents and Settings\<username>\My Documents\VirtualBox\Windows XP #1\Snapshots), discovered it created a .VDI snapshot file ({fb43c718-3ef1-43c5-9441-67d25ffedfe1}.vdi) and a .SAV file ({fda4831b-93b1-49ad-a452-30aa50b87fd2}.sav) automatically
10) From within Windows XP #1 virtual machine, created a snapshot file (called Snapshot 1) - this seemed to create an additional file in the above directory ({301c4142-038e-43e5-93b9-56d96927d50d}.vdi)
11) Shut down out of Windows XP #1 virtual machine, and created a new virtual machine (512 MB RAM, no hard disk) (called Differencing #1)
12) Went into the settings of this virtual machine (Differencing #1), and under "Hard Disks" checked "Show Differencing Hard Disks" and then added the {301c4142-038e-43e5-93b9-56d96927d50d}.vdi file as the IDE Primary Master
When I go to look at the settings of Differencing #1, it shows for Hard Disk: Windows XP #1.vdi (Immutable, 20.00 GB)
Any ideas what I'm doing wrong and how to get the configuration I mentioned above so that the hard disk attached to Differencing #1 virtual machine is working off of the initial WinXP installation, but saving changes when I reboot (not saving them to Windows XP #1.vdi, but to some differencing VDI file)?
Any help to get this to work properly is greatly appreciated! Thanks.
I'm a new user to VirtualBox, but so far am thrilled with it. Unfortunately, one of the things I want to accomplish doesn't seem to be working out for me so great. When I used Microsoft's Virtual PC 2007, I was able to create one primary installation of WinXP, and then set it to read-only and create differencing disks that enabled me to set up multiple additional sessions that each used the primary installation as a base but wrote changes I made elsewhere (so the primary installation was never touched, but changes I made to additional sessions I set up were saved). I tried to do that in VirtualBox (using the instructions I found here: http://forums.virtualbox.org/viewtopic. ... 951#p67969), but it doesn't seem to be working for me. Basically, each time I shut down the additional session, and then restart it, all my changes are gone. Here's what I did:
1) Created a new virtual machine (512 MB RAM, 20 GB Dynamically expanding HD) (called Windows XP #1) and installed WinXP SP2 on it
2) Installed Guest Additions on this virtual machine instance
3) Defragmented this Virtual Machine instance
4) Shut down this virtual machine instance, and using Virtual Media Manager, released it and removed it (but kept the actual data file)
5) Set this Windows XP #1.vdi file to read-only
6) Ran the following command: VBoxManage openmedium disk "C:\documents and settings\<username>\my documents\VirtualBox\Windows XP #1.vdi" -type immutable
7) Re-added this VDI file to Virtual Media Manager and re-attached it to Windows XP #1 virtual machine
8 ) Ran Windows XP #1 virtual machine
9) Upon checking the following directory (C:\Documents and Settings\<username>\My Documents\VirtualBox\Windows XP #1\Snapshots), discovered it created a .VDI snapshot file ({fb43c718-3ef1-43c5-9441-67d25ffedfe1}.vdi) and a .SAV file ({fda4831b-93b1-49ad-a452-30aa50b87fd2}.sav) automatically
10) From within Windows XP #1 virtual machine, created a snapshot file (called Snapshot 1) - this seemed to create an additional file in the above directory ({301c4142-038e-43e5-93b9-56d96927d50d}.vdi)
11) Shut down out of Windows XP #1 virtual machine, and created a new virtual machine (512 MB RAM, no hard disk) (called Differencing #1)
12) Went into the settings of this virtual machine (Differencing #1), and under "Hard Disks" checked "Show Differencing Hard Disks" and then added the {301c4142-038e-43e5-93b9-56d96927d50d}.vdi file as the IDE Primary Master
When I go to look at the settings of Differencing #1, it shows for Hard Disk: Windows XP #1.vdi (Immutable, 20.00 GB)
Any ideas what I'm doing wrong and how to get the configuration I mentioned above so that the hard disk attached to Differencing #1 virtual machine is working off of the initial WinXP installation, but saving changes when I reboot (not saving them to Windows XP #1.vdi, but to some differencing VDI file)?
Any help to get this to work properly is greatly appreciated! Thanks.