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
392
This bug affects 149 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Fix Released
High
Unassigned
Trusty
Fix Released
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:

Revision history for this message
Thomas Fricke (2-ubuntuone-u) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in virtualbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Thilo-Alexander Ginkel (thilo.ginkel) wrote :

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]
Revision history for this message
elhoir (jfarroyo82) wrote :

still in 3.17rc2

3.17rc3 not tested

Revision history for this message
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

Revision history for this message
elhoir (jfarroyo82) wrote :

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

Revision history for this message
pqwoerituytrueiwoq (pqwoerituytrueiwoq) wrote :

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*

Revision history for this message
Mark Rijckenberg (markrijckenberg) wrote :

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

Revision history for this message
Dave Lane (lightweight) 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
Revision history for this message
Cristobal Ortiz Ortiz (prangfamily) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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

Revision history for this message
Shamrock1961 (shamrock1961) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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 :)

Revision history for this message
Sergio Benjamim (sergio-br2) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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

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

Revision history for this message
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
Revision history for this message
Michael Stucki (mstucki) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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
Revision history for this message
Kenneth Wrede (kennethwrede) wrote :

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

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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.

Revision history for this message
Eric Detheridge (ericdetheridge) wrote :

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

Revision history for this message
Diego (diego-giglio) wrote :

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

Revision history for this message
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
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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

Revision history for this message
Rakesh Gorana (rakesh-gorana) wrote :

nice

Revision history for this message
Martin Stechert (martin-stechert) wrote :

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

Revision history for this message
Martin Stechert (martin-stechert) wrote :

#1464996

Revision history for this message
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.

Revision history for this message
Daniel Convissor (convissor) wrote :

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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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

Revision history for this message
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

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.