Excerpt |
---|
This page describes how to mount the Windows installation media and install Windows for a base image. |
...
Mount the Installation Media
The Windows installation media needs to be mounted as a drive on the compute nodecomputer. 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:
VMware - Configure the VM to mount the ISO image as a CD-ROM drive
Note: these instructions assume a VM has already been created
- Copy the Windows installation ISO file to the VMware host server
- Add a CD-ROM drive which mounts the Windows installation ISO image by editing the virtual machine settings:
- Connection: Use ISO image:
- Browse to path of Windows installation ISO image
- Save the VM configuration
...
- Copy the Windows installation ISO file to the management node
- Determine the IP address or hostname of the IBM Advanced Management Module (AMM) for the BladeCenter chassis which contains the blade you are installing
- Open a web browser on the management nodeNavigate to the and enter the AMM's address
- Log in to the AMM
- Select Inactive session timeout value: no timeout
- Click Start New Session
- Click Remote Control
- Click Start Remote Control
- Set the Media Tray and KVM dropdown menus to the blade you are installing
- Click Select Image and click the arrow button to the right of it
- Navigate to the Windows installation ISO file which was saved to the management node and click Open
- Click Mount All
2. Install Windows
...
Boot to the Windows
...
Installation CD or DVD
- Power on the computer
- Press the key to display the boot menu as soon as the as the computer's POST screen is displayed (usually F12 for bare metal or ESC for metal blades or ESC for VMware)
- Boot from the CD-ROM drive
- Press a key to boot from the CD (this may be displayed be displayed at bottom of screen as soon as the computer begins to boot)Proceed to answer the Windows XP installation questions:
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
- Press Enter to setup up Windows XP now now
- Press F8 to agree to the license agreement agreement
- Configure the Windows partition
Windows partition - Press Enter to Enter to set up Windows XP on the selected item (should be called be called "Unpartitioned space")
- Format the partition using the NTFS file system (Quick)
- Region and Language Options - click Next
- Name: VCL
- Organization: Apache.org
- Enter your Windows XP product key key
- Computer name: vcl-winxp
Administrator password: choose a password (doesn't matter) - Administrator password: (doesn't matter, but it's recommended that password should match the WINDOWS_ROOT_PASSWORD setting in /etc/vcl/vcld.conf)
- Select the Select the timezone
- Networking settings: Typical
- Member of a domain: No, leave default workgroup settings
- Automatic updates: Not right now
- Connect to Internet: Skip
- Register: no
- User name: root
Windows XP setup should finish and the root account created during installation should automatically log on - 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 <password>
Windows 7 Installation
- Enter "root" as the user name (this generates the local root account and automatically adds root to the Administrators group)
3. Set root Password
The root account created during installation should automatically log on after installation is complete. Set the root account password by executing the following command from a command prompt (the Windows user management GUI can also be used):
net user root <PASSWORD>
...
- the regional information:
- Language to install: English
- Time and currency format: English (United States)
- Keyboard or input method: US
- Click Next
- Click Install now
Setup is starting... - Click the checkbox next to "I accept the license terms"
- Click Next
- Click Custom (advanced)
- 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:
- Click Drive options (advanced)
- Click Delete, then click OK to confirm
- Click New
- Click Apply (the size should be set to the maximum amount available
To ensure that all Windows features work correctly, Windows might create additional partitions for system files. - Click OK
- Click Next
Installing Windows...
Windows restarts
Starting Windows
Setup is updating registry settings - 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)
- Enter a password, password hint, and click Next
- Help protect your computer and improve Windows automatically: Ask me later
- Select a time zone, set the correct time, and click Next
Windows is finalizing your settings
Preparing your desktop
Desktop appears - If asked to set a network location, choose Work network
The root account logs in...
Windows Server 2008
- Select the language and click Next
- Click Install Now
- 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.)
- Click the checkbox next to I accept the license terms and click Next
- Click Custom (advanced)
- 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... - 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:
- Click Start > Administrative Tools > Server Manager
- Open Configuration > Local Users and Groups > Users
- Open the Action menu > New User
- User name: root
- Enter a password twice
- User must change password at next logon: no
- Password never expires: yes
- Click Create
- Click Close
- Double-click the root user
- Select the Member Of tab
- Click Add
- Enter the object names to select: Administrators
- 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:
- Open the Control Panel
- Click Turn Windows features on or off
- Click Features
- Click Add Features
- Click the checkbox next to Desktop Experience
- Click Add Required Features
- Click Next
- Click Install
The features are installed... - Click Close
- Click No to not reboot the computer
- 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:
...
- Open Control Panel > System > Remote tab
- Click the checkbox next to Allow users to connect remotely to this computer
- Click OK
...
Windows Vista, Windows 7, & Windows Server 2008:
...
- Open Control Panel > System and Security > System
- Click Remote settings
- Select Allow connections from computers running any version of Remote Desktop (less secure)
- 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 |
---|
rdesktop -g 1024x768 <IP address> & |
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.
- Open Administrative Tools > Server Manager
- Click Configure IE ESC (on the right side under Security Information)
- Select Off for Administrators and Users
- 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.
- Open the Control Panel
- Click System and Security > Set the name of this computer
- Click Change settings
- Click Change
- Enter a Computer name and Workgroup
- Click OK 3 times
- Click Close
- 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.
- Open the Control Panel
- Click System and Security > Change User Account Control settings (Under Action Center)
- Move the slider to the bottom: Never notify
- Click OK
- 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.
- Run msconfig.exe
- Select the Boot tab
- Click the checkboxes next to:
- No GUI boot - Does not display the Windows Welcome screen when starting
- Boot log - Stores all information from the startup process in the file %SystemRoot%Ntbtlog.txt
- OS boot information - Shows driver names as drivers are being loaded during the startup process
- Make all boot settings permanent
- Click OK
- Click Yes
- Restart the computer
Verify Network Connectivity
The computer must be able to connect to the public and private networks.
- If DHCP is not being used, configure the IP addresses manually
- Verify that the computer has IP addresses for both the public and private network adapters:
- Open a command prompt:
- Check the network configuration:
- 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:
- 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 - Determine the name of the private interface from the ipconfig output
(should be either "Local Area Connection" or "Local Area Connection 2") - Execute the command using the private interface name from step 2:
Tip |
---|
netsh.exe interface ip set interface "Local Area Connection" ignoredefaultroutes=enabled |
- The command should display Ok.
- Attempt to access the Internet again
Install Windows Updates
- Open Internet Explorer
- Run Windows Update
- Install all recommended updates, reboot if necessary
- 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 |
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:
- The directory named Windows should contain files that work on all versions of Windows:
Panel |
---|
/usr/local/vcl/tools/Windows/Drivers |
- 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 |
- 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 |
- 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 |
- 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
Note: save the driver in the most general Windows drivers directory possible: If a driver only works under XP , save it under: Panel |
---|
/usr/local/vcl/tools/Windows_XP/Drivers |
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:
Panel |
---|
/usr/local/vcl/tools/Windows |
/DriversIf it also works for Server 2003, save it under Windows_Version_5/Drivers: Panel |
---|
/usr/local/vcl/tools/Windows_Version_6 |
Panel |
---|
/usr/local/vcl/tools/Windows_Server_2008 |
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 |
---|
/usr/local/vcl/tools/Windows.../Drivers/Network |
Panel |
---|
/usr/local/vcl/tools/Windows.../Drivers/Storage |
Panel |
---|
/usr/local/vcl/tools/Windows |
...
For example, after testing several drivers you determine the following:
...
- works for all versions of Windows
...
- . Save it in:
Panel |
---|
/usr/local/vcl/tools/Windows/Drivers/Chipset/Intel-5000 |
- 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 |
- An ATI video driver only works for Windows. Save it in:
Panel |
---|
/usr/local/vcl/tools/Windows_XP/Drivers |
...
When a Windows XP image is captured, the drivers will be copied to:
Panel |
---|
C:\cygwin\home\root\VCL\Drivers\Chipset\Intel-5000 |
Panel |
---|
C:\cygwin\home\root\VCL\Drivers\Network\Broadcom-NetXtreme |
Panel |
---|
C:\cygwin\home\root\VCL\Drivers\Video\ATI-ES1000 |
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
...
(64-bit Windows XP Windows Server 2003 only)
...
The hotfix available from the following page must be installed if 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: Install and Configure Cygwin SSHD
5. Verify Network Connectivity
The compute node must be able to connect to the public and private networks.
- If DHCP is not being used, configure the IP addresses manually
- Verify that the computer has IP addresses for both the public and private network adapters:
- Open a command prompt
- Run ipconfig /all
- Verify Internet access by opening Internet Explorer and browsing to a public website
6. Install Windows Updates
...