You are not logged in.

#1 2012-11-28 12:10:07

toni
Member
Registered: 2011-10-15
Posts: 395

VirtualBox: Load kernel modules at startup

I have installed virtualbox and I would like to load its modules vboxdrv at startup so following what is commented in ArchWiki https://wiki.archlinux.org/index.php/Vi … el_Modules, I have create a file virtualbox.conf at /etc/modules-load.d with the following content:

tee /etc/modules-load.d/virtualbox.conf <<< "vboxdrv"

and then:

depmod -a

Finally, I restart the system but at boot time when loading modules it fails and it recommends me to see systemctl.

System Info:
VirtualBox 4.2.4
Kernerl version: 3.6.6-1-ARCH

Offline

#2 2012-11-28 13:53:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: VirtualBox: Load kernel modules at startup

... and systemctl says?

Offline

#3 2013-01-01 11:49:58

toni
Member
Registered: 2011-10-15
Posts: 395

Re: VirtualBox: Load kernel modules at startup

it says:

see 'systemd-modules.services' for details.

tomk wrote:

... and systemctl says?

Offline

#4 2013-01-01 12:12:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: VirtualBox: Load kernel modules at startup

This is where you're meant to read docs, do research etc, to find out the right commands to run. I'll start you off:

systemctl status systemd-modules-load

and also

journalctl -u systemd-modules-load

Now away you go and read the excellent systemd man and wiki pages for more details.

Offline

#5 2013-01-01 12:20:40

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,528
Website

Re: VirtualBox: Load kernel modules at startup

toni wrote:

VirtualBox 4.2.4
Kernerl version: 3.6.6-1-ARCH

...and `pacman -Syu` your system!

toni wrote:
tee /etc/modules-load.d/virtualbox.conf <<< "vboxdrv"

I suspect you want to load more than just the vboxdrv, no?  For example, my setup requires both vboxdrv and vboxnetflt to work properly.

Last edited by graysky (2013-01-01 12:22:48)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2013-01-01 12:34:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: VirtualBox: Load kernel modules at startup

Not necessarily, graysky. The simplest vbox setups only require vboxdrv.

Last edited by tomk (2013-01-01 12:35:37)

Offline

#7 2013-01-01 12:35:23

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,528
Website

Re: VirtualBox: Load kernel modules at startup

tomk wrote:

Not necessarily, graysky. The simplest vbox setups only vboxdrv.

Guess it depends on how his network is configured.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2013-01-06 16:36:53

toni
Member
Registered: 2011-10-15
Posts: 395

Re: VirtualBox: Load kernel modules at startup

I am trying to load vboxdrv only.

Recently I have done the following:

$ sudo /usr/lib/systemd/systemd-modules-load
Module 'nfs' is already loaded
Module 'cuse' is already loaded
Failed to find module 'snd-seq-oss'
Module 'vboxdrv' is already loaded

so I guess this is caused by snd-seq-oss at startup, but I do not know how to solve this. In the meantime I will google...
For your information: I am using OSS.

I highly appreciate your comments, thanks to all of you.

graysky wrote:
toni wrote:

VirtualBox 4.2.4
Kernerl version: 3.6.6-1-ARCH

...and `pacman -Syu` your system!

toni wrote:
tee /etc/modules-load.d/virtualbox.conf <<< "vboxdrv"

I suspect you want to load more than just the vboxdrv, no?  For example, my setup requires both vboxdrv and vboxnetflt to work properly.

Last edited by toni (2013-01-06 16:40:42)

Offline

Board footer

Powered by FluxBB