virtualbox-dkms 4.3.10-dfsg-1: virtualbox kernel module failed to build [error: macro "alloc_netdev" requires 4 arguments, but only 3 given]

Bug #1358157 reported by Thomas Fricke on 2014-08-18
392
This bug affects 149 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
High
Unassigned
Trusty
Undecided
Unassigned

Bug Description

Edited bug report:
------------------
VirtualBox kernel module fails to build with the 14.04 lts-vivid kernel:
linux-image-generic-lts-vivid 3.19.0.26.13

The patch.txt from there works for me:
https://forums.virtualbox.org/viewtopic.php?p=296650#p296650

Initial bug report:
-------------------
Tested the new kernel.

Linux albus 3.17.0-031700rc1-generic #201408161335 SMP Sat Aug 16 17:36:29 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Not important, I do not rely on virtual-box.

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: virtualbox-dkms 4.3.10-dfsg-1
Uname: Linux 3.17.0-031700rc1-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
DKMSKernelVersion: 3.17.0-031700rc1-generic
Date: Mon Aug 18 09:51:07 2014
DuplicateSignature: dkms:virtualbox-dkms:4.3.10-dfsg-1:/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
InstallationDate: Installed on 2014-04-09 (130 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Daily amd64 (20140409)
PackageArchitecture: all
PackageVersion: 4.3.10-dfsg-1
SourcePackage: virtualbox
Title: virtualbox-dkms 4.3.10-dfsg-1: virtualbox kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)
VirtualBox.ModInfo:

Thomas Fricke (2-ubuntuone-u) wrote :
tags: removed: need-duplicate-check
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualbox (Ubuntu):
status: New → Confirmed

Getting the code to compile is rather trivial (cf. https://forums.virtualbox.org/viewtopic.php?f=7&t=63208), but for me VirtualBox still fails to start a VM afterwards.

summary: virtualbox-dkms 4.3.10-dfsg-1: virtualbox kernel module failed to build
+ [error: macro "alloc_netdev" requires 4 arguments, but only 3 given]
elhoir (jfarroyo82) wrote :

still in 3.17rc2

3.17rc3 not tested

elhoir (jfarroyo82) wrote :

Oops, this s a virtuaolbox bug, not kernel....

Ok, let me change the expression^^^

Still in vbox 4.3.14 using kernel 3.17rc2

kernel 3.17rc3 not installed yet

elhoir (jfarroyo82) wrote :

still present with kernel 3.17rc3, module compilation fails at kernel install

the 3.17 kernel is not supported by ubuntu 14.04, it is only official for 14.10 (currently in beta testing), to get virtaulbox working you would need to download it from the utopic repos (which may or may not be kernel 3.17 ready just yet)
*sits here completely surprised my nvidia drive still works in 3.17rc3 on 14.04*

A working solution for me is running these commands in Ubuntu 14.04 LTS using GNU/Linux kernel 3.17.0-031700-lowlatency #201410051635 SMP PREEMPT :

cd /tmp

wget http://download.virtualbox.org/virtualbox/4.3.16/virtualbox-4.3_4.3.16-95972~Ubuntu~raring_amd64.deb

sudo dpkg -i virtualbox-4.3_4.3.16-95972~Ubuntu~raring_amd64.deb

lightweight (dave-egressive) wrote :

Many thanks for that, Mark. That worked for me. I've got 3.17.0-031700-lowlatency installed via the KernelUpdate script... otherwise works great on my Lenovo X1 Carbon...

Changed in virtualbox (Ubuntu):
importance: Undecided → High

same error under
  ubuntu 14.04.1 LTS with kernel 3.18.1-031801-generic

yes, you need to use a new virtualbox with a new kernel.

Shamrock1961 (shamrock1961) wrote :

Where do I get this virtualbox that I never seem to use to my knowledge?

virtualbox/utopic is currectly uploading on my ppa:
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa/

in order to use it you can
sudo apt-add-repository ppa:costamagnagianfranco/locutusofborg-ppa
sudo apt-get update
sudo apt-get install virtualbox and all the other stuff :)

