Install vmware-tools and vmware12centos7 in the VMware12 Environment

Source: Internet
Author: User
Tags install perl

Install vmware-tools and vmware12centos7 in the VMware12 Environment

1. Minimal Installation

1. After entering the system, you must configure the network.

Ping www.baidu.com (Ctrl + z releases the command being executed)

If ping fails, modify:

Vi/etc/sysconfig/network-scripts/ifcfg-ens33

ONBOOT = yes

Restart network: service network restart after modification

2. Click to install vmware-tools

Run the following command: ls/dev.

See which of the following files are available (one is cdrom, Which is mounted to the optical drive by default)

3. Create a mount point (Mount folder) and mount the optical drive

Mkdir/mnt/cdrom

Mount/dev/cdrom/mnt/cdrom (mount-t iso9660/dev/cdrom/mnt/cdrom)

And the mount is normal.

Input: ls/mnt/cdrom to view the content. If there is a tool file in it, the mounting is complete.

4. Copy the tools file to the/root directory and decompress it.

Command: cp/mnt/cdrom/vmware-tools-XXX.tar.gz/root/

Go to the root directory and unzip the tar-zxf vmware-tools-XXX.tar.gz

5. Go to the extracted folder.

6. Run:./vmware-install.pl to try the installation.

    

The error "-bash:./vmware-install.pl:/usr/bin/per: bad interpreter: No such file or directory" indicates that the compilation environment is not installed.

Continue to install the compiling environment and kernel: yum-y install perl gcc make kernel-headers kernel-devel

Try installation again in execution;./vmware-install.pl

.

.

.

Searching for GCC...
The path "" is not valid path to the gcc binary.
Wocould you like to change it? [Yes]
If this occurs, it indicates that gcc is not installed.

    

Yum install gcc-c ++ automake make can also install gcc: yum install gcc-y like this (in fact, gcc and kernel have been installed in step 1 above, and it is useless here)
Install the compiling environment once

Searching for a valid kernel header path...
The path "" is not valid.
Wocould you like to change it? [Yes]
If this occurs, the kernel-devel package is not installed (kernel installation)

Yum install kernel-devel, you can also update the kernel, yum install kernel-devel-$ (uname-r) (this can update the kernel)

 

When VMware tools is successfully installed, the following message is displayed: >>>>>>>>>>>>> after the tool is successfully installed. See the following code for yourself:
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc ".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Wocould you like to change it? [No]

 

 

Other problems during installation:

    

1. If a similar error occurs during installation, the system prompts that the open-vm-tools cannot be deleted, which may be caused by the previous installation failure.

    

2. If an installation error occurs during the middle of the installation process (more than the following situations), uninstall the installation before re-installation.

If you try to enter "/usr/bin/vmware-uninstall-tools.pl" and still Cannot uninstall, enter "rpm-e open-vm-tools-desktop" to uninstall and reinstall

 

3. What should I do if there is nothing in the vmware-tools Folder installed?

Ii. graphical interface Installation

Since CentOS is fully covered during installation, it will basically not encounter installation problems, and the general installation will be OK.

 

Reference: http://www.cnblogs.com/cindy-cindy/archive/2017/04/29/6786394.html

Https://my.oschina.net/bddiudiu/blog/868814

Http://www.cnblogs.com/xuxy03/p/5894178.html

Http://www.justwinit.cn/post/4927/

Http://blog.sina.com.cn/s/blog_b939f3050102uz70.html

Http://www.cnblogs.com/l75790/p/6833570.html

        

 

    

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.