The installation process is not described, mainly in Debian vmware-tools installation, compared to centos has some pits

Open-vm-tools replaces the official VMware Tools. If you want to install the official version, it will remind you:

open-vm-tools are available from the OS vendor and VMware recommends using open-vm-tools.See http://kb.vmware.com/kb/2073803 for more information.Do you still want to proceed with this legacy installer?

Since open-VM-Tools is available in the official repository of most distributions, you can simply install it.

Ubuntu / Debian:

sudo apt install open-vm-tools

CentOS / Fedora:

sudo dnf install open-vm-tools

Arch Linux

sudo pacman -S open-vm-tools

There are a few caveats:

To implement folder sharing, you need to install open-VM-tools-Dkms

The desktop environment also requires the installation of open-VM-tools-Desktop to support bi-directional drag and drop of files

Arch Linux users will also need to install GTKMM and GTKMM3 if they need to drag and drop files in both directions

Mount folder

Enter the following command on the cli:

mount -t vmhgfs .host:/ /mnt/hgfs

If you do not have the permission, switch to the root user

If ERROR message “Can not mount filesystem: No such device” is displayed, run the following command:

sudo vmhgfs-fuse .host:/ /mnt/hgfs

Note: The mounted folder must be an empty folder, otherwise an error will be reported.

In addition, debian is different from centos, you need to manually run the mount command every time you start up

Debian 9 does not come with the /etc/rc.local file by default, but the rc.local service comes with it

First look at the status, which is disabled by default

systemctl status rc-local

To solve this problem, we need to manually add a /etc/rc.local file

Add the commands that need to be booted up to /etc/rc.local before exit 0

#! /bin/bash
# rc.local

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

sudo vmhgfs-fuse .host:/ /mnt/hgfs

exit 0

EOF
Copy the code

And I’m gonna give it permission

chmod +x /etc/rc.local

Then start the RC-local service

systemctl start rc-local

Check the status again

systemctl status rc-local

Restart can