编程知识 cdmana.com

Centos7 installing VMware Tools

Check

First of all, check whether the system has installed VMware Tools
  • Uninstall pre installed open-vm-tools package , Check if it's pre installed open-vm-tools
yum list installed | grep open-vm-*
  • Uninstall the pre installed package
yum remove open-vm-tools
  • Confirm whether the uninstall is successful again
rpm -qa | grep open-vm-*
  • Restart the virtual machine
reboot

install

Click on VMware menu bar 【 virtual machine (M)】, choice 【 install VMware Tools(T)...】; If you have an earlier version of VMware Tools, Then the menu item is 【 to update VMware Tools】

image-20201224111517844

image-20201224111837353

image-20201224111911403

image-20201224112027332

image-20201224112249454

Mount Directory

  • see cdrom Catalog , In virtual machine , With root Log in to the client operating system , Open the terminal window and run ls /dev Command to see if it contains cdrom Catalog

image-20201224112556535

  • establish /mnt/cdrom

take CD-ROM Mount to other directory , Generally speaking, I will /dev/cdrom Mount to /mnt/cdrom Catalog Use ls /mnt Check to see if it already contains /cdrom Catalog

image-20201224112815961

As you can see from the picture above /mnt contains /cdrom Catalog , If it doesn't appear in the picture above cdrom Catalog , Create one by yourself , Use command mkdir /mnt/cdrom or mkdir -p /mnt/cdrom( close -p You can create multiple directories at once ), Use command ls /mnt Check whether the directory was created successfully

  • Mount Directory

Use command mount -t iso9660 /dev/cdrom /mnt/cdrom Mount the CD in /mnt/cdrom Catalog , And use the command ls /mnt/cdrom Check if the mount is successful

image-20201224113339736

Copy installation package

  • Copy the installation package to root Catalog

Name the suffix tar.gz Files copied to root Under the table of contents , Use command cp /mnt/cdrom/ VMwareTools-10.3.21-14772444.tar.gz ~ , And with orders ls ~ See if the copy is successful

image-20201224113822688

  • Unmount

Use command umount /dev/cdrom Unmount

  • Unzip the installation package , After decompression, use the command ls ~ See if the decompression is successful
[root@localhost ~]# tar -zxvf VMwareTools-10.3.21-14772444.tar.gz
[root@localhost ~]# ls ~
anaconda-ks.cfg  lnmp1.7  lnmp1.7.tar.gz  lnmp-install.log  VMwareTools-10.3.21-14772444.tar.gz  vmware-tools-distrib
[root@localhost ~]#

install VMware Tools

  • Enter the source file directory , Use command cd vmware-tools-distrib Enter the decompressed source file directory
  • function vmware-install.pl file
[root@localhost ~]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# 
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
open-vm-tools packages are available from the OS vendor and VMware recommends 
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more 
information.
Do you still want to proceed with this installation? [no] yes

INPUT: [yes]

Input yes Enter all the way , Then check for success

Skipping rebuilding initrd boot image for kernel as no drivers to be included 
in boot image were installed by this installer.

Generating the key and certificate files.
Successfully generated the key and certificate files.
The configuration of VMware Tools 10.3.21 build-14772444 for Linux for this 
running kernel completed successfully.

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

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
3. Restart your X session.

Enjoy,

--the VMware team

[root@localhost vmware-tools-distrib]# ls /mnt/hgfs/
project
[root@localhost vmware-tools-distrib]# 

Get it done !

版权声明
本文为[Dream nest]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224160209131r.html

Scroll to Top