How to Reclaim Free Space for Linux Root Partition using Zerofree

This article discussed about how we can reclaim the free space for linux root partition that was implemented using thin provisioned disks in Linux VMware virtual machine (VM). Common advantages by implementing thin provisioned disks in VMware is the administrator are able to over-allocate storage because the provisioned thin disks consume only the space used. The concept of thin provisioning disk disregard either the operating system running on Linux or Windows. However, by using thin provisioned disks, you will find that vmdk file size still expands over the time whenever you install, uninstall or delete applications in VM. You will noticed that the vmdk file size does not shrink or return to its previous size. When this happens to the linux VM, we need to use zerofree utility to reclaim and shrink the free space. The following steps is mainly to reclaim free space for linux root partition, tested in CentOS 7 and RHEL 7.

1. Install “zerofree” on your virtualbox guest machine.

2. Run this command to boot into rescue mode :

# systemctl rescue

3. In the rescue mode, enter root password :

4. Mount the root partition as read-only. Then run zerofree command. Once zerofree command complete, kindly reboot the VM.

reclaim-freespace-zerofree-1

# mount -o remount, ro /dev/mapper/centos-root
# zerofree -v /dev/mapper/centos-root

5. Do a virtual clone V2V using vCenter or vmkfstool command. You will notice the vmdk size reduce to only the space used.

How to Install open-vm-tools in CentOS 6.6

Q. How to install open-vm-tools in linux CentOS 6.6 ?

A. VMware is announcing the release of large portions of VMware Tools for Linux, Solaris and FreeBSD guests under GPL and GPL-compatible licenses. VMware is also announcing the creation of the Open Virtual Machine Tools (“open-vm-tools”) project on Sourceforge.net. Even-though CentOS 6 not on the recommendation list, you still able to install the third party VMware-Tools (open-vm-tools) via EPEL repo as below steps.

open-vm-tools is available with these operating systems:

  • Fedora 19 and later releases
  • Debian 7.x and later releases
  • openSUSE 11.x and later releases
  • Recent Ubuntu releases (12.04 LTS, 13.10 and later)
  • Red Hat Enterprise Linux 7.0 and later releases
  • SUSE Linux Enterprise 12 – available Q4 2014
  • CentOS 7
  • Oracle Linux 7

1. Prepare EPEL repo for CentOS 6.6

[root@centos66 ~]# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
[root@centos66 ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

2. Simply run yum command to install open-vm-tools

[root@centos66 ~]# yum install open-vm-tools -y

Examples :

[root@centos66 ~]# yum install open-vm-tools -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: kartolo.sby.datautama.net.id
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
Resolving Dependencies
--> Running transaction check
---> Package open-vm-tools.x86_64 0:9.4.6-1.el6 will be installed
--> Processing Dependency: libicuuc.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libicudata.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Running transaction check
---> Package libdnet.x86_64 0:1.12-6.el6 will be installed
---> Package libicu.x86_64 0:4.2.1-9.1.el6_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch               Version                        Repository        Size
====================================================================================================
Installing:
 open-vm-tools             x86_64             9.4.6-1.el6                    epel             402 k
Installing for dependencies:
 libdnet                   x86_64             1.12-6.el6                     epel              28 k
 libicu                    x86_64             4.2.1-9.1.el6_2                base             4.9 M

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 5.3 M
Installed size: 20 M
Downloading Packages:
(1/3): libdnet-1.12-6.el6.x86_64.rpm                                         |  28 kB     00:00
http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: [Errno 12] Timeout on http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
(2/3): libicu-4.2.1-9.1.el6_2.x86_64.rpm                                     | 4.9 MB     01:21
(3/3): open-vm-tools-9.4.6-1.el6.x86_64.rpm                                  | 402 kB     00:04
----------------------------------------------------------------------------------------------------
Total                                                                44 kB/s | 5.3 MB     02:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : libdnet-1.12-6.el6.x86_64                                                        1/3
  Installing : libicu-4.2.1-9.1.el6_2.x86_64                                                    2/3
  Installing : open-vm-tools-9.4.6-1.el6.x86_64                                                 3/3
  Verifying  : libicu-4.2.1-9.1.el6_2.x86_64                                                    1/3
  Verifying  : open-vm-tools-9.4.6-1.el6.x86_64                                                 2/3
  Verifying  : libdnet-1.12-6.el6.x86_64                                                        3/3

Installed:
  open-vm-tools.x86_64 0:9.4.6-1.el6

Dependency Installed:
  libdnet.x86_64 0:1.12-6.el6                    libicu.x86_64 0:4.2.1-9.1.el6_2

Complete!

3. Start vmtoolsd service :

[root@centos66 ~]# service vmtoolsd start

How to Install VMware Tools on RHEL 7/CentOS 7

VMware ToolsVMware Tools is one of important components for virtual machine (VM) in order get excellent performance. It is a group of utilities that help to enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the VM. Without the VMware Tools, guest OS performance will lacks some of the important functionality. Below steps shows how to install the VMware Tools on RHEL 7, CentOS 7 and Oracle Linux 7.

How to Install VMware Tools ?

Option 1 (Recommended by VMware) – VMware support of open-vm-tools

open-vm-tools is an open source implementation of VMware Tools from third parties and contains utilities that enhances virtualization management, administration and functions of the virtual machine in VMware environments. The ultimate goal is to enable the operating system vendors and/or communities and virtual appliance vendors to bundle VMware Tools into their product releases.

# yum install open-vm-tools
Option 2 :

1. Install prerequisites :

# yum install perl gcc make kernel-headers kernel-devel -y

2. Attach the vmware tools sofware from vSphere client.

3. Mount the vmware tools package into /mnt :

# mount /dev/cdrom /mnt
mount: /dev/sr0 is write-protected, mounting read-only

4. Copy vmware tool packagae into /tmp :

# cd /mnt
# ls
manifest.txt     VMwareTools-9.4.0-1280544.tar.gz  vmware-tools-upgrader-64
run_upgrader.sh  vmware-tools-upgrader-32
# cp -p VMwareTools-9.4.0-1280544.tar.gz /tmp

5. Go to /tmp directory and extract the vmware tools package :

# cd /tmp
# tar xzvf VMwareTools-9.4.0-1280544.tar.gz

6. Go to extracted folder, vmware-tools-distrib :

# cd vmware-tools-distrib
# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl

7. Run vmware-install.pl to start installation :

# ./vmware-install.pl

Example:

# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

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?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

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? [yes]

The installation of VMware Tools 9.4.0 build-1280544 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

Initializing...


Making sure services for VMware Tools are stopped.

Stopping vmware-tools (via systemctl):                     [  OK  ]


The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

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]

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

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]

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can be

enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]

No X install found.

Creating a new initrd boot image for the kernel.
Starting vmware-tools (via systemctl):                     [  OK  ]
The configuration of VMware Tools 9.4.0 build-1280544 for Linux for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

8. Once successfully installed, make sure you umount back the /mnt :

# umount /mnt

 

How to Install VMware Tools on Ubuntu 14.04

VMware Tools is a group of utilities and drivers that enhances the performance of the virtual machine’s guest operating system and improves interaction between the guest and the host when running on a VMware Esx/Esxi, VMware Player, VMware Server or VMware Workstation. This post will show you how to install VMware Tools on Ubuntu 14.04. There are multiple way to install VMware Tools into an Ubuntu VM. This post will describe how you can install VMware Tools from vSphere client installer.

1. Install required packages:

ehowstuff@ubuntu14:~$ sudo-get install build-essential linux-header-$(uname -r)

2. Login to vCenter using vsphere client, right clicking on the Ubuntu 14.04 VM, selecting “Guest”, and then choosing “Install VMware Tools”.

3. Mount the VMware Tools CD image to /media/cdrom

ehowstuff@ubuntu14:~$ sudo mount /dev/cdrom /media/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only

4. Copy the compressed VMware Tools installer files to /tmp in the local directory :

ehowstuff@ubuntu14:~$ cd /media/cdrom
ehowstuff@ubuntu14:/media/cdrom$ ls
manifest.txt  VMwareTools-8.3.7-341836.tar.gz
ehowstuff@ubuntu14:/media/cdrom$ cp VMwareTools-8.3.7-341836.tar.gz /tmp

5. Unmount the VMware Tools CD image :

ehowstuff@ubuntu14:/media/cdrom$ cd
ehowstuff@ubuntu14:~$ sudo umount /media/cdrom

6. Extract the compressed VMware Tools installer :

