You are not logged in.

#1 2012-09-23 07:37:10

thorjelly
Member
Registered: 2009-02-15
Posts: 52

[SOLVED] Modprobe init script not working with dummy module.

Hello everyone. This is probably very simple.

I want to make a dummy network interface for Xen.

If I:

modprobe dummy numdummies=1
ifconfig -a

dummy0 will be listed as an interface. However I need dummy0 to be an interface when xend daemon is loaded at boot. So I create a file at /etc/modprobe.d/dummy.conf:

options dummy numdummies=1

But dummy0 is never created at boot and is not listed as a network interface with ifconfig -a.

Anyone have any idea why?

Last edited by thorjelly (2012-09-23 16:00:55)

Offline

#2 2012-09-23 13:51:41

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Modprobe init script not working with dummy module.

modprobe.d only describes options when a module is loaded. It doesn't actually insist that the module is loaded. add 'dummy' to /etc/modules-load.d/dummy.conf (or similar)

Offline

#3 2012-09-23 16:00:29

thorjelly
Member
Registered: 2009-02-15
Posts: 52

Re: [SOLVED] Modprobe init script not working with dummy module.

Oh, okay. That works. I tried to put a script in /etc/modules-load.d/ instead of /etc/modprobe,d/ in the form of:

dummy numdummies=1

But I didn't think to put a script in both. Silly me. Thanks.

Last edited by thorjelly (2012-09-23 16:05:38)

Offline

#4 2012-09-23 18:19:43

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

Re: [SOLVED] Modprobe init script not working with dummy module.

Hate to nitpick, but they're not scripts - they're config files. There are man pages for both modprobe.d and modules-load.d to fill in the details for you.

Also, can I just say that 'numdummies' has to be one of dumbest words I've ever seen? smile

Offline

Board footer

Powered by FluxBB