【VMware】[vm tools]安装VMtools时出现的错误,无法与主机共享文件
2016-09-16 11:59
561 查看
**主机:WIN7旗舰版 - 64bit
虚拟机版本: 11.0.0 build-2305329
客户机:ubuntu-16.04.2**
在安装vm tools 时出现的问题,除了共享文件的功能不能正常安装,其余功能都可实现。
Make sure open-vm-tools is not installed.
1.Make sure the updates are done:
2.Make sure git is installed
3.Run the command to get the tools from repository.
虚拟机版本: 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[/code]
或者sudo git clone https://github.com/rasa/vmware-tools-patches[/code]
4.cd to vmware-tools-foldercd vmware-tools-patches
5.Run the patchsudo ./download-tools.sh
6.Run the following patchsudo ./untar-and-patch.sh
7.Run the complie.sh filesudo ./compile.sh
转载于:
https://communities.vmware.com/thread/509898?start=0&tstart=0
pillarpeng
2016.9.16 11:58
相关文章推荐
- ubuntu 客户机安装VMware tools时出现编译错误,无法与主机共享文件
- ubuntu 客户机安装VMware tools时出现编译错误,无法与主机共享文件
- VMware CentOS 7 安装 VMware Tools(修复不能与主机共享文件的错误) 与 控制台分辨率设置
- VMware安装Linux,出现错误-未找到要在其中创建新文件系统的有效设备(转)
- 安装Oracle10G时出现“无法确定主机的IP地址时产生该异常错误”
- error 25015安装程序集“C:\Windows\Microsoft .NET\Framework\v2.0.50727\xxx.dll”失败,原因是出现了系统错误:另一个程序正在使用此文件,进程无法访问
- 安装补丁出现0xC8000222错误和系统日志中wuaueng.dll SUS20ClientDataStore 无法读取日志文件的错误
- MySQL安装或重装后出现无法启动MySQL服务错误:发生系统错误2 系统找不到指定的文件
- 用vmware安装redhat 9出现“光盘无法被挂载”错误的解决办法
- VMware安装RedHat Linux系统时出现该光盘无法被挂载错误怎么办?
- 在VMware10中安装Ubuntu14.04LTS并开启主机文件共享
- 安装SQL Server 2000时出现以下错误提示:“以前的某个程序安装已在安装计算机创建挂起的文件操作,运行安装程序之前必须重新启动计算机” 说明:如果重启计算机无法解决问题,可能有以下两个原因
- Oracle10g安装过程中出现“无法确定主机的IP地址”错误的解决办法
- ubunut14.04下安装vmware-tools总是失败导致无法与windows之间的文件共享
- 在安装Office 2003时出现"安装程序无法读取文件"错误
- VMware安装Linux,出现错误-未找到要在其中创建新文件系统的有效设备
- 安装补丁出现0xC8000222错误和系统日志中wuaueng.dll SUS20ClientDataStore: 无法读取日志文件的错误
- 用vmware安装redhat 9出现“光盘无法被挂载”错误的解决办法
- windows 7安装问题 无法定位到系统分区 + 展开文件时出现网络问题(错误代码:0x80070005)+ win8安装 找不到分区
- VMware 下Ubuntu 安装Vmware Tools后hgfs无法显示共享文件的解决办法