FS#48551 - [virtualbox-host-dkms] 5.0.16-1: Failed to find module 'vboxnetadp\nvboxnetflt\nvboxdrv\n'

Attached to Project: Community Packages
Opened by Martin Schnitkemper (Martin-MS) - Saturday, 12 March 2016, 20:54 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 13 March 2016, 14:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description: Error on boot or restart systemd-modules-load.service: Failed to find module 'vboxnetadp\nvboxnetflt\nvboxdrv\n'

Additional info: Probably malformed line in /usr/lib/modules-load.d/virtualbox-host-dkms.conf

After I splitted the content into three single lines and removed the control character \n

| vboxnetadp
| vboxnetflt
| vboxdrv

I was able to restart the service without error and modules were loaded.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Sunday, 13 March 2016, 14:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.0.16-2
Comment by Alexandre Bolelli Soares (Semeion) - Saturday, 12 March 2016, 21:28 GMT
I can confirm the problem, same is happening here.

Aditionally i am getting a new error moments before:

Mar 12 18:11:05 blackbird systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Mar 12 18:11:05 blackbird systemd[1]: Failed to start Load Kernel Modules.
Mar 12 18:11:05 blackbird systemd[1]: systemd-modules-load.service: Unit entered failed state.
Mar 12 18:11:05 blackbird systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.

...and the actual reported by you:

Mar 12 18:11:05 blackbird systemd-modules-load[172]: Failed to find module 'vboxnetadp\nvboxnetflt\nvboxdrv\n'


The problem was started after last 'pacman -Syu', when this packages got updated:

[2016-03-12 16:48] [ALPM] upgraded pcre (8.38-2 -> 8.38-3)
[2016-03-12 16:48] [ALPM] upgraded device-mapper (2.02.144-1 -> 2.02.145-1)
[2016-03-12 16:48] [ALPM] upgraded dkms (2.2.0.3+git151023-6 -> 2.2.0.3+git151023-8)
[2016-03-12 16:48] [ALPM] upgraded thin-provisioning-tools (0.6.0-2 -> 0.6.1-2)
[2016-03-12 16:48] [ALPM] upgraded lvm2 (2.02.144-1 -> 2.02.145-1)
[2016-03-12 16:48] [ALPM] upgraded pidgin-otr (4.0.1-2 -> 4.0.2-1)
[2016-03-12 16:48] [ALPM] upgraded virtualbox-host-dkms (5.0.14-4 -> 5.0.16-1)
[2016-03-12 16:48] [ALPM] upgraded virtualbox (5.0.14-4 -> 5.0.16-1)
[2016-03-12 16:53] [PACMAN] Running '/usr/bin/pacman -U virtualbox-ext-oracle-5.0.16-1-any.pkg.tar.xz'

So, for sure o problem is in some of that packages above ^



sudo systemctl status systemd-modules-load.service

● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sáb 2016-03-12 18:11:03 BRT; 16min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 172 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 172 (code=exited, status=1/FAILURE)

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Comment by Martin Schnitkemper (Martin-MS) - Saturday, 12 March 2016, 21:44 GMT
Got also the other errors, I think the whole service is set into a failed state if one of the modules could not be loaded. You can try to edit virtualbox-host-dkms.conf the way I mentioned above and restart systemd-modules-load.service, then the modules are found & loaded, and the state changes to a "active" state.
Comment by Alexandre Bolelli Soares (Semeion) - Saturday, 12 March 2016, 21:58 GMT
@Martin, thank you for the report, solution and feedback.

I will wait for a fix on mainstream, if it don´t happens in 1 or 2 days i will apply your solution.
Comment by Doug Newgard (Scimmia) - Saturday, 12 March 2016, 23:00 GMT
What kernel and do you have the headers installed for it?

Edit, oh, I see, that's a new file. It's always been left up to the user in the past, no idea why it's now done by the package.
Comment by Martin Schnitkemper (Martin-MS) - Saturday, 12 March 2016, 23:25 GMT
Kernel Version 4.4.5-1, header package is installed and all modules were built correctly and placed into /usr/lib/modules/4.4.5-1-ARCH/kernel/misc and are able to load using modprobe.
Comment by Llewelyn Trahaearn (llewelyn) - Saturday, 12 March 2016, 23:35 GMT
The error lies in the use of echo in the PKGBUILD to generate the file /usr/lib/modules-load.d/virtualbox-host-dkms.conf like this: echo "vboxnetadp\nvboxsf\nvboxguest\n" > "$pkgdir/usr/lib/modules-load.d/$pkgname.conf" Replacing echo with printf would solve the issue as printf aims to be predicable where echo is not.
Comment by Hartmut Malzahn (hwm) - Sunday, 13 March 2016, 06:17 GMT
You don't actually need printf. "echo" as such does not interpret escape characters by default, you need the "-e" option for that;

echo -e "vboxnetadp\nvboxsf\nvboxguest\n" > "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"

(man bash, section SHELL BUILTIN COMMANDS)
Comment by Nail (nail) - Sunday, 13 March 2016, 10:43 GMT
I can confirm the problem, same is happening here.

мар 13 13:40:07 hosthome systemd-modules-load[1134]: Failed to find module 'vboxnetadp\nvboxnetflt\nvboxdrv\n'

After the last update, similar to Alexandre (Semeion).
Comment by Sébastien Luttringer (seblu) - Sunday, 13 March 2016, 12:58 GMT
A fixed version is coming.

Loading...