Error installing vmware-tools 9.9 after upgrading to linux-image-3.13.0-46

After upgrading my guest ubuntu to linux-image-3.13.0-46, I got a vmware-tools installation error and I can no longer share folders.

I ran vmware player 7.0.0 build-2305329 on both Windows 8 and Ubuntu 14.04 LTS, and during installation I received the following error message:

from /tmp/modconfig-NVbKuD/vmhgfs-only/inode.c:29: include/linux/kernel.h:793:27: error: 'struct dentry' has no member named 'd_alias' const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ^ 

Is there any workaround?

thanks

+8
linux vmware-player vmware-tools
source share
4 answers

VMware-tools-DISTRIB-9.9.2-2496486:

I fixed the problem by going to the directory where vmhgfs.tar is located (in my case / usr / lib / vmware -tools / modules / source), unzip the tar and manually edit inode.c.

On line 1925 (just search for "d_alias" to find the exact line) you need to add if. At the end it looks like this:

 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) d_alias) { #else d_u.d_alias) { #endif 

Then again around line 1983 (search again for "d_alias"):

 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) struct dentry *dentry = list_entry(pos, struct dentry, d_alias); #else struct dentry *dentry = list_entry(pos, struct dentry, d_u.d_alias); #endif 

Caution: not sure about the kernel version, but I put 3.13.0 there, although my Ubuntu posts are:

 # uname -a Linux md-ubuntu 3.13.0-46-generic #76-Ubuntu SMP Thu Feb 26 18:52:13 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 

And this works great with 3.13.0-45.

So, perhaps if you lower the kernel level, the aforementioned hack will not work properly.

Then you need to pack the tar archive again (just move the old side to side:

 # mv vmhgfs.tar vmhgfs.tar.orig 

and pack the directory again:

 # tar cvf vmhgfs.tar vmhgfs-only 

)

Hope this helps.

+11
source share

This patch should fix the problem.

Change Gist Work Pattern

Instructions for use:

 cd vmware-tools-distrib/lib/modules/source/ tar -xvf vmhgfs.tar cd vmhgfs-only patch inode.c < inode.patch cd .. mv vmhgfs.tar vmhgfs.tar.orig tar cvf vmhgfs.tar vmhgfs-only cd vmware-tools-distrib sudo ./vmware-install.pl 
+1
source share

As for VMWare Fusion, the bug was fixed in version 7.1.2 [1]. The version of vmware-tools is 9.9.3.

[1] VMware Fusion 7.1.2 Release Notes https://www.vmware.com/support/fusion/doc/fusion-712-release-notes.html

0
source share

open-vm-tools is supported and recommended by VMware for Ubuntu. This way you can easily install open-vm-tools if you really have problems with VMware Tools. Hope it helps.

0
source share

All Articles