How to install VMwareTools on Linux

Source: Internet
Author: User
Windows administrators with Linux machines in a virtual environment are not familiar with the Linux command line interface, which makes it difficult to install VMwareTools.

Windows administrators with Linux machines in a virtual environment are not familiar with the Linux command line interface, which makes it difficult to install VMware Tools. VMware Communities often has some articles describing how to install VMware Tools on Linux systems. There are several ways to do this. This article describes how to install VMware Tools for CentOS and Red Hat Enterprise Linux (RHEL) version 5. The following steps can also be run as a script to automatically update or install VMware Tools on Red Hat or CentOS Linux 5. (For users who use CentOS or Red Hat Linux version 3 or 4, I will propose a solution in another article .) The final version of the VMware Tools installation guide includes specialized VMware operating system Tools, which are exactly the methods used in this article. 1. install the Red Hat or CentOS virtual machine using the mechanism that best suits your environment. I am using a pre-pilot Execution Environment (PXE ). 2. use a standard program to configure Red Hat or CentOS. Then execute the following additional configuration steps: 1.rpm -- importhttp: // Configure 2. use the following script to create a resource library file using the yum command. Note that you need to replace it with 3.5u2, 3.5u3, or 3.5u4. . Whether your VM is a 32-bit or 64-bit server is replaced by i686 or x86_64. Cat>/etc/yum. repos. d/vmware-tools.repo <EOF [vmware-tools] name = VMware Tools for Red Hat Enterprise Linux $ releasever-$ basearch baseurl = http://packages.vmware.com/tools/esx/ /Rhel5/enabled = 1 gpgcheck = 1 gpgkey = http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub EOF for example, if the ESX version is v3.5 U3 and the virtual machine is 32-bit, use:
Cat>/etc/yum. repos. d/vmware-tools.repo <EOF [vmware-tools] name = VMware Tools for Red Hat Enterprise Linux $ releasever-$ basearch baseurl = http://packages.vmware.com/tools/esx/3.5u3/rhel5/i686 enabled = 1

Gpgcheck = 1 gpgkey = http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pubEOF to remove a tool, run the following command:
1. yum remove vmware-tools-* open-vm-tools -*
2. yum-y install xorg-x11-drv-vmware xorg-x11-drv-vmmouse
3. yum-y install vmware-tools open-vm-tools-xorg-drv-display open-vm-tools-xorg-drv-mouse
However, using RHEL 5 Update 3 of VMware Tools will cause the installation of VMware Tools to fail because the GPG key is not properly processed. The only way is to disable the GPG check. After gpgkey = 1 in the/etc/yum. repos. d/vmware-tools.repo line is set to gpgkey = 0, you can securely update and install VMware Tools without GPG errors. Upgrade VMware Tools by using the following command to upgrade the Red Hat version, so it is easy to upgrade VMware Tools: yum-y update, however, if your kernel is too new, you cannot update data from a dedicated OS package repository of VMware Tools. you must create a driver locally. Therefore, execute the following command. It will be 3.5u2, 3.5u3 or 3.5u4. Similarly, you may want to run these commands on the development machine because you need to install the compiler and other build tools. This will form a VMware Tools kernel module image that you can install on other virtual machines. 1. yum list </tmp/t 2. vname = 'grep vmware-tools/tmp/t | awk '{print $2} ''' 3. version = 'basename $ vname. el '4. wget http://packages.vmware.com/tools/esx/ /Rhel5/SRPMS/open-vm-tools-kmod-$ version. src. rpm 5. wgethttp: // packages.vmware.com/tools/esx/ /Rhel5/SRPMS/vmware-tools-kmod-$ version. src. rpm 6.yum-y install yum-utils rpm-build

You may need to run the following command to check the version of the installed kernel source code to match your running kernel. In some cases, the kernel may not be the latest version. 7. yum-builddep-y open-vm-tools-kmod-$ version. src. rpm vmware-tools-kmod-$ version. src. rpm 8. rpmbuild -- rebuild open-vm-tools-kmod-$ version. src. rpm 9. rpmbuild -- rebuild vmware-tools-kmod-$ version. src. rpm 10.rpm-ivh/usr/src/redhat/RPMS/i386/open-vm-tools-kmod-'uname-R'-$ version. i386.rpm/usr/src/redhat/RPMS/i386/vmware-tools-kmod-'uname-R'-$ version. i386.rpm (author: Edward Haletky translator: Tang Qiongyao Source: TechTarget China) original title: VPN Reconnect: Windows Server 2008 R2 network connection savior

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.