Installation of VMware tools and solution to gray button

Installation of VMware tools

** Notice:**

The new version of VMware will automatically install VMware tools. How to test VMware tools? Copy a paragraph in the Windows system and paste it into the terminal in the Ubuntu system, indicating that VMware tools have been installed.

If it is not installed, please refer to this section.

Open the Ubuntu system in the virtual machine, and then click: Vmware Virtual Machine (M)->Install VMware Tools (T)..., as shown in the picture: (Because I have already installed VMware tools, it is gray here, The solution to the gray button situation will be introduced separately below)
Insert image description here

Click "Install WMware Tools" in the picture above, and the VMware Tools tool will be automatically downloaded in the Ubuntu system. After the download is completed, it will be placed on the Ubuntu desktop, as shown in the following picture:
Insert image description here

Double-click the CD in the picture and open it as shown below:
Insert image description here

VMwareTools-10.3.23-16594550.tar.gz in the picture is the installation package we want. Unzip it to the desktop or choose a file location, as shown in the picture:
Insert image description here

The picture above is the decompressed VMware Tools installation package. Use the terminal to enter this directory and run the following command:

sudo ./vmware-install.pl     #执行安装软件

Insert image description here

During the installation process, a series of operation prompts will pop up. If you encounter a problem such as selecting "Yes" or "No", enter "yes" to indicate yes, enter "no" or directly press Enter to indicate "no". If there is a question about which installation paths, just press Enter and use the default path. For other types of questions, make your choice according to the actual prompts. After the installation is complete, it will look like this:

After the VMware Tools installation is complete, restart Ubuntu. After the restart, you can copy and paste text, files, etc. directly under the virtual machine Ubuntu system and the host Windows. If it still cannot be copied, run the following command:

sudo apt-get autoremove open-vm-tools      #卸载已有的工具 
sudo apt-get install open-vm-tools          #安装工具 open-vm-tools 
sudo apt-get install open-vm-tools-desktop   #安装 open-vm-tools-desktop

Then restart the system.

Solution to the problem that the Install VMware tools... button is gray:

If the VMware tools button is gray and the shared folder under Windows cannot be shared, please follow the solution below to set it up. Personal test is effective.

Open the VMware virtual machine, right-click Settings on the virtual machine, select CD/DVD (SATA), and then select "Use ISO Image File".
Note here that you must go to the installation directory of VMware Workstation and find linux.iso. As shown below:

Insert image description here
Insert image description here

Then open the ubuntu system in the virtual machine. The CDROM has been automatically mounted. Enter the CDROM and you can see the following files;
Insert image description here

What we want to use is VMwareTools-10.3.10-13959562.tar.gz;
Copy the file to a folder in a user directory, and then execute the following command :
Then right-click the mouse in the folder and select "Open in Terminal" to open the terminal;

tar -zxvf VMwareTools-10.3.10-13959562.tar.gz
sudo chmod 777 vmware-install.pl
sudo ./vmware-install.pl

You will be asked here if you want to overwrite the previous installation. If you go all the way to yes, that is, just choose to overwrite it;

Online installation:

There is another method, which is to install online;
If the virtual machine is already online, you can also choose to install online;
The command is as follows ;

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install open-vm-tools-desktop -y

Follow the prompts and select yes step by step to solve the problem;

Same as above; if VMware tools have been installed, but still cannot access each other with Windows, then execute the following command again,

sudo apt-get autoremove open-vm-tools      #卸载已有的工具 
sudo apt-get install open-vm-tools          #安装工具 open-vm-tools 
sudo apt-get install open-vm-tools-desktop   #安装 open-vm-tools-desktop

Now you can share files with Windows;
You can use mount to mount the shared files under Windows to the /mnt/hgfs/ directory; If you don’t want to remount every time you boot, you need to add the following content to the /etc/fstab file, as shown below:
Insert image description here

Use vim to open the "/etc/fstab" file, and add the content shown in the picture above at the end of the file;
Note here that the "." in front of the host cannot be missed. ;
In this way, shared files under Windows will be automatically mounted every time the computer is turned on.

Guess you like

Origin blog.csdn.net/bxlover007/article/details/132616692