适用于Ubuntu 16.04 LTS Xenial的VMware Tools

Modified on: Sat, 16 Mar 2019 14:20:02 +0800

有人知道如何让VMware Tools适用于最新的Ubuntu 16.04 LTS Xenial吗?

我一直在使用这里的补丁
对于我的Ubuntu 15.04 Vivid,它工作正常。但不再是Ubuntu 16.04 LTS Xenial。随附的错误。

如果没有VMware Tools工作,我将无法看到主机共享的hgfs

github中查找错误,它说

  

使用open-vm-tools 10.0,不再需要构建vmhgfs模块。这不是必需的,因为HGFS实现是基于10.0的FUSE。

所以我删除了VMware Tools,然后安装了官方的open-vm-tools

$ apt-cache policy open-vm-tools
open-vm-tools:
  Installed: 2:10.0.7-3227872-2ubuntu2
  Candidate: 2:10.0.7-3227872-2ubuntu2
  Version table:
 *** 2:10.0.7-3227872-2ubuntu2 500
...

$ apt-cache search hgfs | wc 
      0       0       0

$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              481988       0    481988   0% /dev
tmpfs              99852    4548     95304   5% /run
/dev/sda1       31863728 1699600  28522504   6% /
tmpfs             499248       0    499248   0% /dev/shm
tmpfs               5120       0      5120   0% /run/lock
tmpfs             499248       0    499248   0% /sys/fs/cgroup

但是,我仍然无法看到主机共享的hgfs

由于

/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:59:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.follow_link   = HgfsFollowlink,
                 ^
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:59:21: note: (near initialization for ‘HgfsLinkInodeOperations.follow_link’)
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:61:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.put_link      = HgfsPutlink,
                 ^
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:61:21: note: (near initialization for ‘HgfsLinkInodeOperations.put_link’)
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c: In function ‘HgfsFollowlink’:
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:127:10: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
      nd_set_link(nd, fileName);
      ^
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c: In function ‘HgfsPutlink’:
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:276:15: error: implicit  declaration of function ‘nd_get_link’ [-Werror=implicit-function-declaration]
fileName = nd_get_link(nd);
           ^
/tmp/modconfig-VJIcMa/vmhgfs-only/link.c:276:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
fileName = nd_get_link(nd);
         ^

$ uname -a 
Linux uname 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
作者:,xpt

最佳答案

查看“vmhgfs-fuse”命令。

我能够做到以下几点:

我创建了一个挂载hgfs共享的目录,让我们称之为〜/ vmshare。然后我做了:

vmhgfs-fuse ~/vmshare

在我的系统上,使用相同版本的open-vm-tools,将共享磁盘正确挂载到〜/ vmshare /。

如果您不希望共享位于用户的主目录中,则可能必须使用sudo和其他参数来vmhgfs-fuse。

作者:Nick Davis

相关问答

添加新评论