This article describes how to install VMWare Tools and configure the network after installing a CentOS 6 ISO image.

VMware Tools are a set of utilities that we recommend installing to ensure that your operating system continues to have optimum performance.

Prerequisites
  • You have already installed CentOS 6.

  • You are in the Infrastructure > Servers section of the Cloud Panel.

Please Note

If you have not yet configured your server, it may only be accessible through the KVM console.

  • Select the desired server.

  • Click DVD Drive.

  • In the Applications tab, select the DVD VMWare Tools Linux.

  • Click Load DVD.

  • Click Actions > Launch KVM Console. The KVM Console opens in a new tab.

  • Click Send Ctrl+Alt+Del.

  • Log in with the following data:

    Login: root
    Password: Your chosen password
     

  • Optional: If you see the graphical interface of CentOS6, then open the terminal. To open the Terminal, click Applications > System Tools > Terminal.

  • Enter the command mkdir /media/dvd

  • Enter the command mount -t auto /dev/cdrom /media/dvd

    The DVD will be mounted.

  • Enter the command cd /media/dvd

  • To view the contents of the DVD, type the following command: ls

  • To unpack the archive, enter the command tar -xzf in the form tar -xzf /media/dvd/VMwareTools-VERSION.tar.gz

    Example: tar -xzf /media/dvd/VMwareTools-10.2.0-7253323.tar.gz -C/tmp

  • Change to the directory /tmp/vmware-tools-distrib. To do this, type the following command: cd /tmp/vmware-tools-distrib

  • To display the contents of the directory, type the following command: ls

  • To run the install script and install the tools with the default settings, enter the command ./vmware-install.pl

    The message In which directory do you want to install the binary files? [/usr/bin] appears.

  • Press Enter and the message What is the directory that contains the init directories (rc0.d/ to rc6.d/)? will appear.

  • Press Enter  and the message What is the directory that contains the init scripts? [/etc/init.d] appears.

  • Press Enter. The message In which directory do you want to install the deamon files? [/usr/sbin] appears.

  • Press Enter and the message In which directory do you want to install the library files? [/usr/lib/vmware-tools] appears.

  • Press Enter and the message The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? appears.

  • Type yes and press Enter. The message In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools] appears.

  • Press Enter and the message The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? appears.

  • Enter yes and press Enter. The message Before running VMware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config-tools.pl" Do you want this program to invoke the command for you now? appears.

  • Type yes and press Enter. The message The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [no] appears.

  • Type no and press Enter. The message The vmblock enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [no] appears.

  • Type no and press Enter. The message Would you like to enable VMware automatic kernel modules?[no] appears.

  • Enter no and press Enter.

VMware Tools will be installed.

Changing the Onboot Parameters After the Installation is Complete

CentOS configures the network interface correctly via DHCP, but sets the parameter ONBOOT=no if you do not activate the option Connect automatically during installation under Configure network (for the interface eth0). If the ONBOOT=no parameter is set, the network is not activated after the subsequent restart. In this case, server access is only possible using the KVM console. To change the onboot parameter after the installation is complete, follow these steps:

  • Open the editor.

  • Open /etc/sysconfig/network-scripts/ifcfg-eth0.

  • Change the parameter ONBOOT=no as follows: ONBOOT=yes

  • You only need to perform this step if you see the CentOS6 graphical user interface: Click Save.

  • You only need to perform this step if you see the CentOS6 graphical user interface: Click Applications > System Tools > Terminal.

  • To enable the interface, type the following command:
    [root@localhost ~]# ifup eth0