VMware player 6 and Ubuntu 14.04 (Linux Kernel 3.13)

I’ve installed Ubuntu 14.04 Beta 2 and found that VMware didn’t work because the vmnet module wasn’t able to be compiled. After some research I found some posts about this problem, the VMware vmnet module source has to be patched in order to compile. This is based on the information I found at here but there are more similar sources.

This is the patch code:

205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops, // IN:
> #endif
255c259,263
< transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
> transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
> #else
> transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
> #endif

Now to apply the patch, execute the following commands:

cd /usr/lib/vmware/modules/source
tar -xvf vmnet.tar
patch vmnet-only/filter.c < ~/vmnet313.patch
patch vmnet-only/filter.c < /home/fgomes/vmnet313.patch
tar -uvf vmnet.tar vmnet-only
rm -r vmnet-only

After this, start VMware player, it should be able to compile vmnet now!

This entry was posted in Linux, OpenStudio. Bookmark the permalink.

Leave a Reply

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