System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to load module automatically

 
Highlighted
Valued Contributor

how to load module automatically

OS: SUSE LINUX 10 SP1
attached: /etc/modprobe.conf

I have to add the vmmon module by manually executing the 'modprobe vmmon' command.

how can i load it automatically at system boot.

following are the details

# lsmod |grep vmmon

# modprobe vmmon

# lsmod |grep vmmon
vmmon 509676 0

# modprobe --show-depends vmmon
insmod /lib/modules/2.6.16.46-0.12-smp/misc/vmmon.ko

# modinfo vmmon
filename: /lib/modules/2.6.16.46-0.12-smp/misc/vmmon.ko
description: VMware Virtual Machine Monitor.
author: VMware, Inc.
srcversion: BF31F4CC068BC05C3709657
depends:
vermagic: 2.6.16.46-0.12-smp SMP gcc-4.1

Regards
Maaz
7 REPLIES 7
Highlighted
Honored Contributor

Re: how to load module automatically

Maaz.
You need to put this in /etc/modprobe.conf

man modprobe.conf will explaine it better the I could hope to do.

enjoy life.

Jean-Pierre Huc
Smile I will feel the difference
Highlighted
Valued Contributor

Re: how to load module automatically

Hi thanks HUC


in /etc/modprobe.conf
modprobe vmmon

still module vmmon doesnt load automatically, and during system boot I got the following warning message:
WARNING: /etc/modprobe.conf line 410: ignoring bad line starting with 'modprobe'
Highlighted
Honored Contributor

Re: how to load module automatically

Please discard previous answer send the wrong version there... in fact I am having a hard time to send this reply... lest us try again.

You need to add a line to /etc/modprobe.conf man page modprobe.conf explains this better then I could ever hope to !

but in your case "suse" inside the modprobe.conf you attached it say's you should only modify/add to /etc/modeprobe.conf.local

so I think a line like the following in /etc/modeprobe.cond.local should do the trick.

vmmon 509676 0

enjoy life.

Jean-Pierre Huc
Smile I will feel the difference
Highlighted
Honored Contributor

Re: how to load module automatically

But you could also just add
modeprobe vmmon

to the end of file /etc/rc.local

hope this helps.

Jean-Pierre Huc
Smile I will feel the difference
Highlighted
Valued Contributor

Re: how to load module automatically

in /etc/modprobe.con.local

vmmon 509676 0


then reboot, and got the message:

WARNING: /etc/modprobe.conf.local line 5: ignoring bad line starting with 'vmmon'
Highlighted
Valued Contributor

Re: how to load module automatically

Hi HUC
>But you could also just add modprobe vmmon
>to the end of file /etc/rc.local

Yes this works now.
in SUSE there is /etc/init.d/boot.local, so in /etc/init.d/boot.local, I add "/sbin/modprobe vmmon", and it works quite fine.



Highlighted
Valued Contributor

Re: how to load module automatically

and I just come to know an another nice & juicy way to load modules automatically, Open YaST and click on the /etc/sysconfig section. Under the kernel section there is a line "MODULES_LOADED_ON_BOOT". Add your module in the box.

Regards