適用於 Ubuntu 16.04 LTS Xenial 的 VMware 工具

適用於 Ubuntu 16.04 LTS Xenial 的 VMware 工具

有人知道如何讓 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

答案1

查看“vmhgfs-fuse”命令。

我能夠執行以下操作:

我創建了一個目錄來掛載 hgfs 共享,我們稱之為 ~/vmshare。然後我做了:

vmhgfs-fuse ~/vmshare

在我的系統上,使用與您使用的相同版本的 open-vm-tools,將共用磁碟正確安裝到 ~/vmshare/ 中。

如果您不希望在使用者的主目錄中共用,則可能必須使用 sudo 和 vmhgfs-fuse 的其他參數。

答案2

非常感謝 - 這有效,所以我這樣做了:

i) 我在Win7上共享資料夾

ii) 點擊連結的這一部分https://askubuntu.com/questions/29284/how-do-i-mount-shared-folders-in-ubuntu-using-vmware-tools

sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs

-d 為您選擇所有預設值(如果您不需要預設值,請將其刪除)。

iii)然後從此連結中進行操作

[查看“vmhgfs-fuse”指令。

我能夠執行以下操作:

我創建了一個目錄來掛載 hgfs 共享,我們稱之為 ~/vmshare。然後我做了:

vmhgfs-fuse ~/vmshare 在我的系統上,使用與您使用的相同版本的 open-vm-tools,將共用磁碟正確安裝到 ~/vmshare/ 中。

如果您不想在使用者的主目錄中共用,則可能必須使用 sudo 和 vmhgfs-fuse 的其他參數。


忠告-這在此時有效-但是?

相關內容