To create a Windows Server 2003 image for the Lab Management Active Directory Servers (Primary or Secondary), you add the Simple Network Management Protocol (SNMP), get current updates, make configuration changes, and finally reset to DHCP before you run sysprep.
You begin the task by working with several Microsoft Windows components, which
involve:
- Adding the Simple Network Management Protocol (SNMP)
- Optionally adding the Windows Management Instrumentation (WMI) SNMP
provider
Next, you perform a Windows update to obtain all current updates (other than
Windows Server 2003, Service Pack 2, as of 10/18/07). You continue the task by
installing various packages and setting the Root Directory.
Then you make configuration modifications that include:
- Changing the SNMP Service Community Names
- Enabling the Remote Desktop
- Disabling automatic updates
- Disabling error reporting
- Setting environment variables
- Updating the registry
You conclude the task by resetting to DHCP before you run sysprep.
-
Start the VMware Server and create a virtual machine running the Windows Server
2003.
Note: You must use a volume license version of Windows Server 2003 because
Lab Management uses the sysprep
tool to automate the deployment of the Active Directory Servers.
-
Perform a Windows update to obtain all current updates (other than Windows
Server 2003, Service Pack 2, as of 10/18/07).
-
Install the following packages:
Note: The first three packages (Lab Management API Client, Python, and
Python Windows Plugin 32-208) are included with the Lab Management Installer installation CD.
- Lab Management API Client—Use the
latest version available
- Python (http://www.python.org/download/releases/2.4.4)
- Python Windows Plugin 32-208
(http://sourceforge.net/project/downloading.php?groupname=
pywin32&filename=pywin32-208.win32-py2.4.exe&use_mirror=
superb-east)
- Cygwin (http://www.cygwin.com)
- Windows Support Tools:
Windows Server 2003
(http://www.microsoft.com/downloads/details.aspx?FamilyId=
6EC50B78-8BE1-4E81-B3BE-4E7AC4F0912D&displaylang=en)
- Windows Admin (deployment tools):
Windows Server 2003
(http://www.microsoft.com/downloads/details.aspx?FamilyId=
A34EDCF2-EBFD-4F99-BBC4-E93154C332D6&displaylang=en)
- Group Policy Management Console
(http://www.microsoft.com/downloads/details.aspx?familyid=
0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&displaylang=en)
Note: Lab Management recommends that you
adhere to your company’s computer security policies regarding anti-virus
software.
-
Enable the Remote Desktop:
-
Right-click My Computer.
-
Select Properties and click the
Remote tab.
-
In the Remote Desktop section, click the checkbox for Allow
users to connect remotely to this computer.
-
Disable automatic updates to prevent your computer from receiving all updates
from Microsoft automatically and rebooting afterwards:
-
Click Start.
-
Select .
-
Double-click the Automatic Updates icon.
-
Click Turn off Automatic Updates.
You still need to make sure that your Domain Controller remains patched but
this is a manual activity.
-
Make sure that the path to the Cygwin binaries (by default, Cygwin would be
installed at: c:\cygwin\bin) is included in your system environment variables.
-
Click Start and select Control
Panel.
-
Select System.
-
Click the Advanced tab.
-
Click Environment Variables.
-
In the System variables section, select the Path variable.
-
Click Edit.
-
Edit the path or verify that the path to the Cygwin binaries
exists.
-
Before you run sysprep, reset your Windows Server 2003 TCP/IP settings to DHCP:
-
Click Start and select Control
Panel.
-
Select Network Connections.
-
SelectLocal Area Connection..
-
Click Properties.
-
Select Internet Protocol (TCP/IP).
-
Click Properties.
-
Select Obtain an IP address automatically and Obtain DNS
server address automatically.
-
Click OK.
-
Click OK.
-
Click Close.
-
Run the sysprep tool to reseal the image using the following command:
sysprep.exe -mini -quiet -reseal -forceshutdown
This image is now ready for automatic deployment.
-
Rename this image as Windows_2k3stdR2.vmdk.
-
Save the image in the os/Microsoft/2k3std/i386/Windows2k3stdR2_
dc/4 directory on your NFS O/S images volume.
The values in the directory path refer to the following elements:
- 4 - refers to Version 4 of this image
- Windows2k3stdR2 - is the image name
The Lab Management default profile
references these two images for the Active Directory Servers that are shipped
with the product CD. If you name your image file differently or save it in a
different location, you need to modify the profile to use the correct name and
path to the image file.