After installing Windows 2003 and required updates on your virtual machine, we now need to prepare it for easy duplication later. Now extract files from system preparation package, which we had previously downloaded. As we have installed Service Pack 2 for Windows 2003, so we will use only preparation package related to that.
On the next screen select “Sysprep setup”, as we have already installed required components, and only need a mini setup to configure new machines.
Next choose your operating system, in our case it is “Windows Server 2003 Enterprise Edition”, then choose fully automated way of configuration on next screen.
Then you will be presented with a hierarchical set of configurations, you can either step through all steps or only configure particular steps for modifications. I did not experimented with all combinations, just went through nearly all of them, keeping most things pre-configured.
However some steps I am sure do require some input. One of those screen is specifying name and organization.
Here is the final “Sysprep.ini” file. You can also download it as a sample file.
Setup manager will also create a folder on root drive named “sysprep”. You will have to copy two files from your deploy folder to this folder, these are the two executables listed in the image below.After creating your answer file and placing these files at desired location, run “SysPrep.exe”. Accept the warning message initially displayed. Click on “Reseal” button on the main screen, keeping everything else in default.
You will be warned that on next reboot, a new security identifier would be generated for this system, click on “OK”, as our purpose is the same. After that your system will shutdown.
You can learn about these security identifier at following pages.
Now locate .vhd file of this virtual machine, and make a copy of it. Create another virtual machine, don’t create any new virtual hard disk for that machine. Associate that machine with .vhd file which you have recently duplicated. Modify other settings as per your requirement.
Now start that machine, your mini setup will start working and preparing your machine. It will install selected network components and other related things.
After installation machine will reboot, then you can login to that machine, and you will notice that not only all things looks fresh and clean, but also a new machine name has been generated, which you can change as per your requirements.