So, there are two types of disk of importance to this tutorial.
- Normal Disks: Just standard read/write disks implemented through either files on the filesystem OR as raw partitions on a physical disk (advanced and not what we do here!).
- Immutable Disks: These are read-only disks attached to a virtual machine that aren't changed as a result of anything that goes on during usage of the machine and perfect for what we want to achieve.
Other types will become evident in later tutorials but for now these are all we need to care about.
So, without further ado lets describe the process of creating an immutable base Windows 2003 image!
Stage 1: Create the first Virtual Machine
This bit is fairly easy, but essentially I create a Virtual Machine named "W2K3_Base1_NoAD" with as much memory as I can - usually just under 50% of physical memory. When it comes to selecting the Hard Disk for the virtual machine I select "New" and the new disk wizard pops up. skip through the first screen and on the "Storage Type" screen ensure "Dynamically expanding storage" is checked. This ensures we have the smallest image we can for the immutable base image. Select a location for the disk - I use the structure in the following diagram but this requires some config file hacking to make it so clean (see later - and heed the warning!!") - and a size. For the size I have found 20Gb is about the right size for a good W2K3 install + a few server products such as BizTalk Server 2006 R2 and MOSS 2007, etc. Once you have this click "Finish" on the next page and this new disk should be the disk selected back in the Virtual Machine wizard. Click "Next" and "Finish" to finish the creation of the virtual machine.
That's it. You are now ready to power on the machine and install your favourite (or required!) OS - which for this is Windows Server 2003 R2 if you hadn't already guessed!
Stage 2: Install the base Windows 2003 Server software
This bit is pretty easy and I won't bore you too much with the details. The hardest thing here is pointing the CD/DVD to either the physical media or an iso image of the installation media. I choose the latter because I download them from my MSDN subscription. Doesn't really matter which one you use as long as the media is valid and you have a valid key.
Attach a CD/DVD by one of 2 methods (well, 3 but I am leaving the command line alone for now - a future tutorial perhaps). Either select the virtual machine in the VirtualBox console and select the "CD/DVD-ROM" page. In the property sheet select the "Mount CD/DVD Drive" option and then point to the physical drive with the CD/DVD in or select the "Virtual Media Manager" button highlighted on the right in the diagram below (click to "Go Large")

The same functions can be accessed using the "Devices->Mount CD/DVD" menu options when the VM is powered on.
Power up the machine and walk through the chosen OS installation routine.
Once this is complete, let the machine reboot and log in. You can choose to carry out a "Windows Update" now, which I tend to do to make sure the server is as secure as possible before exposing to incoming network connections, or leave it until you have installed IIS 6.0. Since an IIS requirement is pretty ubiquitous in the world of .NET training and development I have chosen to have this as part of the very base installation.
Once you have installed all the required base components do a Windows Update again and then you are good to compact the disk to use the smallest space possible.
To be continued tomorrow ....