【VMware】[vm tools]安装VMtools时出现的错误,无法与主机共享文件

**主机:WIN7旗舰版 - 64bit
虚拟机版本: 11.0.0 build-2305329
客户机:ubuntu-16.04.2**

在安装vm tools 时出现的问题,除了共享文件的功能不能正常安装,其余功能都可实现。

出现的错误:


make: Entering directory '/tmp/modconfig-O5xscq/vmhgfs-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/3.19.0-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-15-generic'
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/backdoorGcc64.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-O5xscq/vmhgfs-only/module.o
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsPackDirOpenRequest’:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:417:26: error: ‘struct file’ has no member named ‘f_dentry’
                      file->f_dentry) < 0) {
                          ^
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:707:32: error: ‘struct file’ has no member named ‘f_dentry’
    struct dentry *dentry = file->f_dentry;
                                ^
In file included from /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:39:0:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsReaddirNextEntry’:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:993:31: error: ‘struct file’ has no member named ‘f_dentry’
    si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb);
                               ^
/tmp/modconfig-O5xscq/vmhgfs-only/module.h:89:62: note: in definition of macro ‘HGFS_SB_TO_COMMON’
#define HGFS_SB_TO_COMMON(sb)             ((HgfsSuperInfo *)(sb)->s_fs_info)
                                                              ^
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1082:26: error: ‘struct file’ has no member named ‘f_dentry’
          *entryIno = file->f_dentry->d_inode->i_ino;
                          ^
In file included from /tmp/modconfig-O5xscq/vmhgfs-only/dir.c:30:0:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1088:44: error: ‘struct file’ has no member named ‘f_dentry’
          *entryIno = compat_parent_ino(file->f_dentry);
                                            ^
/tmp/modconfig-O5xscq/vmhgfs-only/./shared/compat_fs.h:120:46: note: in definition of macro ‘compat_parent_ino’
#define compat_parent_ino(dentry) parent_ino(dentry)
                                              ^
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1093:52: error: ‘struct file’ has no member named ‘f_dentry’
      *entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb);
                                                    ^
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c: In function ‘HgfsDoReaddir’:
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1173:13: error: ‘struct file’ has no member named ‘f_dentry’
       !(file->f_dentry) ||
             ^
/tmp/modconfig-O5xscq/vmhgfs-only/dir.c:1174:13: error: ‘struct file’ has no member named ‘f_dentry’
       !(file->f_dentry->d_inode)) {
             ^
scripts/Makefile.build:257: recipe for target '/tmp/modconfig-O5xscq/vmhgfs-only/dir.o' failed
make[2]: *** [/tmp/modconfig-O5xscq/vmhgfs-only/dir.o] Error 1
make[2]: ** Esperando que outros processos terminem.
Makefile:1394: recipe for target '_module_/tmp/modconfig-O5xscq/vmhgfs-only' failed
make[1]: *** [_module_/tmp/modconfig-O5xscq/vmhgfs-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-15-generic'
Makefile:120: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-O5xscq/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

解决方法:

Please ensure that latest Workstation 11 is installed.
Make sure open-vm-tools is not installed.

sudo apt-get remove open-vm-tools

1.Make sure the updates are done:

sudo apt-get update

2.Make sure git is installed

sudo apt-get install git

3.Run the command to get the tools from repository.

sudo git clone https://github.com/rasa/vmware-tools-patches.git

或者

sudo git clone https://github.com/rasa/vmware-tools-patches

4.cd to vmware-tools-folder

cd vmware-tools-patches

5.Run the patch

sudo ./download-tools.sh

6.Run the following patch

sudo ./untar-and-patch.sh

7.Run the complie.sh file

sudo ./compile.sh

转载于:
https://communities.vmware.com/thread/509898?start=0&tstart=0

pillarpeng
2016.9.16 11:58

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值