You will need the following:
- VMware Server RPM installation file
- VMWare Server serial number
- Windows XP installation ISO file
- Windows XP product key
The following instructions assume the following locations on the management node:
- VMWare Server RPM: /install/VMware-server-1.0.8-126538.i386.rpm
- Windows XP ISO: /install/WinXP+SP3.iso
Install VMWare Server
- Establish root access: sudo bash
- Install the VMWare Server RPM:
No Format |
---|
rpm -ivh /install/VMware-server-1.0.8-126538.i386.rpm
|
- Run the following command to configure VMWare Server:
No Format |
---|
vmware-config.pl
|
Create a Virtual Machine
- Launch the VMWare Server console:
- Connect to Local Host
- Copy a Windows XP ISO image to the VMWare Server machine
- Create a new VM
- Type: Typical
- Guest OS: Microsoft Windows, Version: Windows XP Professional
- Name: Windows XP Base
- Network connection: Use bridged networking
- Disk size: 8.0 GB
- Allocate all disk space now: no
- Split disk into 2GB files: yes
- Configure the VM CD-ROM drive to use the Windows XP ISO image
- Connection: Use ISO image: browse to path of Windows XP ISO image:
/install/WinXP+SP3.iso
Install Windows XP on the Virtual Machine
- Power on the the VM
- Press ESC as soon as VM begins to start to display the boot menu
- Boot from the CD-ROM drive
- Press a key to boot from the CD (if displayed at bottom of screen as soon as VM begins to boot)
- Proceed through Windows XP installation
- Press Enter to setup up Windows XP now
- Press F8 to agree to the license agreement
- Configure the Windows partition
- Press Enter to set up Windows XP on the selected item (should be called "Unpartitioned space")
- Format the partition using the NTFS file system (Quick)
- Enter a name and organization
- Enter the Windows XP product key
- Enter a computer name and password
- Select a timezone
- Networking settings: Typical
- Member of a domain: No, leave default workgroup settings
- Do not turn on automatic updates
- Enter "root" as the user name
- If your management node is actually a VCL image, delete the Windows XP ISO image from the management node's hard drive to reduce the image size
- Reconfigure the VM CD-ROM
- Use physical drive
- Location: Host
- Run Microsoft Update
- Configure the root user account
- Set root's password: either the user management GUI or execute the following command:
No Format |
---|
net user root <PASSWORD>
|
- Make sure root is a member of the Administrators group using the user management GUI or execute the following command:
No Format |
---|
net localgroup Administrators root /ADD
|
- Install VMWare Tools (Note: you must have a CD-ROM drive configured for the VM in order to install VMware Tools)
- Click on the VM menu and select "Install VMWare Tools"
- Select Typical and proceed through the setup pages accepting the defaults
- Reboot the VM when installation is complete
Install Cygwin
- Download and run the Cygwin installer: http://cygwin.com/setup.exe
- Install from Internet
- Root Directory: C:\Cygwin
- Install For: Just Me
- Default Test File Type: DOS/text
- Local Package Directory: *C:*
- Internet Connection: Direct Connection
- Download Site: choose one (.edu FTP sites seem the fastest)
- Select Packages: Net: openssh
- Create icon on Desktop: No
- Add icon to Start Menu: No
- Delete the local package directory: C:\ftp%...cygwin...
- Launch C:\Cygwin\Cygwin.bat
- Download the cygwin-sshd-config.sh script to the following location on the Windows VM:
C:\Cygwin\home\root\cygwin-sshd-config.sh - Make sure the script is set to executable:
No Format |
---|
chmod +x /home/root/cygwin-sshd-config.sh
|
- Launch C:\Cygwin\Cygwin.bat
- Run the script and specify the root account password as an argument, enclose the password in ticks in case special characters are used in the password:
No Format |
---|
/home/root/cygwin-sshd-config.sh '<PASSWORD>'
|
Note: the sshd service probably will not start until the next step is completed - Open Start -> Run -> services.msc
- Double-click the Cygwin sshd service
- Open the Log On tab
- Enter the root account password twice and click OK, you should see a message stating root has been granted the Log On As A Service Right
- Click the General tab
- Click Start
Create an SSH key pair on the Management Node and Copy the Public Key to the authorized_keys File on the Windows XP VM
- Download the gen-node-key.sh script to the following location on the management node:
/root/gen-node-key.sh - Set the script to be executable:
No Format |
---|
chmod +x /root/gen-node-key.sh
|
- Run the script and specify the node as an argument (either the node's DNS name or IP address can be used):
No Format |
---|
/root/gen-node-key.sh 192.168.22.55
|
- Attempt to connect from the management node to the Windows VM via SSH using the key:
No Format |
---|
ssh -i /etc/vcl/vcl.key 192.168.22.55
|
Common Problems
You may see the following dialog box when powering on a VM which has been saved in a VCL image. Click on Always Keep: