sudo apt-get install open-vm-tools sudo apt-get install open-vm-tools-desktop sudo apt-get install open-vm-tools-dkms
ubuntu 查看是否设置成功
vmware-hgfsclient : 显示共享文件夹名
3. open-vm-tools-dkms 没有源 a. 需要换源关于Ubuntu16.04下安装VMwareTools失败,未发现软件包open-vm-dkms,open-vm-tools问题解决_公子卿的博客-CSDN博客_open-vm-dkms安装
#deb包 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # 源码 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse ##测试版源 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # 更新的源的内容 # deb http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ raring-security main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ raring-updates main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ raring-proposed main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ raring-backports main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ raring-security main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ raring-updates main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ raring-proposed main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ raring-backports main restricted universe multiverseb. 配置DNS
/etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 114.114.114.114 naemserver 8.8.8.8 #阿里的DNS nameserver 223.5.5.5 nameserver 223.6.6.6c. 更新源
sudo apt-get update #还有这句不要忘了 sudo apt-get upgraded. 重新安装 open-vm-tools-dkms 3. 安装open-vm-tools-dkms 报错
Sub-process /usr/bin/dpkg returned an error code (1)
cd /var/lib/dpkg sudo mv info info.baksudo sudo mkdir info sudo apt install -f sudo apt-get install open-vm-tools-dkms4. 挂载共享文件夹 a. 手动挂载共享文件夹
# .host:/D:共享名称,vmware-hgfsclient查看得到 # /mnt/hgfs/d/:挂载点 # 创建挂载目录 sudo mkdir /mnt/hgfs/d # 挂载 sudo mount -t fuse.vmhgfs-fuse .host:/D /mnt/hgfs/d/ -o allow_other # 卸载 sudo umount -a fuse.vmhgfs-fuse .host:/D /mnt/hgfs/d/b. 自动挂载共享文件夹
系统启动后自动挂载文件夹
sudo vim /etc/fstab # 在文件最后加入 .host:/D /mnt/hgfs/d/ fuse.vmhgfs-fuse allow_other 0 0



