title: Install Windows for a Base Image

{excerpt}This page describes how to mount the Windows installation media and install Windows for a base image.{excerpt}

Mount the Installation Media

The Windows installation media needs to be mounted as a drive on the computer. The method to do this varies widely based on the provisioning engine being used and resources available. The following lists some ways to mount the installation media:

h4. VMware - Configure the VM to mount the ISO image as a CD-ROM drive

Note: these instructions assume a VM has already been created

  1. Copy the Windows installation ISO file to the VMware host server
  2. Add a CD-ROM drive which mounts the Windows installation ISO image by editing the virtual machine settings:
  3. Connection: Use ISO image:

  4. Browse to path of Windows installation ISO image

  5. Save the VM configuration

xCAT using IBM Advanced Management Module

  1. Copy the Windows installation ISO file to the management node
  2. Determine the IP address or hostname of the IBM Advanced Management Module (AMM) for the BladeCenter chassis which contains the blade you are installing
  3. Open a web browser and enter the AMM's address
  4. Log in to the AMM
  5. Select Inactive session timeout value: no timeout
  6. Click Start New Session
  7. Click Remote Control
  8. Click Start Remote Control
  9. Set the Media Tray and KVM dropdown menus to the blade you are installing
  10. Click Select Image and click the arrow button to the right of it
  11. Navigate to the Windows installation ISO file which was saved to the management node and click Open
  12. Click Mount All

Boot to the Windows Installation CD or DVD

  1. Power on the computer
  2. Press the key to display the boot menu as soon as the computer's POST screen is displayed (usually F12 for bare metal blades or ESC for VMware)
  3. Boot from the CD-ROM drive
  4. Press a key to boot from the CD (this may be displayed at bottom of screen as soon as the computer begins to boot)

Install Windows

The Windows installation sequence varies by version. The next 2 sections describe the recommended answers for Windows XP and Windows 7.

