1. The VMware shared folder cannot be displayed
When installing Ubuntu Server 16.04.7 in VMware Workstation 16 Pro, open-vm-tools will be installed by default. It took a long time to install successfully, but the function of the default installation seems to be incomplete, and the shared folder cannot be displayed.
As shown in the figure below, although the shared folder is enabled, the shared folder cannot be seen under /mnt/hgfs
the directory .
VMware Tools is official. open-vm-tools is an open source implementation of VMware Tools, which is also officially recommended. However, there seems to be a conflict between open-vm-tools and VMware Tools, just choose one of them.
In order to solve the above problems, here I uninstall open-vm-tools and choose VMware Tools.
The command to uninstall open-vm-tools is as follows:
sudo apt-get autoremove open-vm-tools --purge
2. Reinstall VMware Tools is gray
Next, install VMware Tools, but suddenly found that the option "Reinstall VMware Tools" is grayed out and cannot be clicked.
The solution is actually very simple: Don't wait for Ubuntu Server 16.04.7 to fully boot before clicking "Reinstall VMware Tools", but click "Reinstall VMware Tools" during Ubuntu Server 16.04.7 booting, then you can Click Success, and the CD/DVD is automatically inserted into the virtual machine, and the linux.iso image file in the VMware Workstation 16 Pro installation directory is automatically loaded.
/dev/cdrom
Mount the CD-ROM /mnt/cdrom
to the directory you created:
sudo mount /dev/cdrom /mnt/cdrom
As can be seen from the figure above, there is a compressed package in the CD-ROM drive VMwareTools-10.2.0-7259539.tar.gz
, copy this compressed package /mnt
to :
sudo cp VMwareTools-10.2.0-7259539.tar.gz ../
The command to decompress is as follows:
sudo tar -zxvf VMwareTools-10.2.0-7259539.tar.gz
After decompression, there is an extra vmware-tools-distrib
directory :
Enter vmware-tools-distrib
the directory and you can see a vmware-install.pl
script:
Execute vmware-install.pl
the script to complete the VMware Tools installation:
sudo ./vmware-install.pl