You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 46
Next »
You will need the following:
- VMware Server 1.x RPM installation file
- VMWare Server 1.x 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
These instructions assume you have root access and are using a bash shell:
Remove Existing Virtualization Components
yum groupremove "Virtualization" -y
Make Sure The Host Computer Is Not Running A Xen Kernel
VMWare Server cannot be installed on a computer running a Xen kernel. To determine if a Xen kernel is being used:
The following output indicates a Xen kernel is being used:
Linux blade1g6-4 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
If "xen" appears in the output of the previous command, replace the Xen Kernel with the following commands:
yum update ecryptfs-utils -y
yum install kernel kernel-devel -y
yum remove xen kernel-xen -y
Check the grub.conf file to make sure it is not configured to boot using the Xen Kernel
less /boot/grub/grub.conf
The grub.conf file should NOT look like this:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-92.el5
module /vmlinuz-2.6.18-92.el5xen ro root=LABEL=/ pci=nommconf
module /initrd-2.6.18-92.el5xen.img
The grub.conf file SHOULD look like this:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.1.14.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.14.el5 ro root=LABEL=/1 pci=nommconf
initrd /initrd-2.6.18-128.1.14.el5.img
After removing the Xen kernel, reboot the computer:
Install VMWare Server
- Download the latest VMware Server 1.x RPM from http://www.vmware.com
(Note: these instructions assume you saved the RPM into /install)
- Install the VMWare Server RPM:
rpm -ivh /install/VMware-server-1.0.8-126538.i386.rpm
- Configure VMWare Server:
Note: if you receive an error message you may need to install or update some libraries and then run vmware-config.pl again:
yum install glibc-devel -y
yum install glibc -y
yum install libXtst-devel -y
VMware networking should be configured as follows after answering the questions asked by vmware-config.pl
-vmnet0 is bridged to eth1
-vmnet1 is a host-only network on private subnet 192.168.0.0.
- Press ENTER to view the license agreement, scroll to the bottom, type yes and press ENTER
In which directory do you want to install the mime type icons?
[/usr/share/icons] ENTER
What directory contains your desktop menu entry files?
These files have a .desktop file extension. [/usr/share/applications] ENTER
In which directory do you want to install the application's icon?
[/usr/share/pixmaps] ENTER
None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes] ENTER
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18-128.1.14.el5/build/include] ENTER
Do you want networking for your virtual machines? (yes/no/help) [yes] ENTER
Your computer has multiple ethernet network interfaces available: eth0, eth1,
virbr0. Which one do you want to bridge to vmnet0? [eth0] eth1
Do you wish to configure another bridged network? (yes/no) [no] ENTER
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no
Do you want to be able to use host-only networking in your virtual machines?
[no] yes
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] no
- What will be the IP address of your host on the private
network? 192.168.0.1
- What will be the netmask of your private network? 255.255.0.0
- DHCP information is displayed, press ENTER
Do you wish to configure another host-only network? (yes/no) [no] ENTER
The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use [904] ENTER
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] ENTER
The path "/var/lib/vmware/Virtual Machines" does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? [yes] ENTER
- Please enter your 20-character serial number
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: enter the serial number
- Verify the host-only network was configured correctly:
You should see a vmnet1 interface using IP address 192.168.0.1:
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
If you restart the vmware service (/sbin/service vmware restart), you should see the following:
Starting VMware services:
Virtual machine monitor OK
Virtual ethernet OK
Bridged networking on /dev/vmnet0 OK
Host-only networking on /dev/vmnet1 (background) OK
Starting VMware virtual machines... OK
Create a Virtual Machine
- Launch the VMWare Server console:
- Connect to Local Host
- Create a new VM
- Virtual Machine Configuration: Typical
- Guest Operating System: Microsoft Windows
Version: Windows XP Professional
- Name: vmwarewinxp-base7-v1
- Network connection: Custom
/dev/vmnet1
- Disk size: 8.0 GB
- Allocate all disk space now: no
- Split disk into 2GB files: yes
- Edit virtual machine settings
- 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
- Add: Ethernet Adapter
- Network Connection: Custom
/dev/vmnet0
Install Windows XP on the Virtual Machine
- Power on the the Virtual Machine
- 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)
- Region and Language Options - click Next
- Name: VCL
Organization: Apache.org
- Enter the Windows XP product key
- Computer name: vcl-winxp
Administrator password: vclPassword
- 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
- Enter "root" as the user name
- Power off the VM
- Delete the Windows XP ISO image from the host computer's hard drive to reduce the image size
rm -f /install/WinXP+SP3.iso
- Remove the VM's CD-ROM because it isn't needed anymore
- Edit virtual machine settings
- Select the CD-ROM drive
- Connection: Use a physical drive
- Device: Auto detect
- Virtual Device Node: IDE 0:1
- Power on the VM
Note: If you are shown an error stating "Cannot connect virtual device ide0:1", click No
- The root user should automatically log on
- Set the root account's password: either the user management GUI or execute the following command from a command prompt: net user root <PASSWORD>
- 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
- From within the XP VM, download and run the Cygwin installer to the desktop: 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: Desktop
- 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 Cygwin installation files from the desktop:
- Installer: setup.exe
- 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:
- 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:
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:
- Run the script and specify the node as an argument (either the node's DNS name or IP address can be used):
- Attempt to connect from the management node to the Windows VM via SSH using the key:
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:
![](/confluence/download/attachments/121138/vm-location-changed.jpg?version=1&modificationDate=1245915855000&api=v2)