This 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.
1 Comment
Among other things, it might be good to also include the steps to adding the pre-requisites for the perl (.pl) script to work, like:
# yum -y install perl