User Tools

Site Tools


Setting up virtual machines on VMWare server

Setting up CentOS 5

CentOS 5 has the same code base as RedHat ES 5 but is free available, without service agreements.

System information

  • Internet access over NAT interface
  • Intranet access with static private IP


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:

  • vi /etc/sysconfig/keyboard ⇒ change keyboard to KEYTABLE=“sg-latin1” ⇒ reboot
  • change the root password
  • change network settings for the newly added interface:
vi /etc/sysconfig/network-scripts/ifcfg-eth1

Example config for eth1 (bridget network)

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

Example for changing the hostname to eul0001207vmb: /etc/hosts:       eul0001207vmb localhost.localdomain localhost


Add the route for inter network connectivity

:?: 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. via via

Install vmware tools on guest OS

  • Power on the virtual machine.
  • After the guest operating system has started, prepare your virtual machine to install VMware Tools.

In the VMware console choose VM > Install VMware Tools…

:!: The remaining steps take place inside the virtual machine.

  • Be sure the guest operating system is running in text mode. You cannot install VMware Tools while X is running.
  • As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.

:!: 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
  • Run the VMware Tools installer.
cd vmware-tools-distrib

Resize VMWare disk image

vmware-vdiskmanager -x 8Gb CentOSMinimal-s001.vmdk

Using VMWare Converter:

  1. Turn off the virtual machine;
  2. Start the VMWare Converter application;
  3. Open the wizard;
  4. Select 'standalone virtual machine' as the source and destination system;
  5. Choose 'Select volumes and resize to save or add space';
  6. Enter a new size and voila, you're done!

A site mentions that the expand process is slow and that VMWare Tools might need to be reinstalled.

/srv/ · Last modified: 2010/04/22 07:43 (external edit)