ehowstuff@ubuntu14:~$ cd /tmp
ehowstuff@ubuntu14:/tmp$ tar xzvf VMwareTools-8.3.7-341836.tar.gz

7. Change directories into the VMware Tools distribution by running the command:

ehowstuff@ubuntu14:~$ cd /tmp/vmware-tools-distrib/
ehowstuff@ubuntu14:/tmp/vmware-tools-distrib$

8. Install VMware Tools by running the command:

ehowstuff@ubuntu14:/tmp/vmware-tools-distrib$ sudo ./vmware-install.pl -d
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

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?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

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? [yes]

The installation of VMware Tools 8.3.7 build-341836 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

Initializing...

WARNING: A module identified as vsock has been found at
/lib/modules/3.13.0-24-generic/kernel/net/vmw_vsock/vsock.ko and at
/lib/modules/3.13.0-24-generic/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko.
Leaving both modules in there could potentially cause a race condition when a
device is added.  We reccomend you remove one of them, run 'depmod -a' and then
re-run this configurator.


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   Virtual Printing daemon:                                            done
   Unmounting HGFS shares:                                             done
   Guest filesystem driver:                                            done


update-rc.d: warning:  start runlevel arguments (S) do not match vmware-tools Default-Start values (2 3 5)
 Adding system startup for /etc/init.d/vmware-tools ...
   /etc/rc0.d/S36vmware-tools -> ../init.d/vmware-tools
   /etc/rc6.d/S36vmware-tools -> ../init.d/vmware-tools
   /etc/rcS.d/S38vmware-tools -> ../init.d/vmware-tools
The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.


WARNING: This program cannot compile any modules for the following reason(s)...

- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.

[ Press Enter key to continue ]


The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


