3.0 beta 1 will not work with linux kernels >= 2.6.31

Discussions related to using VirtualBox on Linux hosts.
Locked
typerlc
Posts: 22
Joined: 20. Jun 2009, 15:32
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WinXP

3.0 beta 1 will not work with linux kernels >= 2.6.31

Post by typerlc »

Fedora rawhide (fc12) has moved to linux kernel 2.6.31. This kernel removes backwards compatibility for the old network driver api. Only the new net_driver_ops structure api is supported.

This means that vbox 3.0 beta 1 won't work on this kernel. For that matter, none of the 2.x stream will work either.

See here for discussion of this change in 2.6.31: http://patchwork.ozlabs.org/patch/27566/

This causes compilation failures in VBoxNetAdp-linux.c. Here's output from a sample build failure:

Code: Select all

make KBUILD_VERBOSE= -C /lib/modules/2.6.31-0.11.rc0.git13.fc12.i686.PAE/build SUBDIRS=/tmp/vbox.3 SRCROOT=/tmp/vbox.3 modules
  CC [M]  /tmp/vbox.3/linux/VBoxNetAdp-linux.o
In file included from /tmp/vbox.3/include/VBox/intnet.h:34,
                 from /tmp/vbox.3/linux/../VBoxNetAdpInternal.h:26,
                 from /tmp/vbox.3/linux/VBoxNetAdp-linux.c:48:
/tmp/vbox.3/include/VBox/stam.h:69:7: warning: "_MSC_VER" is not defined
/tmp/vbox.3/linux/VBoxNetAdp-linux.c: In function ‘vboxNetAdpNetDevInit’:
/tmp/vbox.3/linux/VBoxNetAdp-linux.c:169: error: ‘struct net_device’ has no member named ‘open’
/tmp/vbox.3/linux/VBoxNetAdp-linux.c:170: error: ‘struct net_device’ has no member named ‘stop’
/tmp/vbox.3/linux/VBoxNetAdp-linux.c:171: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/vbox.3/linux/VBoxNetAdp-linux.c:172: error: ‘struct net_device’ has no member named ‘get_stats’
make[2]: *** [/tmp/vbox.3/linux/VBoxNetAdp-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.3] Error 2
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: 3.0 beta 1 will not work with linux kernels >= 2.6.31

Post by Sasquatch »

The 2.6.31 kernel is still in development. Don't bother asking for support here. Go complain at Fedora, or just use an older kernel until it's final. Support from VB will come in due time.

Locked. Don't ask here for kernel support when it's not final. And it's not 3.0 specific, older VB versions will have the same problem.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Locked