Upgrading the Linux kernel causes VMware to be unable to use (Vmnet module cannot be compiled) solution

Source: Internet
Author: User

The recent upgrade of Ubuntu to 14.04 has seen a situation where VMware cannot start.

In detail, a VMware Kernel Module Updater dialog box pops up each time it starts, requiring that some kernel modules be compiled again based on the current kernel version number. However, the network module vmnet always fails to compile.


Find related data found because the Linux kernel version number is now 3.13 after upgrading to Ubuntu 14.04. This kernel version has changed some of the underlying functions, and VMware's related source code package has not yet had time to change the relevant code. Because the kernel version number is a problem, the same problem is also large in today's fedora and other systems.

So the same problem can continue to exist in the 3.14, 3.15, etc. version number.


The workaround is to change two code in the source package of the Vmnet module.


1, Get root permissions. Enter the relevant folder:

Su

Cd/usr/lib/vmware/modules/source

2, extract vmnet source code package (get vmnet-only directory):

TAR-XF Vmnet.tar

3. Back up the original file:

MV Vmnet.tar Vmnet.tar.bak

4, change the source file filter.c:

4.1, change 206 lines of: VNETFILTERHOOKFN (const unsigned int hooknum//in:

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

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

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

5, package the changed files, delete the useless files

Tar-uf Vmnet.tar vmnet-only

RM-RF vmnet-only

6. Compile the kernel module again and start VMware

The ability to directly click on the VMware Workstation icon to launch your own proactive detection and compilation process, as well as through commands:

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



Upgrading the Linux kernel causes VMware to be unable to use (Vmnet module cannot be compiled) solution

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.