Sergio Benjamim (sergio-br2) wrote :

Same problem trying to install kernel 3.18.2. Will virtualbox from utopic come to backport repo?

You can use "requestbackport" tool to get your backport accepted.

Feel free to use my ppa for testing and link the bug there :-)

WhyteHorse (whytehorse) wrote :

I got this error after upgrading from kernel 3.13 to a special 3.17 which has HSA support. Downgrading to 3.13 fixed it.

Changed in virtualbox (Ubuntu):
status: Confirmed → Incomplete

also taking the package from utopic/vivid fixes the issue.

Closing as invalid, if you want a newer virtualbox you can: request a backport, or wait for a new lts kernel to reach trusty

Changed in virtualbox (Ubuntu):
status: Incomplete → Invalid
Kenneth Wrede (kennethwrede) wrote :

Got this problem with the new LTS-kernel in Trusty. Vivid, kernel 3.19.0.18.5.

Daniel van Vugt (vanvugt) wrote :

Still getting duplicates of this. Someone needs to choose a master bug an _open_ it.

I would like to fix it, but on the new trusty I can't *install* the build dependencies, the usual xorg-lts backport f***ed the rdeps and I can't fix it ATM.

Still get this error in Trusty with latest Vivid lts kernel version 3.19.0.20.7

Diego (diego-giglio) wrote :

To me Kernel 3.19.0-22-generic and Oracle VirtualBox 5.0 works fine.

Alkis Georgopoulos (alkisg) wrote :

@costamagnagianfranco, a new lts kernel exists in trusty (linux-image-generic-lts-vivid 3.19.0.26.13),
and this is the launchpad bug report that apport directs us to when trying to upload the crash,
so I'm reopening it, if you think it should be closed and another one should be opened, please also tell us a way to direct apport there too.

The patch.txt from there works for me:
https://forums.virtualbox.org/viewtopic.php?p=296650#p296650

Changed in virtualbox (Ubuntu):
status: Invalid → Confirmed
tags: added: patch
description: updated

Hi Alkis, I marked it as duplicate of the main bug.

Rakesh Gorana (rakesh-gorana) wrote :

nice

I created a backport request for trusty in june (ticket 1464996), but there is not much progress yet

#1464996

Daniel Convissor (convissor) wrote :

This problem is fixed in VirtualBox-4.3.34 (maybe even earlier). Can Ubuntu's packaged version please be upgraded? That way everyone can get on with our lives.

Daniel Convissor (convissor) wrote :

In case someone just wants to backport this particular fix, it's in r52420 in trunk.

Hi Daniel, well, I'm in the process of SRUing virtualbox to 4.3.34.

can you please give my ppa a test?

talking about bug LP: #1517161 and
 https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+packages

Daniel Convissor (convissor) wrote :

I did the following and things are running okay. Thanks!

apt-get purge virtualbox
    The following packages will be REMOVED:
        virtualbox* virtualbox-dkms* virtualbox-qt*

wget https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+files/virtualbox_4.3.34-dfsg-1%2Bdeb8u1ubuntu1_amd64.deb

wget https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+files/virtualbox-dkms_4.3.34-dfsg-1%2Bdeb8u1ubuntu1_all.deb

wget https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+files/virtualbox-qt_4.3.34-dfsg-1%2Bdeb8u1ubuntu1_amd64.deb

apt-get install libgsoap4

dpkg -i virtualbox-dkms_4.3.34-dfsg-1+deb8u1ubuntu1_all.deb
dpkg -i virtualbox_4.3.34-dfsg-1+deb8u1ubuntu1_amd64.deb
dpkg -i virtualbox-qt_4.3.34-dfsg-1+deb8u1ubuntu1_amd64.deb

fixed.

Changed in virtualbox (Ubuntu):
status: Confirmed → Fix Released
Changed in virtualbox (Ubuntu Trusty):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers