RTNL: assertionfailed error of VMWare6 under 2.6.23

Source: Internet
Author: User
RTNL: assertionfailed error of VMWare6 at 2.6.23-Linux general technology-Linux technology and application information. For details, see the following. Dmesg shows the kernel information as follows:

Kernel:/dev/vmnet: open called by PID 6510 (vmware-vmx)
Kernel: RTNL: assertion failed at net/core/dev. c (2595)
Kernel:
Kernel: Call Trace:
Kernel: _ dev_set_promiscuity + 61/188 _ dev_set_promiscuity + 0x3d/0xbc
Kernel: dev_set_promiscuity + 21/45 dev_set_promiscuity + 0x15/0 x2d
Kernel: _ end + 139070215/2131048980: vmnet: VNetBridgeStartPromisc + 0x21/0 x3e
Kernel: _ end + 139063873/2131048980: vmnet: VNetHubPortsChanged + 0xa5/0xbc
Kernel: _ end + 139059259/2131048980: vmnet: VNetConnect + 0xa6/0xac
Kernel: _ end + 139061995/2131048980: vmnet: VNetFileOpOpen + 0xc9/0x166
Kernel: chrdev_open + 351/406 chrdev_open + 0x15f/0x196
Kernel: open_namei + 670/1527 open_namei + 0x29e/0x5f7
Kernel: chrdev_open + 0/406 chrdev_open + 0x0/0x196
Kernel: _ dentry_open + 217/426 _ dentry_open + 0xd9/0x1aa
Kernel: do_filp_open + 42/56 do_filp_open + 0x2a/0x38
Kernel: do_unlinkat + 239/331 do_unlinkat + 0xef/0x14b
Kernel: get_unused_fd_flags + 114/287 get_unused_fd_flags + 0x72/0 x11f
Kernel: do_sys_open + 70/202 do_sys_open + 0x46/0 xca
Kernel: sysenter_do_call + 27/103 sysenter_do_call + 0x1b/0x67

Solution:

1. Enter the/usr/lib/vmware/modules/source directory, decompress vmnet.tar, and generate the vmnet-only directory.

# Cd/usr/lib/vmware/modules/source
# Tar xf vmnet.tar

2. Modify vmnet-only/bridge. c

Find the row containing the keyword dev_set_promiscuity (3 rows in total)
Add a line of rtnl_lock () before it ();
Add a rtnl_unlock ();
After modification, it is as follows:

Rtnl_lock ();
Dev_set_promiscuity (dev,-1 );
Rtnl_unlock ();

If manual modification is troublesome, use the following sed command.

# Sed-I '/dev_set_promiscuity/I rtnl_lock (); 'bridge. c
# Sed-I '/dev_set_promiscuity/a rtnl_unlock (); 'bridge. c

3. Re-package vmnet.tar

# Tar cf vmnet.tar vmnet-only

4. reconfigure vmware

# Vmware-config.pl

5. restart the system.

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.