VMware Player 6.0.2, Ubuntu 14.04, kernel 3.15.0-rc7 patch

vmware_compVMware Player throws errors while compiling the vmci and vsock modules with just-released kernel 3.15.0 rc7 on Ubuntu 14.04 (Trust Tahr) x86_64. Instead of Ubuntu kernel-ppa mainline this time I have compiled the kernel from Linus’s Git tree and using it.

The errors in vmci module are:

/tmp/modconfig-5Nq5Lx/vmci-only/linux/driver.c:740:12: error: incompatible types when assigning to type ‘VMCIHostUser’ from type ‘kuid_t’
user = current_uid();
make[2]: *** [/tmp/modconfig-5Nq5Lx/vmci-only/linux/driver.o] Error 1

In addition to similar errors as above, other errors in vsock module are:

/tmp/modconfig-KpbL9l/vsock-only/linux/notify.c:519:4: error: too many arguments to function ‘sk->sk_data_ready’
sk->sk_data_ready(sk, 0);

The above are happening due to introduction of a structure kuid_t and change in signature of sk_data_ready(). I have uploaded the patches for both the modules here.

Once you download the patches, run the following as root:

# cd /usr/lib/vmware/modules/source
# mv /path/to/kernel_3.15.0-rc7-patch.tar.gz .
# tar -zxvf kernel_3.15.0-rc7-patch.tar.gz
# tar -xf vmci.tar
# tar -xf vsock.tar
# mv vmci.patch vmci-only/
# mv vsock.patch vsock-only/
# cd vmci-only/
# patch -p1 < vmci.patch
# cd ../vsock-only/
# patch -p1 < vsock.patch
# cd ..
# tar -cf vmci.tar vmci-only/
# tar -cf vsock.tar vsock-only/
# vmware-modconfig --console --install-all

All the modules should compile without any issues now.

4 thoughts on “VMware Player 6.0.2, Ubuntu 14.04, kernel 3.15.0-rc7 patch”

Leave a Reply to Arun Cancel reply

Your email address will not be published. Required fields are marked *