vmware kernel module updata 问题解决

 

VMware modules & kernel 3.13

Garrett Skjelstad / 

Ugh. So really. Sometimes I drive myself insane. I have this insatiable urge to constantly be updating my system. In this particular case, I was running Fedora 20 (still beta, is supposed to be released on December 17th), even though I am already running beta code, in my infinite wisdom, I decided that I should try and use the rawhide repo. I actually just wanted a specific package. (VLC), why i decided I needed the rawhide version, I can’t remember, and it’s not really important.

What is important is that I decided to enabled the rawhide repo, and then ran a a distro-sync. (oh noes!)

That was my first mistake. I have a pentient for upgrades. Seriously. I love updates. I even love beta updates.  Unfortunately the dopamine release I get from installing a new version of software quickly turns to regret when my system turns unstable. Fixing a broken system is annoying, especially when I don’t have enough knowledge to know why things are broken, I’ll save that for another post.

Short story VMware Workstation kernels don’t compile correctly on Linux Kernel 3.13 located in the Fedora rawhide repo.

Here’s the module patch: (Updated: Thanks DanDar3)

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

Save that text as vmnet313.patch in your home dir.

Here’s the complete steps to implement

#Change directory into the vmware module source directory
cd /usr/lib/vmware/modules/source
# untar the vmnet modules
tar -xvf vmnet.tar
#run a the patch you should have just saved earlier
patch vmnet-only/filter.c < ~/vmnet313.patch
# re-tar the modules
tar -uvf vmnet.tar vmnet-only
#delete the previous working directory
rm -r vmnet-only
# run the vmware module build program. (alternatively just run the GUI app)
/usr/lib/vmware/bin/vmware-modconfig --console --install-all

This should patch the filter.c to be compatible with 3.13.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值