Install VMware tools in CentOS.

Source: Internet
Author: User

Start the VM and press ctrl + alt + t to open terminal (or right-click-new terminal)

Choose Virtual Machine (m)> install VMware Tools (I), choose VM> install VMware Tools

Input in terminal

# Mount/Dev/cdrom/Mnt/cdrom // mount the virtual Optical Drive

# The cd/mnt/cdrom // compressed file is in the/mnt/cdrom folder.
# Tar-zxvf/mnt/cdrom/vmware-linux-tools.tar.gz-C/tmp // unzip the installation file to/tmp, unzip the file in/vmware-tools-distrib/

# Cd/tmp/vmware-tools-distrib/
#./Vmware-install.pl // execute (./) The installation file (vmware-install.pl), one way press ENTER or yes, get it done

{

[Root @ Redhat7/root] # mount-t iso9660/dev/cdrom/mnt

Check whether it has been mounted:
[Root @ Redhat7/root] # ls/mnt/VMwareTools-5.5.3-34685.i386.rpm VMwareTools-5.5.3-34685.tar.gz
[Root @ Redhat7/root] # cp/mnt/VMwareTools-5.5.3-34685.tar.gz/root/
The optical area is down.
[Root @ Redhat7/root] # umount/mnt
Return to the root directory:
[Root @ Redhat7/root] # cd/root/
[Root @ Redhat7/root] # lsVMwareTools-5.5.3-34685.tar.gz
Decompress: [root @ Redhat7/root] # tar zxvf VMwareTools-5.5.3-34685.tar.gz
Go to the extracted Directory: [root @ Redhat7/root] # cd vmware-tools-distrib
Install: [root @ Redhat7 vmware-tools-distrib] #./vmware-install.pl

All the way to YES, press Enter. After installation, REBOOT .}



For kernel development, note the following when installing the linux system:

Select customization in install options

In the select package group, remember to check the kernel development to install the kernel to the/usr/src/directory. Otherwise, the following problems may occur:

Ps: What is the location of the directory of C header files that match your running

Run the following command to check whether gcc is installed: rpm-qlgcc

Package gcc is not installed
Run yum-yinstallgcc to install gcc.

After the installation is complete, What is the location of the gcc program on your machine? Enter the gcc directory/usr/bin/gcc and press Enter.

Before you can compile modules, you need to have the following installed...

Make

Gcc

Kernel headers of the running kernel

The above prompt indicates that to install vmware tools, you must first install gcc and the kernel header file.

Problem: it cannot find the path of my kernel header file

Searching for a valid kernel header path...

The path "" is not valid. wocould you like to change it? [Yes]

What is the location of the directory of C header files that match your runningkernel? (Enter no to solve the problem --//!)

Prompt me to enter the path of the kernel header file

There are two possible causes for this problem: first, if you have not installed the kernel header file, you must first install kervel-deve

First check whether you have installed

Rpm-q kernel-devel

# Uname-r

Check whether the kernel is consistent.

Yum-y install kernel-devel

5.1 M

Download 2.4.18 _ 3-8.22a3-1.i386.rpm
Http://phep2.technion.ac.il/linmodems/packages/ltmodem/archive/redhat/8.22a3/

I have not responded to the rpm method after installation, so we recommend that you install the source code, not the rpm installation.

Rpm Installation Method: [root @ Redhat7/root] # rpm-ivh VMwareTools-5.5.3-34685.i386.rpm

To develop the kernel, note the following when installing the linux system:

Select customization in install options

In the select package group, remember to check the kernel development to install the kernel to the/usr/src/directory. Otherwise, the following problems may occur:

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.