The vmblock module enables dragging or copying files from within a host and
dropping or pasting them onto your guest (host to guest drag and drop and file
copy/paste).  The rest of the software provided by VMware Tools is designed to
work independently of this feature (including guest to host drag and drop and
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
you can install the driver by running vmware-config-tools.pl again after making
sure that gcc, binutils, make and the kernel sources for your running kernel
are installed on your machine. These packages are available on your
distribution's installation CD.
[ Press Enter key to continue ]

The module vmci has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmci to override.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vsock to override.

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

No X install found.

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest operating system daemon:                                      done
   Virtual Printing daemon:                                            done

The configuration of VMware Tools 8.3.7 build-341836 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Note: The -d switch assumes that you want to accept the defaults. If you don’t use -d switch, kindly choose the default for all questions.

9. Once installed, reboot the virtual machine :

ehowstuff@ubuntu14:~$ sudo reboot

How to Install VMware Tools on CentOS 6.5

vmwaretoolsVMware Tools is one of important components in order to run virtual machine (VM) with excellent performance. It is a group of utilities that help to enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the VM. Without the VMware Tools, guest OS performance will lacks some of the important functionality. Below steps shows how to install the VMware Tools on CentOS 6.5 :

1. Install the prerequisites into your CentOS 6.5.

[root@centos6 ~]# yum install perl gcc make kernel-headers kernel-devel -y

Example.

[root@centos6 ~]# yum install perl gcc make kernel-headers kernel-devel -y
Loaded plugins: fastestmirror
base                                                                         | 3.7 kB     00:00
http://ossm.utm.my/centos/6.5/os/x86_64/repodata/617a880b84a87969e04bfeebb1b96d5f441da42ee931d374fa6b6d57decd821e-primary.sqlite.bz2: [Errno 12] Timeout on http://ossm.utm.my/centos/6.5/os/x86_64/repodata/617a880b84a87969e04bfeebb1b96d5f441da42ee931d374fa6b6d57decd821e-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
base/primary_db                                                              | 4.4 MB     00:49
extras                                                                       | 3.4 kB     00:00
extras/primary_db                                                            |  18 kB     00:00
updates                                                                      | 3.4 kB     00:00
updates/primary_db                                                           |  65 kB     00:00
Setting up Install Process
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-4.el6.x86_64
---> Package kernel-devel.x86_64 0:2.6.32-431.el6 will be installed
---> Package kernel-headers.x86_64 0:2.6.32-431.el6 will be installed
---> Package perl.x86_64 4:5.10.1-136.el6 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-136.el6 for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6.x86_64
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be installed
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be installed
---> Package perl-version.x86_64 3:0.77-136.el6 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be installed
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                         Arch             Version                      Repository      Size
====================================================================================================
Installing:
 gcc                             x86_64           4.4.7-4.el6                  base            10 M
 kernel-devel                    x86_64           2.6.32-431.el6               base           8.7 M
 kernel-headers                  x86_64           2.6.32-431.el6               base           2.8 M
 perl                            x86_64           4:5.10.1-136.el6             base            10 M
Installing for dependencies:
 cloog-ppl                       x86_64           0.15.7-1.2.el6               base            93 k
 cpp                             x86_64           4.4.7-4.el6                  base           3.7 M
 glibc-devel                     x86_64           2.12-1.132.el6               base           978 k
 glibc-headers                   x86_64           2.12-1.132.el6               base           608 k
 libgomp                         x86_64           4.4.7-4.el6                  base           118 k
 mpfr                            x86_64           2.4.1-6.el6                  base           157 k
 perl-Module-Pluggable           x86_64           1:3.90-136.el6               base            40 k
 perl-Pod-Escapes                x86_64           1:1.04-136.el6               base            32 k
 perl-Pod-Simple                 x86_64           1:3.13-136.el6               base           212 k
 perl-libs                       x86_64           4:5.10.1-136.el6             base           578 k
 perl-version                    x86_64           3:0.77-136.el6               base            51 k
 ppl                             x86_64           0.10.2-11.el6                base           1.3 M

Transaction Summary
====================================================================================================
Install      16 Package(s)

Total download size: 40 M
Installed size: 98 M
Downloading Packages:
(1/16): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                                  |  93 kB     00:00
(2/16): cpp-4.4.7-4.el6.x86_64.rpm                                           | 3.7 MB     00:42
(3/16): gcc-4.4.7-4.el6.x86_64.rpm                                           |  10 MB     01:40
(4/16): glibc-devel-2.12-1.132.el6.x86_64.rpm                                | 978 kB     00:09
(5/16): glibc-headers-2.12-1.132.el6.x86_64.rpm                              | 608 kB     00:06
(6/16): kernel-devel-2.6.32-431.el6.x86_64.rpm                               | 8.7 MB     01:25
(7/16): kernel-headers-2.6.32-431.el6.x86_64.rpm                             | 2.8 MB     00:30
(8/16): libgomp-4.4.7-4.el6.x86_64.rpm                                       | 118 kB     00:01
(9/16): mpfr-2.4.1-6.el6.x86_64.rpm                                          | 157 kB     00:01
(10/16): perl-5.10.1-136.el6.x86_64.rpm                                      |  10 MB     01:35
(11/16): perl-Module-Pluggable-3.90-136.el6.x86_64.rpm                       |  40 kB     00:00
(12/16): perl-Pod-Escapes-1.04-136.el6.x86_64.rpm                            |  32 kB     00:00
(13/16): perl-Pod-Simple-3.13-136.el6.x86_64.rpm                             | 212 kB     00:01
(14/16): perl-libs-5.10.1-136.el6.x86_64.rpm                                 | 578 kB     00:05
(15/16): perl-version-0.77-136.el6.x86_64.rpm                                |  51 kB     00:00
(16/16): ppl-0.10.2-11.el6.x86_64.rpm                                        | 1.3 MB     00:11
----------------------------------------------------------------------------------------------------
Total                                                               103 kB/s |  40 MB     06:35
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
 Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                          1/16
  Installing : 4:perl-libs-5.10.1-136.el6.x86_64                                               2/16
  Installing : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                           3/16
  Installing : 3:perl-version-0.77-136.el6.x86_64                                              4/16
  Installing : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                     5/16
  Installing : 4:perl-5.10.1-136.el6.x86_64                                                    6/16
  Installing : ppl-0.10.2-11.el6.x86_64                                                        7/16
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                                 8/16
  Installing : mpfr-2.4.1-6.el6.x86_64                                                         9/16
  Installing : cpp-4.4.7-4.el6.x86_64                                                         10/16
  Installing : libgomp-4.4.7-4.el6.x86_64                                                     11/16
  Installing : kernel-headers-2.6.32-431.el6.x86_64                                           12/16
  Installing : glibc-headers-2.12-1.132.el6.x86_64                                            13/16
  Installing : glibc-devel-2.12-1.132.el6.x86_64                                              14/16
  Installing : gcc-4.4.7-4.el6.x86_64                                                         15/16
  Installing : kernel-devel-2.6.32-431.el6.x86_64                                             16/16
  Verifying  : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                     1/16
  Verifying  : kernel-headers-2.6.32-431.el6.x86_64                                            2/16
  Verifying  : cpp-4.4.7-4.el6.x86_64                                                          3/16
  Verifying  : glibc-devel-2.12-1.132.el6.x86_64                                               4/16
  Verifying  : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                          5/16
  Verifying  : libgomp-4.4.7-4.el6.x86_64                                                      6/16
  Verifying  : 4:perl-5.10.1-136.el6.x86_64                                                    7/16
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                         8/16
  Verifying  : 4:perl-libs-5.10.1-136.el6.x86_64                                               9/16
  Verifying  : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                          10/16
  Verifying  : kernel-devel-2.6.32-431.el6.x86_64                                             11/16
  Verifying  : gcc-4.4.7-4.el6.x86_64                                                         12/16
  Verifying  : 3:perl-version-0.77-136.el6.x86_64                                             13/16
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                       14/16
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                15/16
  Verifying  : glibc-headers-2.12-1.132.el6.x86_64                                            16/16

Installed:
  gcc.x86_64 0:4.4.7-4.el6                          kernel-devel.x86_64 0:2.6.32-431.el6
  kernel-headers.x86_64 0:2.6.32-431.el6            perl.x86_64 4:5.10.1-136.el6

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6                   cpp.x86_64 0:4.4.7-4.el6
  glibc-devel.x86_64 0:2.12-1.132.el6                 glibc-headers.x86_64 0:2.12-1.132.el6
  libgomp.x86_64 0:4.4.7-4.el6                        mpfr.x86_64 0:2.4.1-6.el6
  perl-Module-Pluggable.x86_64 1:3.90-136.el6         perl-Pod-Escapes.x86_64 1:1.04-136.el6
  perl-Pod-Simple.x86_64 1:3.13-136.el6               perl-libs.x86_64 4:5.10.1-136.el6
  perl-version.x86_64 3:0.77-136.el6                  ppl.x86_64 0:0.10.2-11.el6

Complete!

2. Attach the vmware tools sofware from vSphere client. Assumed that the host is ESXi 4.1.
1

3. Mount the attached vmware tool software.
[root@centos6 tmp]# mount /dev/cdrom /mnt
[root@centos6 tmp]# cd /mnt
[root@centos6 tmp]# ls
VMwareTools-8.3.7-341836.tar.gz  yum.log

4. Extract the VMware tools

[root@centos6 tmp]# tar xzvf VMwareTools-8.3.7-341836.tar.gz

5. Start install by issue command “./vmware-install.pl”

[root@centos6 tmp]# cd vmware-tools-distrib
[root@centos6 vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
[root@centos6 vmware-tools-distrib]# ./vmware-install.pl

Full installation as below :

[root@centos6 vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

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?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

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? [yes]

The installation of VMware Tools 8.3.7 build-341836 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

Initializing...

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

Found a compatible pre-built module for vmhgfs.  Installing it...

Found a compatible pre-built module for vmxnet.  Installing it...

Found a compatible pre-built module for vmblock.  Installing it...

Found a compatible pre-built module for vmci.  Installing it...

Found a compatible pre-built module for vsock.  Installing it...

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

No X install found.

Creating a new initrd boot image for the kernel.
   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]

The configuration of VMware Tools 8.3.7 build-341836 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

/sbin/restorecon:  Warning no default label for /tmp/vmware-block-restore0/tmp_file

How to Uninstall VMware Tools on Linux, Solaris, FreeBSD

Question :
How to Uninstall VMware Tools if upgrade of VMware Tools is incomplete and i got hit by any problem during installation ?

Answer :
Option 1 :
On a Linux guest operating system that has VMware Tools installed by using an RPM installer, enter the following command in a terminal :

[root@centos64 ~]# rpm -e VMwareTools

Option 2 :
On a Linux, Solaris, FreeBSD, NetWare guest operating system that has VMware Tools installed by vmware-install.pl, please log in as root and enter the following command in a terminal :

[root@centos64 ~]# vmware-uninstall-tools.pl

Example :

[root@centos64 ~]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

initctl: Unknown instance:
Stopping services for vmware-tools-thinprint

initctl: Unknown instance:
This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.0.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.0.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.0.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove
it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf/etc, and was about to remove it. Since
there are files in that directory that this program did not create, it will not
be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf, and was about to remove it. Since there
are files in that directory that this program did not create, it will not be
removed.

This program previously created the directory /usr/lib/vmware-tools/lib64, and
was about to remove it. Since there are files in that directory that this
program did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-tools, and was
about to remove it. Since there are files in that directory that this program
did not create, it will not be removed.

The removal of VMware Tools 9.2.2 build-893683 for Linux completed
successfully.  Thank you for having tried this software.

How to Install VMware Tools on CentOS 6.4

vmware-toolsThis post provides steps to install VMware Tools in CentOS 6.4. It is very important to install VMware Tools in the guest operating system. Without the VMware Tools, guest OS performance will lacks some of the important functionality. VMware Tools is a group of utilities that enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the virtual machine (VM). This is one of important components in order to provide perfect VM OS.

1. Choose your VM –> Click “Install VMware Tools” from the VMware Workstation menu, VMware Workstation temporarily connects the virtual machine’s first virtual CD-ROM drive to the ISO image file that contains the VMware Tools installer for your guest operating system and you are ready to begin the installation process.

2. Install prerequisites :

[root@centos64 ~]# yum install perl gcc make -y

Example :

[root@centos64 ~]# yum install perl gcc make -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-3.el6.x86_64
---> Package make.x86_64 1:3.81-20.el6 will be installed
---> Package perl.x86_64 4:5.10.1-129.el6 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-129.el6 for package: 4:perl-5.10.1-129.el6.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-129.el6.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-129.el6.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-129.el6.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-129.el6.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-129.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-3.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.107.el6.x86_64
---> Package libgomp.x86_64 0:4.4.7-3.el6 will be installed
---> Package perl-Module-Pluggable.x86_64 1:3.90-129.el6 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-129.el6 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-129.el6.x86_64
---> Package perl-libs.x86_64 4:5.10.1-129.el6 will be installed
---> Package perl-version.x86_64 3:0.77-129.el6 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.107.el6.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.107.el6.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package perl-Pod-Escapes.x86_64 1:1.04-129.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:2.6.32-358.2.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                          Arch              Version                          Repository          Size
==============================================================================================================
Installing:
 gcc                              x86_64            4.4.7-3.el6                      base                10 M
 make                             x86_64            1:3.81-20.el6                    base               389 k
 perl                             x86_64            4:5.10.1-129.el6                 base                10 M
Installing for dependencies:
 cloog-ppl                        x86_64            0.15.7-1.2.el6                   base                93 k
 cpp                              x86_64            4.4.7-3.el6                      base               3.7 M
 glibc-devel                      x86_64            2.12-1.107.el6                   base               974 k
 glibc-headers                    x86_64            2.12-1.107.el6                   base               604 k
 kernel-headers                   x86_64            2.6.32-358.2.1.el6               updates            2.3 M
 libgomp                          x86_64            4.4.7-3.el6                      base               118 k
 mpfr                             x86_64            2.4.1-6.el6                      base               157 k
 perl-Module-Pluggable            x86_64            1:3.90-129.el6                   base                38 k
 perl-Pod-Escapes                 x86_64            1:1.04-129.el6                   base                31 k
 perl-Pod-Simple                  x86_64            1:3.13-129.el6                   base               210 k
 perl-libs                        x86_64            4:5.10.1-129.el6                 base               576 k
 perl-version                     x86_64            3:0.77-129.el6                   base                50 k
 ppl                              x86_64            0.10.2-11.el6                    base               1.3 M

Transaction Summary
==============================================================================================================
Install      16 Package(s)

Total download size: 31 M
Installed size: 75 M
Downloading Packages:
(1/16): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                                            |  93 kB     00:01
(2/16): cpp-4.4.7-3.el6.x86_64.rpm                                                     | 3.7 MB     00:36
(3/16): gcc-4.4.7-3.el6.x86_64.rpm                                                     |  10 MB     01:36
(4/16): glibc-devel-2.12-1.107.el6.x86_64.rpm                                          | 974 kB     00:08
(5/16): glibc-headers-2.12-1.107.el6.x86_64.rpm                                        | 604 kB     00:10
(6/16): kernel-headers-2.6.32-358.2.1.el6.x86_64.rpm                                   | 2.3 MB     00:23
(7/16): libgomp-4.4.7-3.el6.x86_64.rpm                                                 | 118 kB     00:00
(8/16): make-3.81-20.el6.x86_64.rpm                                                    | 389 kB     00:03
(9/16): mpfr-2.4.1-6.el6.x86_64.rpm                                                    | 157 kB     00:01
(10/16): perl-5.10.1-129.el6.x86_64.rpm                                                |  10 MB     01:40
(11/16): perl-Module-Pluggable-3.90-129.el6.x86_64.rpm                                 |  38 kB     00:00
(12/16): perl-Pod-Escapes-1.04-129.el6.x86_64.rpm                                      |  31 kB     00:00
(13/16): perl-Pod-Simple-3.13-129.el6.x86_64.rpm                                       | 210 kB     00:02
(14/16): perl-libs-5.10.1-129.el6.x86_64.rpm                                           | 576 kB     00:05
(15/16): perl-version-0.77-129.el6.x86_64.rpm                                          |  50 kB     00:00
(16/16): ppl-0.10.2-11.el6.x86_64.rpm                                                  | 1.3 MB     00:11
--------------------------------------------------------------------------------------------------------------
Total                                                                         103 kB/s |  31 MB     05:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Pod-Escapes-1.04-129.el6.x86_64                                                    1/16
  Installing : 4:perl-libs-5.10.1-129.el6.x86_64                                                         2/16
  Installing : 3:perl-version-0.77-129.el6.x86_64                                                        3/16
  Installing : 1:perl-Module-Pluggable-3.90-129.el6.x86_64                                               4/16
  Installing : 1:perl-Pod-Simple-3.13-129.el6.x86_64                                                     5/16
  Installing : 4:perl-5.10.1-129.el6.x86_64                                                              6/16
  Installing : ppl-0.10.2-11.el6.x86_64                                                                  7/16
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                                           8/16
  Installing : kernel-headers-2.6.32-358.2.1.el6.x86_64                                                  9/16
  Installing : glibc-headers-2.12-1.107.el6.x86_64                                                      10/16
  Installing : glibc-devel-2.12-1.107.el6.x86_64                                                        11/16
  Installing : libgomp-4.4.7-3.el6.x86_64                                                               12/16
  Installing : mpfr-2.4.1-6.el6.x86_64                                                                  13/16
  Installing : cpp-4.4.7-3.el6.x86_64                                                                   14/16
  Installing : gcc-4.4.7-3.el6.x86_64                                                                   15/16
  Installing : 1:make-3.81-20.el6.x86_64                                                                16/16
  Verifying  : glibc-devel-2.12-1.107.el6.x86_64                                                         1/16
  Verifying  : gcc-4.4.7-3.el6.x86_64                                                                    2/16
  Verifying  : 1:perl-Pod-Escapes-1.04-129.el6.x86_64                                                    3/16
  Verifying  : 1:perl-Pod-Simple-3.13-129.el6.x86_64                                                     4/16
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                   5/16
  Verifying  : libgomp-4.4.7-3.el6.x86_64                                                                6/16
  Verifying  : 4:perl-5.10.1-129.el6.x86_64                                                              7/16
  Verifying  : 4:perl-libs-5.10.1-129.el6.x86_64                                                         8/16
  Verifying  : cpp-4.4.7-3.el6.x86_64                                                                    9/16
  Verifying  : 1:make-3.81-20.el6.x86_64                                                                10/16
  Verifying  : 3:perl-version-0.77-129.el6.x86_64                                                       11/16
  Verifying  : 1:perl-Module-Pluggable-3.90-129.el6.x86_64                                              12/16
  Verifying  : kernel-headers-2.6.32-358.2.1.el6.x86_64                                                 13/16
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                                 14/16
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                          15/16
  Verifying  : glibc-headers-2.12-1.107.el6.x86_64                                                      16/16

Installed:
  gcc.x86_64 0:4.4.7-3.el6          make.x86_64 1:3.81-20.el6          perl.x86_64 4:5.10.1-129.el6

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6                     cpp.x86_64 0:4.4.7-3.el6
  glibc-devel.x86_64 0:2.12-1.107.el6                   glibc-headers.x86_64 0:2.12-1.107.el6
  kernel-headers.x86_64 0:2.6.32-358.2.1.el6            libgomp.x86_64 0:4.4.7-3.el6
  mpfr.x86_64 0:2.4.1-6.el6                             perl-Module-Pluggable.x86_64 1:3.90-129.el6
  perl-Pod-Escapes.x86_64 1:1.04-129.el6                perl-Pod-Simple.x86_64 1:3.13-129.el6
  perl-libs.x86_64 4:5.10.1-129.el6                     perl-version.x86_64 3:0.77-129.el6
  ppl.x86_64 0:0.10.2-11.el6

Complete!

3. Reboot VM.

[root@centos64 ~]# reboot

4. Mount the installer.

[root@centos64 ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

5. Copy the installer to /tmp :

[root@centos64 ~]# cd /mnt
[root@centos64 mnt]# cp VMwareTools-9.2.2-893683.tar.gz /tmp

6. Extract the installer :

[root@centos64 ~]# cd /tmp
[root@centos64 tmp]# tar xzvf VMwareTools-9.2.2-893683.tar.gz

7. Enter the vmware-tools-distrib directory :

[root@centos64 tmp]# cd vmware-tools-distrib/

8. Install the VMware Tools :

[root@centos64 vmware-tools-distrib]# ./vmware-install.pl

How to Install VMware Tools on Red Hat Enterprise Linux 6.2 (RHEL 6.2)

This post will shows how to install VMware Tools on Red Hat Enterprise Linux 6.2 (RHEL 6.2). VMware Tools is a group of utilities that enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the virtual machine (VM). This is one of important components in order to provide perfect VM OS. Without the VMware Tools, guest OS performance will lacks some of the important functionality.

1. Install prerequisites :

[root@rhel62 ~]# yum install perl gcc make -y

2. Right click on the VM, click install VMware tools.
3. Mount the installer.

[root@rhel62 ~]# mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

4. Copy the isntaller to /tmp :

[root@rhel62 ~]# cd /mnt
[root@rhel62 mnt]# cp VMwareTools-9.2.2-893683.tar.gz /tmp

5. Extract the installer :

[root@rhel62 mnt]# cd /tmp
[root@rhel62 tmp]# tar xzvf VMwareTools-9.2.2-893683.tar.gz

6. Go to vmware-tools-distrib directory and install :

[root@rhel62 tmp]# cd vmware-tools-distrib/
[root@rhel62 vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl

Full installation steps :

[root@rhel62 vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

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?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

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? [yes]

The installation of VMware Tools 9.2.2 build-893683 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

Initializing...


Making sure services for VMware Tools are stopped.



The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
software that is integrated with vSphere to create backups of the virtual
machine. Do you wish to enable this feature? [no]

Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

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? [yes]

Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

Found a compatible pre-built module for vmxnet.  Installing it...


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?
[yes]

NOTICE:  It appears your system does not have the required fuse packages
installed.  The VMware blocking filesystem requires the fuse packages and its
libraries to function properly.  Please install the fuse or fuse-utils package
using your systems package management utility and re-run this script in order
to enable the VMware blocking filesystem.

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]

No X install found.

Creating a new initrd boot image for the kernel.
vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.2.2 build-893683 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

How to Install and Remove VMware Tools on CentOS 5.9

vmwareThis post focus on how to install and remove VMware Tools on CenOS 5.9. VMware Tools is important components in order to provide perfect VM Operating system(OS). It is a group of utilities that enhances the overall performance of the virtual machine’s guest OS and improves management of the virtual machine (VM). Please follow below steps to install and also remove the VMware Tools on CentOS 5.9:

Install VMware Tools on CentOS 5.9 :
1. Mount from media :

[root@centos59 ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only

2. Got to /mnt :

[root@centos59 ~]# cd /mnt
[root@centos59 mnt]# ls
manifest.txt  VMwareTools-9.2.2-893683.tar.gz

3. Copy VMwareTools from /mnt to /tmp :

[root@centos59 mnt]# cp VMwareTools-9.2.2-893683.tar.gz /tmp

4. Extract the VMwareTools :

[root@centos59 tmp]# tar xzvf VMwareTools-9.2.2-893683.tar.gz
[root@centos59 tmp]# cd vmware-tools-distrib

5. Start installing VMwareTools :

[root@centos59 vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

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? [yes]

The installation of VMware Tools 9.2.2 build-893683 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

Initializing...


Making sure services for VMware Tools are stopped.

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]


The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
software that is integrated with vSphere to create backups of the virtual
machine. Do you wish to enable this feature? [no]

Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


Found a compatible pre-built module for vmxnet3.  Installing it...


Found a compatible pre-built module for pvscsi.  Installing it...


Found a compatible pre-built module for vmmemctl.  Installing it...


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? [yes]

Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

Found a compatible pre-built module for vmxnet.  Installing it...


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?
[yes]

Found a compatible pre-built module for vmblock.  Installing it...


!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]

No X install found.

Creating a new initrd boot image for the kernel.
   Starting Virtual Printing daemon:                                   done
   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Paravirtual SCSI module:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Blocking file system:                                   [  OK  ]
   Guest operating system daemon:                          [  OK  ]
The configuration of VMware Tools 9.2.2 build-893683 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

Enjoy,

--the VMware team

Remove VMware Tools on CentOS 5.9 :

In Linux, Solaris, FreeBSD and NetWare, the is easy way to remove VMware-Tools as below :

[root@centos59 ~]# vmware-uninstall-tools.pl

Example :

[root@centos59 ~]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   VMware User Agent (vmware-user):                        [  OK  ]
   Blocking file system:                                   [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
   VM communication interface socket family:               [  OK  ]
   VM communication interface:                             [  OK  ]

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done

File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.0.

File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc is backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc.old.0.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangorc, and was about to remove it.
Somebody else apparently did it already.

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.0.

File /usr/lib/vmware-tools/lib32/libconf/etc/fonts/fonts.conf is backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/fonts/fonts.conf.old.0.

This program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules.old.0.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/pango, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc/fonts, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf/etc, and was about to remove it. Since
there are files in that directory that this program did not create, it will not
be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib32/libconf, and was about to remove it. Since there
are files in that directory that this program did not create, it will not be
removed.

This program previously created the directory /usr/lib/vmware-tools/lib32, and
was about to remove it. Since there are files in that directory that this
program did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-tools, and was
about to remove it. Since there are files in that directory that this program
did not create, it will not be removed.

The removal of VMware Tools 9.2.2 build-893683 for Linux completed
successfully.  Thank you for having tried this software.

How to Update Openfiler iSCSI Storage Appliance

openfilerThis quick post will show you two method to update the Openfiler appliance. On the previous post, i have describes in details on how to setup and configure Openfiler iSCSI Storage. Openfiler is an Open Source Network Attached Storage and Storage Area Network Solution.

1. First method to update the Openfiler is from terminal or ssh session. Login as a root to Openfiler iSCSI Storage Appliance. If Internet access is available: Test connectivity to the Internet by pinging conary.rpath.com (the online source for Openfiler updates) as below :

[root@storage01 ~]# ping conary.rpath.com
PING conary.rpath.com (208.82.215.41) 56(84) bytes of data.
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=0 ttl=52 time=395 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=1 ttl=52 time=402 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=2 ttl=52 time=403 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=3 ttl=52 time=408 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=4 ttl=52 time=405 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=5 ttl=52 time=409 ms
64 bytes from conary.rpath.com (208.82.215.41): icmp_seq=6 ttl=52 time=408 ms

If Internet access is available: Update the Openfiler installation by typing conary updateall and pressing Enter.

Note: It will take quite a few minutes for the updates to be downloaded and applied.

[root@storage01 ~]# conary updateall

Examples :

[root@storage01 ~]# conary updateall
Resolving dependencies...Performing critical system updates, will then restart update.
Applying update job 1 of 2:
    Update  conary:data (2.0.35-0.1-1 -> 2.1.9-0.1-1)
Applying update job 2 of 2:
    Update  conary:python (2.0.35-0.1-1 -> 2.1.9-0.1-1)
    Update  conary:runtime (2.0.35-0.1-1 -> 2.1.9-0.1-1)
Critical update completed, rerunning command...
Applying update job 1 of 24:
    Install info-vcsa(:user)=1-1-0.1
Applying update job 2 of 24:
    Install info-nagios(:user)=0-1-0.1
Applying update job 3 of 24:
    Update  acl(:doc :lib :locale :runtime) (2.2.47_1-0.1-1 -> 2.2.47_1-0.2-1)
    Update  aoe6(:doc :runtime) (64-1-1 -> 64-2-1)
    Install arecacli(:runtime)=v1.82_81103-1-3
    Update  attr(:doc :lib :locale :runtime) (2.4.41_1-0.1-1 -> 2.4.43_1-0.1-1)
Applying update job 4 of 24:
    Update  binutils(:doc :lib :locale :runtime) (2.17.50.0.6-7-0.0.1 -> 2.17.50.0.6-7-0.0.2)
    Update  conary (2.0.35-0.1-1 -> 2.1.9-0.1-1)
    Update  curl(:doc:lib:runtime) (7.15.3-1.1-1 -> 7.15.3-1.4-1)
    Update  cyrus-sasl(:lib) (2.1.21-5.2-1 -> 2.1.21-5.3-1)
    Install ddless(:doc :runtime)=1.3-1-1
Applying update job 5 of 24:
    Update  dhclient(:lib :runtime) (3.0.2-2.2-1 -> 3.0.7-0.4-1)
    Update  e2fsprogs(:data :doc :lib :locale :runtime) (1.40.8-0.2-1 -> 1.41.8-0.1-1)
    Update  ethtool(:doc :runtime) (/conary.rpath.com@rpl:devel//1/3-2-0.1 -> /conary.rpath.com@rpl:devel//2//openfiler.rpath.org@ofns:2/6-0.0.1-1)
    Update  gzip(:runtime) (1.3.5-4-0.1 -> 1.3.5-4.1-1)
Applying update job 6 of 24:
    Update  hwdata(:data :doc) (0.217-1.0.2-1 -> 0.225-0.0.2-1)
    Install hwdata:runtime=0.225-0.0.2-1
    Update  icu(:data :lib) (3.4-5.1-1 -> 3.4-5.2-1)
    Update  initscripts(:doc :locale :runtime) (8.12-8.18.4-1 -> 8.12-8.18.5-1)
    Install iperf(:doc :runtime)=2.0.4-1-0.1
Applying update job 7 of 24:
    Install iscsi-scst(:doc :runtime)=r1462-2-1
    Update  iscsi_trgt(:doc :runtime) (0.4.17-1-1 -> 1.4.19-2-1)
    Install kernel(:build-tree :configs :runtime :vmware)=2.6.29.6-0.24-1[~!kernel.pae,~kernel.smp]
Applying update job 8 of 24:
    Update  krb5(:config :data :doc :lib :runtime) (1.4.1-7.9-1 -> 1.4.1-7.10-1)
    Update  krb5-server(:config :doc :runtime) (1.4.1-7.9-1 -> 1.4.1-7.10-1)
    Update  krb5-services(:config :doc :runtime) (1.4.1-7.9-1 -> 1.4.1-7.10-1)
Applying update job 9 of 24:
    Update  krb5-workstation(:doc :runtime) (1.4.1-7.9-1 -> 1.4.1-7.10-1)
    Update  kudzu(:python :runtime) (1.1.116.2-3.6-1 -> 1.1.116.2-3.6-2)
    Update  lighttpd(:doc :lib :runtime) (1.4.20-0.1-1 -> 1.4.20-0.3-1)
    Update  lshw(:data :doc :runtime) (02.07-1.0.2-1 -> 02.14-0.0.1-1)
Applying update job 10 of 24:
    Install lsof(:doc :runtime)=4.75-3-0.1
    Update  module-init-tools(:doc :runtime) (/conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/3.1-5.3.1-2 -> /conary.rpath.com@rpl:devel//2//openfiler.rpath.org@ofns:2/3.4-2.0.2-1)
    Update  myri-firmware(:doc :lib :runtime) (v1.4.29-1-1[is: x86] -> 1.4.48b-1-1)
Applying update job 11 of 24:
    Update  net-snmp(:data :doc :lib :perl :runtime) (5.4.1-5.0.2-1 -> 5.4.1-5.3.1-1)
    Update  net-snmp-client(:data :doc :lib :runtime) (5.4.1-5.0.2-1 -> 5.4.1-5.3.1-1)
    Update  net-snmp-server(:data :doc :runtime) (5.4.1-5.0.2-1 -> 5.4.1-5.3.1-1)
Applying update job 12 of 24:
    Update  nfs-client(:doc :runtime) (1.0.10-4.6-1 -> 1.1.4-2.4-1)
    Update  nfs-server(:doc :lib :runtime) (1.0.10-4.6-1 -> 1.1.4-2.4-1)
    Update  nfs-utils(:doc :runtime) (1.0.10-4.6-1 -> 1.1.4-2.4-1)
    Update  open-iscsi(:doc :runtime) (/conary.rpath.com@rpl:devel//1/2.0_865-1.1-1 -> /conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/2.0_871-0.0.1-1)
    Update  openssh(:runtime) (4.9p1-0.1-1 -> 5.3p1-0.3-1)
Applying update job 13 of 24:
    Update  openssh-client(:doc :runtime) (4.9p1-0.1-1 -> 5.3p1-0.3-1)
    Update  openssh-server(:doc :runtime) (4.9p1-0.1-1 -> 5.3p1-0.3-1)
    Update  openssl(:config :data :lib :runtime) (0.9.7f-10.13-1[is: x86(~!i686)] -> 0.9.7f-10.16-1[is: x86(~!i686)])
Applying update job 14 of 24:
    Update  parted(:doc :lib :locale :runtime) (1.6.22-4.1.5-1 -> 1.6.22-4.1.6-1)
    Update  pciutils(:doc :runtime) (2.1.99-12-0.1 -> 2.2.3-7.1-1)
    Update  python(:lib :runtime) (2.4.1-20.17-1 -> 2.4.1-20.18-1)
    Update  qla-firmware(:lib :runtime) (/conary.rpath.com@rpl:devel//1/20070416-4-0.1[is: x86] -> /conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/2010205-0.0.1-1)
    Install qla-firmware:doc=2010205-0.0.1-1
Applying update job 15 of 24:
    Update  samba(:data :lib :runtime) (3.2.7-0.0.1-3 -> 3.4.5-0.0.1-1)
    Update  samba-client(:lib :runtime) (3.2.7-0.0.1-3 -> 3.4.5-0.0.1-1)
    Update  samba-server(:runtime) (3.2.7-0.0.1-3 -> 3.4.5-0.0.1-1)
    Update  scstadmin(:doc :perl :runtime) (1.0.0.x-5-1 -> r1411-1-1)
Applying update job 16 of 24:
    Update  sendmail(:doc :lib :runtime) (8.13.7-0.3-1[sasl] -> 8.13.7-0.4-1[sasl])
    Update  strace(:doc :perl :runtime) (4.5.12-2-0.1 -> 4.5.18-0.1-1)
    Install traceroute(:doc :runtime)=1.4a12-4-0.1
    Install userspace-kernel-firmware(:runtime)=2.6.29.6-0.24-1[~!kernel.pae,~kernel.smp]
Applying update job 17 of 24:
    Install autodir(:doc :lib :runtime)=0.99.9-2-1
    Install xfsdump(:doc :runtime)=3.0.1-0.0.1-1
    Update  xfsprogs(:doc :lib :runtime) (/conary.rpath.com@rpl:devel//1/2.6.25-4-0.1 -> /conary.rpath.com@rpl:devel//2//openfiler.rpath.org@ofns:2/3.0.1-0.0.2-1)
    Install xfsprogs:locale=3.0.1-0.0.2-1
Applying update job 18 of 24:
    Install autofs(:doc :lib :runtime)=4.1.4-5-0.1
    Update  bind(:lib) (9.3.4_P1-0.7-1[ipv6,~!pie,ssl] -> 9.4.3_P5-1.1-1)
    Update  bind-utils(:doc :runtime) (9.3.4_P1-0.7-1[ipv6,~!pie,ssl] -> 9.4.3_P5-1.1-1)
    Erase   device-mapper:doc=1.02.24-2-1
    Erase   device-mapper:runtime=1.02.24-2-1
    Update  lvm2:doc (2.02.34-1-1 -> 2.02.47-1-1)
Applying update job 19 of 24:
    Install device-mapper-multipath:lib=0.4.8-0.3-1
    Update  drbd(:doc :lib :runtime) (8.2.7-2-1[~!xen] -> 8.3.7-1-1)
    Install drbd:data=8.3.7-1-1
    Install drbdlinks(:doc :lib :runtime)=1.18-3-1
    Install libaio(:lib)=0.3.106-3-0.1
    Update  lvm2:lib (2.02.34-1-1 -> 2.02.47-1-1)
Applying update job 20 of 24:
    Erase   device-mapper(:lib)=1.02.24-2-1
    Update  device-mapper-multipath(:doc :runtime) (0.4.7-1.1-1 -> 0.4.8-0.3-1)
    Update  lvm2(:runtime) (2.02.34-1-1 -> 2.02.47-1-1)
    Install man:lib=1.6-5.1.1-1
    Erase   man:locale=1.6-5-0.1
    Update  nut(:data :doc :runtime) (2.2.0-5-1 -> 2.2.2-5-1)
    Install nut:lib=2.2.2-5-1
[initscript] Stopping clvm:[FAILED]

Applying update job 21 of 24:
    Install nagios-plugins(:runtime)=1.4.10-1.1-1
    Install nrpe(:doc :runtime)=2.12-4.1-1
    Install postgresql(:lib)=8.1.19-0.1-1
    Install udev:lib=116-4.2.6-1
    Install util-linux-ng:data=2.16-0.0.3-1
Applying update job 22 of 24:
    Update  man(:doc :runtime) (/conary.rpath.com@rpl:devel//1/1.6-5-0.1 -> /conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/1.6-5.1.1-1)
    Update  mkinitrd(:doc :runtime) (4.2.15-16.13.6-2 -> 4.2.15-16.13.9-1)
    Update  ntp(:runtime) (4.2.4p6-1.1-1 -> 4.2.4p7-0.1-1)
    Update  openfiler:runtime (r1584-3-1 -> r1653-1-1)
    Update  shadow:runtime (/conary.rpath.com@rpl:devel//1/4.0.7-14.3-1 -> /conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/4.0.7-14.3.1-1)
    Update  udev:runtime (/conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/069-5.4.1-1[~!selinux] -> /conary.rpath.com@rpl:devel//2-devel//openfiler.rpath.org@ofns:2/116-4.2.6-1)
    Install util-linux-ng-extras:runtime=2.16-0.0.3-1
    Install util-linux-ng:config=2.16-0.0.3-1
    Install util-linux-ng:runtime=2.16-0.0.3-1
    Erase   util-linux:runtime=2.12r-1.6-1
[openfiler] changing group /etc/shadow

[openfiler] Stopping openfiler: [  OK  ]

[openfiler] Starting openfiler: [  OK  ]

[openfiler] enabling / starting default services

[openfiler]

[openfiler] Shutting down Winbind services: [FAILED]

[openfiler] Starting Winbind services: [  OK  ]

[openfiler] Stopping portmapper: [  OK  ]

[openfiler] Starting portmapper: [  OK  ]

[openfiler] Stopping NFS statd: [  OK  ]

[openfiler] Starting NFS statd: [  OK  ]

[openfiler] Stopping atd: [  OK  ]

[openfiler] Starting atd: [  OK  ]

[openfiler] disabling nscd service

[openfiler] Stopping nscd: [FAILED]

Applying update job 23 of 24:
    Update  openfiler(:doc) (r1584-3-1 -> r1653-1-1)
    Update  shadow (/conary.rpath.com@rpl:devel//1/4.0.7-14.3-1 -> /conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/4.0.7-14.3.1-1)
    Install shadow:doc=4.0.7-14.3.1-1
    Install shadow:locale=4.0.7-14.3.1-1
    Update  udev(:data :doc) (/conary.rpath.com@rpl:devel//1//openfiler.rpath.org@ofns:2/069-5.4.1-1[~!selinux] -> /conary.rpath.com@rpl:devel//2-devel//openfiler.rpath.org@ofns:2/116-4.2.6-1)
    Erase   util-linux(:data)=2.12r-1.6-1
    Install util-linux-ng=2.16-0.0.3-1
    Install util-linux-ng-extras(:doc :supdoc)=2.16-0.0.3-1
Applying update job 24 of 24:
    Update  group-core (2.3-16-4[~!kernel.pae,~kernel.smp,~proftpd.auth_pam,~proftpd.ifsession,~proftpd.ipv6,~proftpd.rewrite,~proftpd.tls,sasl is: x86(~!sse2)] -> 2.3-36-3[~!kernel.pae,~kernel.smp,~proftpd.auth_pam,~proftpd.ifsession,~proftpd.ipv6,~proftpd.rewrite,~proftpd.tls,sasl is: x86(~!sse2)])
    Update  group-openfiler (2.3-16-4[~!kernel.pae,~kernel.smp,~proftpd.auth_pam,~proftpd.ifsession,~proftpd.ipv6,~proftpd.rewrite,~proftpd.tls,sasl is: x86(~!sse2)] -> 2.3-36-3[~!kernel.pae,~kernel.smp,~proftpd.auth_pam,~proftpd.ifsession,~proftpd.ipv6,~proftpd.rewrite,~proftpd.tls,sasl is: x86(~!sse2)])

Reboot the Openfiler appliance :

[root@storage01 ~]# shutdown -r now

2. You also can do update from Openfiler GUI as below :

Login to Openfiler GUI –> Select the System tab –> Click System Update –> Finally click Launch system update.
openfiler16

How to Setup and Configure Openfiler iSCSI Storage on VMware

This post describes on how to setup and configure hosted Openfiler iSCSI storage target on a VMware ESX/ESXi or VMware server 1.x or 2.x host using the freely available Openfiler appliance. However this configuration and setting not a suitable solution for a production environment as it does not include any iSCSI CHAP authentication or datastore multipathing. But it’s good for troubleshooting and learning. Openfiler is an Open Source Network Attached Storage and Storage Area Network Solution.

Pre-Requisites :

  • a. VMware ESX/ESXi/Server 2.0/Vmware workstations/VMware player as a host with a minimum of 5GB of free space on the local datastore.
  • b.Addional Space for extra logical volume on Openfiler iSCSI Storage (e.g dev/sdb)
  • c.Openfiler appliance source file. (e.g openfiler-2.3-x86_64.vmware.tar.gz) You may download at this URL :
    http://www.openfiler.com/community/download/
  • Disk /dev/sdb (30GB) has been added as below :
[root@storage01 ~]# fdisk -l

Disk /dev/sda: 2355 MB, 2355978240 bytes
16 heads, 63 sectors/track, 4565 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4565     2300696   83  Linux

Disk /dev/sdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        3917    31457279+  ee  EFI GPT

TCP/IP Configuration :

The procedure detailed below is based on the following configuration. Openfiler appliance assigned the hostname and TCP/IP configuration details:

HOSTNAME=storage01
IPADDR=192.168.1.56
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
nameserver 202.188.0.133
nameserver 202.188.1.5

Steps and Procedure on How to Setup and Configure Openfiler iSCSI Storage :

1. Extract the contents of the downloaded Openfiler tar.gz file (one .vmx file and two .vmdk files) into a directory, the name of which reflects the hostname you wish to use for the Openfiler appliance (example: storage01).

2. Login to ESXi/ESX/VMware Server/Vmware Workstation console, add extracted Openfiler tar.gz file to inventory.

3. Skipped this step on VMware Server 1.x, VMware Server 2.x and VMware Workstation. In ESXi/ESX server edit the Openfiler appliance settings and add a second disk of the size determined.(example: 30GB).

4. Modify the vCPU and Memory setting to meet your requirement.

5. Power on the Openfiler appliance. By default, the Openfiler appliance will attempt to obtain an IP address via DHCP, but best practice is to assign a static Ip address and this such configuration is typically done via the Openfiler web interface. On the Screen capture, hostname and static ip address has been assigned as below :

HOSTNAME=storage01
IPADDR=192.168.1.56

openfiler1

6. Logon to the console as root. By default, no root password is set so you will not be prompted. Set a root password by entering the command passwd, pressing Enter and following the prompts.

Note: A password must be set in order to permit a remote root login from a SSH client.

[root@dhcp01 ~]# passwd
Changing password for user root.
New UNIX password:

7. Browse to https:/DHCP_IP_Address:446, or to the IP address if not using DNS, and ignore the certificate warning. Logon to the Openfiler web interface with the default administrator. Username openfiler and default Password password.

Note: The default administrative port number is 446.

openfiler2

8. To Change to static IP, Select the System tab then scroll down to the “Network Interface Configuration” click “Configure“. On the Network Interface Configuration”, change default Boot Protocol, DHCP to Static for eth0. Then Enter the IP Address, Netmask and leave default for MTU.

openfiler3

9. To configure network range allowed, select the System tab and scroll down to the “Network Access Configuration” section. Define the allowed networks that accept connections from Openfiler appliance. You also can specify individual host IP addresses and ranges. Click Update after entering each set of details.

openfiler4

10. To add the the new logical disk select the Volumes tab and click the Block Devices link. Confirm the presence of disk /dev/sdb.

Please note that the isk /dev/sda is the disk that Openfiler is running on; /dev/sdb is the second disk that was added and that will be provisioned as iSCSI storage.

openfiler7

Click the /dev/sdb link and scroll down to the Create a partition in /dev/sdb section. By default, a partition will be created that fills the entire disk. Accept the defaults and click Create.

Openfiler8

11. To add volume Group,select the Volumes tab. Click the Volume Groups link and enter a Volume Group name “datagroup” (the name is not critical), select /dev/sdb1 (30GB) and click Add volume group.
openfiler9

12. To Create a volume in “datagroup“, select the Volumes tab. Click the Add Volume link. The only existing volume group of volumegroup (datagroup) will be selected by default. Scroll down to the Create a volume in “volumegroup” section. Enter a Volume Name of volume (the name is not critical), a Volume Description of vmware (the description is not critical), adjust the required Space slider up to the maximum, select a Filesystem/Volume type of iSCSI and click Create.
openfiler10

13. This steps is to enable iSCSI target and disable iSCSI initiator. Select the Services tab. Click the Enable link adjacent to iSCSI target server. Click the Disable link adjacent to iSCSI initiator.

openfiler11

14. To Add new iSCSI target, select the Volumes tab and click the iSCSI Targets link from the Volumes Section menu. Modify the auto-generated Target IQN to include the Openfiler name (iqn.2012.openfilerlab1.local in this example) and click Add.

openfile12

Then select the LUN Mapping sub-tab and click Map to map the previous defined volume as a LUN to the newly created iSCSI target (accepting all the defaults).

openfiler13

Finally, select the Network ACL sub-tab and change the Access from Deny to Allow. Click Update.

openfiler14

15. Congratulation!! Now the iSCSI target is accessible to any iSCSI requester on the permitted network/s or IP addresses.

How to Install VMware Tools on CentOS 6.3

VMware Tools is a group of utilities that enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the virtual machine (VM). This is one of important components in order to provide perfect VM OS. Without the VMware Tools, guest OS performance will lacks some of the important functionality. Please follow below steps to install the VMware Tools on CentOS 6.3:

1. Install prerequisites :

[root@centos63 ~]# yum install perl gcc make kernel-headers kernel-devel -y

2. Right click on the VM, goto Guest, Install/Upgrade VMware tools.

3. Mount VMware-tool installer :

[root@centos63 ~]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only

4. Extract and install :

[root@centos63 ~]# cd /mnt
[root@centos63 mnt]# cp VMwareTools-2.0.0-122956.tar.gz /tmp
[root@centos63 mnt]# cd /tmp
[root@centos63 tmp]# umount /mnt
[root@centos63 tmp]# tar xzvf VMwareTools-2.0.0-122956.tar.gz
[root@centos63 tmp]# cd vmware-tools-distrib
[root@centos63 vmware-tools-distrib]# ./vmware-install.pl

During the installation wizard, just press enter for default selection. For certain cases, you will get stuck on the following :

..
..
..
..
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Solution :

What you can do is perform kernel updates, then reboot and finally re-run the VMware-tools installation script.

Steps
1. Perform update to kernel :

[root@centos63 vmware-tools-distrib]# yum update kernel -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
file:///mnt/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/repodata/repomd.xml
Trying other mirror.
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.32-279.1.1.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-279.1.1.el6 for package: kernel-2.6.32-279.1.1.el6.i686
--> Running transaction check
---> Package kernel-firmware.noarch 0:2.6.32-279.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-279.1.1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch             Version                         Repository         Size
====================================================================================================
Installing:
 kernel                    i686             2.6.32-279.1.1.el6              updates            23 M
Updating for dependencies:
 kernel-firmware           noarch           2.6.32-279.1.1.el6              updates           8.7 M

Transaction Summary
====================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 32 M
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta                                                          |  41 kB     00:00
Processing delta metadata
Download delta size: 6.8 M
(1/2): kernel-2.6.32-279.el6_2.6.32-279.1.1.el6.i686.drpm                    | 5.6 MB     00:49
(2/2): kernel-firmware-2.6.32-279.el6_2.6.32-279.1.1.el6.noarch.drpm         | 1.2 MB     00:11
Finishing rebuild of rpms, from deltarpms
                                                              |  32 MB     00:20
Presto reduced the update size by 79% (from 32 M to 6.8 M).
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kernel-firmware-2.6.32-279.1.1.el6.noarch                                        1/3
  Installing : kernel-2.6.32-279.1.1.el6.i686                                                   2/3
  Cleanup    : kernel-firmware-2.6.32-279.el6.noarch                                            3/3
  Verifying  : kernel-firmware-2.6.32-279.1.1.el6.noarch                                        1/3
  Verifying  : kernel-2.6.32-279.1.1.el6.i686                                                   2/3
  Verifying  : kernel-firmware-2.6.32-279.el6.noarch                                            3/3

Installed:
  kernel.i686 0:2.6.32-279.1.1.el6

Dependency Updated:
  kernel-firmware.noarch 0:2.6.32-279.1.1.el6

Complete!

2. Reboot the CentOS 6.3

3. Re-run VMware-Tools installation :

[root@centos63 vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]

File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc is backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pangorc.old.2.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/pango/pangox.aliases.old.2.

File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.2.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangorc, and was about to remove it.
Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/pango/pangox.aliases, and was about to remove
it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib32/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

File /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib32/libconf/etc/gtk-2.0/gtk.immodules.old.2.

The removal of VMware Tools 2.0.0 build-122956 for Linux completed
successfully.

Installing VMware Tools.

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

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]


In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
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? [yes]

The installation of VMware Tools 2.0.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

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? [yes]

It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no] yes


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel?
[/lib/modules/2.6.32-279.1.1.el6.i686/build/include]

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.32-279.1.1.el6.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
  CC [M]  /tmp/vmware-config0/vmmemctl-only/backdoorGcc32.o
In file included from /tmp/vmware-config0/vmmemctl-only/backdoor.h:29,
                 from /tmp/vmware-config0/vmmemctl-only/backdoorGcc32.c:45:
/tmp/vmware-config0/vmmemctl-only/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
  CC [M]  /tmp/vmware-config0/vmmemctl-only/os.o
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:51:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:78: error: conflicting types for âpoll_initwaitâ
include/linux/poll.h:70: note: previous declaration of âpoll_initwaitâ was here
make[2]: *** [/tmp/vmware-config0/vmmemctl-only/os.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmemctl-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
make: *** [vmmemctl.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
Unable to build the vmmemctl module.

The memory manager driver (vmmemctl module) is used by VMware host software to
efficiently reclaim memory from a virtual machine.
If the driver is not available, VMware host software may instead need to swap
guest memory to disk, which may reduce performance.
The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you want the memory management feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmxnet-only'
make -C /lib/modules/2.6.32-279.1.1.el6.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
  CC [M]  /tmp/vmware-config1/vmxnet-only/vmxnet.o
In file included from /tmp/vmware-config1/vmxnet-only/vmxnet.c:48:
/tmp/vmware-config1/vmxnet-only/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_change_mtuâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:193: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_get_drvinfoâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:267: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_set_tsoâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:305: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_link_checkâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:659: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_probe_deviceâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:841: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:993: warning: cast to pointer from integer of different size
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1058: error: âstruct net_deviceâ has no member named âopenâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1059: error: âstruct net_deviceâ has no member named âhard_start_xmitâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1060: error: âstruct net_deviceâ has no member named âstopâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1061: error: âstruct net_deviceâ has no member named âget_statsâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1062: error: âstruct net_deviceâ has no member named âset_multicast_listâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1064: error: âstruct net_deviceâ has no member named âchange_mtuâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1067: error: âstruct net_deviceâ has no member named âtx_timeoutâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1071: error: âstruct net_deviceâ has no member named âpoll_controllerâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1075: error: âstruct net_deviceâ has no member named âset_mac_addressâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_remove_deviceâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1142: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_init_ringâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1213: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_openâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1338: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âcheck_tx_queueâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1594: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_txâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:1658: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_rxâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2057: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_interruptâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2232: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_closeâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2314: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_load_multicastâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2404: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_set_multicast_listâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2465: error: âstruct net_deviceâ has no member named âprivâ
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function âvmxnet_get_statsâ:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:2545: error: âstruct net_deviceâ has no member named âprivâ
make[2]: *** [/tmp/vmware-config1/vmxnet-only/vmxnet.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmxnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
make: *** [vmxnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmxnet-only'
Unable to build the vmxnet module.

The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

None of the pre-built vmblock modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmblock module
for your system (you need to have a C compiler installed on your system)?
[yes]

Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmblock-only'
make -C /lib/modules/2.6.32-279.1.1.el6.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
  CC [M]  /tmp/vmware-config2/vmblock-only/linux/block.o
In file included from /tmp/vmware-config2/vmblock-only/linux/os.h:35,
                 from /tmp/vmware-config2/vmblock-only/linux/block.c:26:
/tmp/vmware-config2/vmblock-only/./include/compat_wait.h:78: error: conflicting types for âpoll_initwaitâ
include/linux/poll.h:70: note: previous declaration of âpoll_initwaitâ was here
In file included from /tmp/vmware-config2/vmblock-only/linux/vmblockInt.h:40,
                 from /tmp/vmware-config2/vmblock-only/linux/block.c:29:
/tmp/vmware-config2/vmblock-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
make[2]: *** [/tmp/vmware-config2/vmblock-only/linux/block.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmblock-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
make: *** [vmblock.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/vmblock-only'
Unable to build the vmblock module.

The vmblock module enables dragging or copying files from within a host and
dropping or pasting them onto your guest (host to guest drag and drop and file
copy/paste).  The rest of the software provided by VMware Tools is designed to
work independently of this feature (including guest to host drag and drop and
file copy/paste).

If you would like the host to guest drag and drop and file copy/paste features,
you can install the driver by running vmware-config-tools.pl again after making
sure that gcc, binutils, make and the kernel sources for your running kernel
are installed on your machine. These packages are available on your
distribution's installation CD.
[ Press Enter key to continue ]

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]

None of the pre-built vmci modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmci module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmci module.

Building the vmci module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmci-only'
make -C /lib/modules/2.6.32-279.1.1.el6.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
  CC [M]  /tmp/vmware-config3/vmci-only/kernelStubsLinux.o
In file included from /tmp/vmware-config3/vmci-only/kernelStubs.h:35,
                 from /tmp/vmware-config3/vmci-only/kernelStubsLinux.c:28:
/tmp/vmware-config3/vmci-only/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
  CC [M]  /tmp/vmware-config3/vmci-only/vmciDatagram.o
In file included from /tmp/vmware-config3/vmci-only/vmciDatagram.c:42:
/tmp/vmware-config3/vmci-only/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-config3/vmci-only/vmci_kernel_if.h:41,
                 from /tmp/vmware-config3/vmci-only/vmciDatagram.c:45:
/tmp/vmware-config3/vmci-only/compat_wait.h:78: error: conflicting types for âpoll_initwaitâ
include/linux/poll.h:70: note: previous declaration of âpoll_initwaitâ was here
In file included from /tmp/vmware-config3/vmci-only/vmci_queue_pair.h:36,
                 from /tmp/vmware-config3/vmci-only/vmciGuestKernelAPI.h:43,
                 from /tmp/vmware-config3/vmci-only/vmciUtil.h:33,
                 from /tmp/vmware-config3/vmci-only/vmciDatagram.c:48:
/tmp/vmware-config3/vmci-only/vm_atomic.h:329:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:333:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:401:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:407:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:506:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:595:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:684:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:773:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:775:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:860:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:862:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:945:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:947:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1028:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1030:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1223:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1227:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1536:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmci-only/vm_atomic.h:1663:7: warning: "_MSC_VER" is not defined
make[2]: *** [/tmp/vmware-config3/vmci-only/vmciDatagram.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmci-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.1.1.el6.i686'
make: *** [vmci.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmci-only'
Unable to build the vmci module.

The communication service is used in addition to the standard communication
between the guest and the host.  The rest of the software provided by VMware
Tools is designed to work independently of this feature.
If you wish to have the VMCI feature, you can install the driver by running
vmware-config-tools.pl again after making sure that gcc, binutils, make and the
kernel sources for your running kernel are installed on your machine. These
packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

No X install found.

   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest operating system daemon:                          [  OK  ]

The configuration of VMware Tools 2.0.0 build-122956 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

You will need to either manually start /usr/bin/vmware-user or log out and log
back in to this desktop session to obtain the following features: guest
resolution fit, drag and drop, and file and text copy/paste.  vmware-user is
configured to automatically start at a graphical login, but that won't take
effect until the next login.

Enjoy,

--the VMware team