CentOS 5 has the same code base as RedHat ES 5 but is free available, without service agreements.
1. Download the virtual machine template from the VMWare marketplace on the virtual server: CentOS minimal install
2. Extract the archive to your virtual machine directory:
tar xjvf /root/CentOSMinimal.tar.bz2
3. Fix the permissions:
chown -R root.root CentOSMinimal/
4. Import the VM on the VMware Server Console:
"Open Existing Virtual Machine" => "Browse..."
5. Add a bridged network interface in the Server Console
6. Boot the virtual machine.
7. Changes on the VM:
Example config for eth1 (bridget network)
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.63.232 NETMASK=255.255.255.240 BROADCAST=192.168.63.239 NETWORK=192.168.63.224
Example for changing the hostname to eul0001207vmb: /etc/hosts:
127.0.0.1 eul0001207vmb localhost.localdomain localhost
NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=eul0001207vmb
See also network_configuration
Persistent routes can be added on the interface configuration files under /etc/sysconfig/network-scripts/
Create a file named “route-eth2” for routes on interface eth2. The config will be read on interface boot up.
192.168.63.32/27 via 192.168.63.254 192.168.63.0/24 via 192.168.63.254
In the VMware console choose VM > Install VMware Tools…
The remaining steps take place inside the virtual machine.
You do not use an actual CD-ROM to install VMware Tools, nor do you need to download the CD-ROM image or burn a physical CD-ROM of this image file. The VMware Workstation software contains an ISO image that looks like a CD-ROM to your guest operating system. This image contains all the files needed to install VMware Tools in your guest operating system.
Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom, modify the following commands to reflect the conventions used by your distribution.
mount /dev/cdrom /mnt cd /tmp tar zxf /mnt/vmware-linux-tools.tar.gz umount /mnt
cd vmware-tools-distrib ./vmware-install.pl
vmware-vdiskmanager -x 8Gb CentOSMinimal-s001.vmdk
Using VMWare Converter:
A site mentions that the expand process is slow and that VMWare Tools might need to be reinstalled.