Windows XP Installation

  1. Press Enter to setup up Windows XP now
  2. Press F8 to agree to the license agreement
  3. Configure the Windows partition
  4. Press Enter to set up Windows XP on the selected item (should be

called “Unpartitioned space”)

  1. Format the partition using the NTFS file system (Quick)

  2. Region and Language Options - click Next
  3. Name: VCL
  4. Organization: Apache.org
  5. Enter your Windows XP product key
  6. Computer name: (doesn't matter)
  7. Administrator password: (doesn‘t matter, but it’s recommended that password should match the {}WINDOWS_ROOT_PASSWORD{} setting in /etc/vcl/vcld.conf{}{})
  8. Select the timezone
  9. Networking settings: Typical
  10. Member of a domain: No, leave default workgroup settings
  11. Automatic updates: Not right now
  12. Connect to Internet: Skip
  13. Register: no
  14. User name: root {color:#888888}{}Windows XP setup should finish and the root account created during installation should automatically log on{}{color}
  15. Once the desktop appears, set root's password via the Windows GUI or by executing the following command from a command prompt: net user root

Windows 7 Installation

  1. Enter the regional information:
    • Language to install: English
    • Time and currency format: English (United States)
    • Keyboard or input method: US
  2. Click Next
  3. Click Install now {color:#888888}{}Setup is starting...{color}
  4. Click the checkbox next to “I accept the license terms”
  5. Click Next
  6. Click Custom (advanced)
  7. On the “Where do you want to install Windows?” page, delete all existing partitions and create a new partition using all of the available space:
  8. Click Drive options (advanced)

  9. Click Delete, then click OK to confirm

  10. Click New

  11. Click Apply (the size should be set to the maximum amount available

{color:#888888}{}To ensure that all Windows features work correctly, Windows might create additional partitions for system files.{color}

  1. Click OK

  2. Click Next {color:#888888}{}Installing Windows...{color} {color:#888888}{}Windows restarts{}{color} {color:#888888}{}Starting Windows{}{color} {color:#888888}{}Setup is updating registry settings{}{color}
  3. A screen titled “Set Up Windows” appears:
    • Type a user name: root
    • Type a computer name: it's best to name the computer after the OS (Example: win7sp1-ent)
  4. Enter a password, password hint, and click Next
  5. Help protect your computer and improve Windows automatically: Ask me later
  6. Select a time zone, set the correct time, and click Next {color:#888888}{}Windows is finalizing your settings{}{color} {color:#888888}{}Preparing your desktop{}{color} {color:#888888}{}Desktop appears{}{color}
  7. If asked to set a network location, choose Work network The root account logs in...

Windows Server 2008

  1. Select the language and click Next
  2. Click Install Now
  3. Select the version of Windows you want to install from the list and click Next. (Windows Server 2008 R2 Datacenter (Full Installation) was selected when creating these instructions.)
  4. Click the checkbox next to I accept the license terms and click Next
  5. Click Custom (advanced)
  6. Configure the disk partitions and click Next.  Unless you have reason not to, it's best to delete all existing partitions and then select Unallocated Space. This causes the disk to be repartitioned using all of the available space. Windows is installed...
  7. Click OK and set a password for the Administrator account, click OK The Administrator account logs in...

The root user account is not created during the installation of Windows Server 2008. It must be created after Windows is installed. Do this using the GUI or run the following commands in a command window:

  1. Click Start > Administrative Tools > Server Manager
  2. Open Configuration > Local Users and Groups > Users
  3. Open the Action menu > New User
  4. User name: root

  5. Enter a password twice

  6. User must change password at next logon: no

  7. Password never expires: yes

  8. Click Create

  9. Click Close

  10. Double-click the root user
  11. Select the Member Of tab
  12. Click Add
  13. Enter the object names to select: Administrators

  14. Click OK twice

The Disk Cleanup utility (cleanmgr.exe) is not available on Windows Server 2008 unless the the Desktop Experience feature is installed. VCL runs cleanmgr.exe before an image is captured to reduce the amount of space the image consumes. Image captures will not fail if cleanmgr.exe is not installed but it is recommended to install the Desktop Experience feature so that it is available:

  1. Open the Control Panel
  2. Click Turn Windows features on or off
  3. Click Features
  4. Click Add Features
  5. Click the checkbox next to Desktop Experience
  6. Click Add Required Features
  7. Click Next
  8. Click Install The features are installed...
  9. Click Close
  10. Click No to not reboot the computer
  11. Restart the computer after the installation is complete

Optional Windows Configuration Tasks

Enable Remote Desktop

The remaining configuration tasks will be easier if you are able to connect to the Windows computer via RDP rather than using the VMware or BladeCenter Management Module console. This step is optional. The VCL image capture process will configure RDP on the Windows computer during image capture and load processes.

Windows XP & Windows Server 2003:
  1. Open Control Panel > System > Remote tab
  2. Click the checkbox next to Allow users to connect remotely to this computer
  3. Click OK

Windows Vista, Windows 7, & Windows Server 2008:
  1. Open Control Panel > System and Security > System
  2. Click Remote settings
  3. Select Allow connections from computers running any version of Remote Desktop (less secure)
  4. Click OK

Use an RDP client to connect to the Windows computer using either its public or private IP address as appropriate. If the public address is not available for some reason, you can attempt to connect to the private IP address by installing rdesktop on the management node:

{tip}yum install rdesktop -y{tip}

{tip}rdesktop -g 1024x768 &{tip}

Disable Internet Explorer Enhanced Security Configuration

(Windows Server 2003 and Windows Server 2008 only)

Internet Explorer Enhanced Security Configuration (IE ESC) prevents you from being able to access websites unless you add them to the Trusted sites zone.

  1. Open Administrative Tools > Server Manager
  2. Click Configure IE ESC (on the right side under Security Information)
  3. Select Off for Administrators and Users
  4. Click OK

Set the Computer Name 

The computer may have been assigned a random computer name. This name will be saved in the captured image. If Sysprep is disabled, this computer name will also be assigned to other computers loaded with the image. It's helpful to name the computer something descriptive of the image so that you can tell what the image is when you connect to it via SSH.

  1. Open the Control Panel
  2. Click System and Security > Set the name of this computer
  3. Click Change settings
  4. Click Change
  5. Enter a Computer name and Workgroup

  6. Click OK 3 times

  7. Click Close
  8. Click Restart Later

Disable User Account Control

(Windows Vista, Windows 7, & Windows Server 2008 only)

User Account Control (UAC) is the mechanism that causes may of the pop-up windows to appear when you attempt to run programs on Windows 7 and Windows Server 2008. VCL will disable it when the image is captured but you can disable it while configuring the base image to make things a little easier.

  1. Open the Control Panel
  2. Click System and Security > Change User Account Control settings (Under Action Center)
  3. Move the slider to the bottom: Never notify
  4. Click OK
  5. Reboot the computer

Configure Windows Boot Options

It can be helpful to configure the Windows boot options as follows in order to be able to troubleshoot boot problems.

  1. Run msconfig.exe
  2. Select the Boot tab
  3. Click the checkboxes next to:
  4. No GUI boot - Does not display the Windows Welcome screen when

starting

  1. Boot log - Stores all information from the startup process in the

file %SystemRoot%Ntbtlog.txt

  1. OS boot information - Shows driver names as drivers are being loaded

during the startup process

  1. Make all boot settings permanent

  2. Click OK
  3. Click Yes
  4. Restart the computer

Verify Network Connectivity

The computer must be able to connect to the public and private networks.

  1. If DHCP is not being used, configure the IP addresses manually
  2. Verify that the computer has IP addresses for both the public and private network adapters:
  3. Open a command prompt:

{tip}cmd.exe{tip}

  1. Check the network configuration:

{tip}ipconfig /all{tip}

  1. Verify Internet access by opening Internet Explorer and browsing to a public website

Some Windows versions (especially Windows Vista) have trouble properly routing outward network traffic if there are multiple network interfaces. If you can not get to the Internet, set the private network interface to ignore default routes which causes all outward traffic not destined for the private network to be sent through the public interface:

  1. Open a command prompt (this must be done as Administrator under Windows 6.x): Start > All Programs > Accessories > right-click Command prompt > Run as Administrator
  2. Determine the name of the private interface from the ipconfig output (should be either “Local Area Connection” or “Local Area Connection 2”)
  3. Execute the command using the private interface name from step 2: {tip}netsh.exe interface ip set interface “Local Area Connection” ignoredefaultroutes=enabled{tip}
    • The command should display Ok.
  4. Attempt to access the Internet again

Install Windows Updates

  1. Open Internet Explorer
  2. Run Windows Update
    • Install all recommended updates, reboot if necessary
  3. Run Windows Update again to check for additional updates

Install Drivers

Open up the Device Manager: Control Panel > System > Hardware tab > Device Manager

If any devices are unknown or missing drivers, you will need to locate and download the appropriate driver and install it.

Save a copy of the drivers you had to install in the appropriate Drivers directory on the management node: {panel}/usr/local/vcl/tools/Windows.../Drivers{panel} There are multiple Windows... directories under /usr/local/vcl/tools. The names create a hierarchy so that files which can be used by multiple versions of Windows only need to be stored in a single location on the management node.  There are 3 levels that make up the hierarchy:

  1. The directory named Windows should contain files that work on all versions of Windows: {panel}/usr/local/vcl/tools/Windows/Drivers{panel}
  2. The directories named Windows_Version_x should contain files that only work on a particular major version of Windows. {info}The Windows version number can be obtained by executing ver from a command prompt{info}
    • Windows_Version_5 should contain files that work on versions of Windows numbered 5.x (Windows XP and Windows Server 2003). {panel}/usr/local/vcl/tools/Windows_Version_5/Drivers{panel}
    • Windows_Version_6 should contain files that work on versions of Windows numbered 6.x (Windows Vista, Windows Server 2008, and Windows 7). {panel}/usr/local/vcl/tools/Windows_Version_5/Drivers{panel}
  3. The directories named after a specific version (Windows_XP, Windows_Server_2008, etc.) should contain files that only work on that version.  For example, if a driver only works under XP save it under: {panel}/usr/local/vcl/tools/Windows_XP/Drivers{panel}

During the image capture process, the Windows* directories that pertain to the OS being captured are copied to C:\cygwin\home\root\VCL on the Windows computer.  Each Windows* directory is overlayed into the same VCL directory.  They are copied in the order listed above, from most general to most specific. For example, if a Windows Server 2008 image is being captured the directories copied are:

  1. {panel}/usr/local/vcl/tools/Windows{panel}
  2. {panel}/usr/local/vcl/tools/Windows_Version_6{panel}
  3. {panel}/usr/local/vcl/tools/Windows_Server_2008{panel}

The directory organization under each Drivers directory does not matter.  However, it's recommended that they be organized by device type:

  • {panel}/usr/local/vcl/tools/Windows.../Drivers/Chipset{panel}
  • {panel}/usr/local/vcl/tools/Windows.../Drivers/Network{panel}
  • {panel}/usr/local/vcl/tools/Windows.../Drivers/Storage{panel}
  • {panel}/usr/local/vcl/tools/Windows.../Drivers/Video{panel}

For example, after testing several drivers you determine the following:

  • An Intel chipset driver works for all versions of Windows. Save it in: {panel}/usr/local/vcl/tools/Windows/Drivers/Chipset/Intel-5000{panel}
  • A Broadcom NetXtreme network driver only works for Windows XP and Windows Server 2003. Save it in: {panel}/usr/local/vcl/tools/Windows_Version_5/Drivers/Network/Broadcom-NetXtreme{panel}
  • An ATI video driver only works for Windows. Save it in: {panel}/usr/local/vcl/tools/Windows_XP/Drivers/Video/ATI-ES1000{panel}

When a Windows XP image is captured, the drivers will be copied to:

  • {panel}C:\cygwin\home\root\VCL\Drivers\Chipset\Intel-5000{panel}
  • {panel}C:\cygwin\home\root\VCL\Drivers\Network\Broadcom-NetXtreme{panel}
  • {panel}C:\cygwin\home\root\VCL\Drivers\Video\ATI-ES1000{panel}

The VCL image capture process then configures the Windows computer to locate and install the drivers copied to the computer when the image is loaded.

Install Hotfix KB942589

{color:#000000}The hotfix available from the following page must be installed i{color}f you are installing the 64-bit version of Windows XP or Windows Server 2003: http://support.microsoft.com/kb/942589

You will need to click on the View and request hotfix downloads link, enter your email address, and a download link will be sent to you.

Next Step: VCL:Install & Configure Cygwin SSHD