Upgrading the Linux kernel causes VMware to be unusable (Vmnet module fails to compile) solution

Source: Internet
Author: User

Ubuntu has recently been upgraded to 14.04, with VMware not booting. In particular, a VMware Kernel Module Updater dialog box pops up each time it starts, requiring that some kernel modules be recompiled based on the current kernel version, but that the network module vmnet always fails to compile.


Find related data The reason for this is that the Linux kernel version is now 3.13 after upgrading to Ubuntu 14.04, the kernel version modifies some of the underlying functions, and VMware's related source packages have not had time to modify the relevant code. Because of the kernel version issue, the same problem also occurs in a large number of systems such as Fedora.

So the same problem can continue to exist in 3.14, 3.15 and other subsequent versions.


The workaround is to modify two code in the source bundle of the Vmnet module.


1, Get root permission, enter the relevant directory:

Su

Cd/usr/lib/vmware/modules/source

2, extract vmnet source package (get Vmnet-only folder):

TAR-XF Vmnet.tar

3. Back up the original file:

MV Vmnet.tar Vmnet.tar.bak

4. Modify the source file Filter.c:

4.1, modified in line 206: VNETFILTERHOOKFN (const unsigned int hooknum//in:

is: vnetfilterhookfn (const struct Nf_hook_ops *ops,//in:

4.2, modify 255 lines of: transmit = (Hooknum = = vmw_nf_inet_post_routing);

As: transmit = (Ops->hooknum = = vmw_nf_inet_post_routing);

5, Packaging modified files, delete useless files

Tar-uf Vmnet.tar vmnet-only

RM-RF vmnet-only

6, recompile the kernel module, start VMware

You can start the automatic detection and compilation process directly by clicking on the VMware Workstation icon, or by command:

Vmware-modconfig--console--install-all


Thanks: Bearox and Garrett Skjelstad

http://blog.csdn.net/bearox/article/details/21294609

http://ping8888.com/2013/12/13/vmware-modules-kernel-3-13/



Originally contained in Http://blog.csdn.net/yanxiangtianji

Reprint please indicate the source



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.