Ubuntu 12.04 x64 - What Modules are Important? (lsmod)

So I’m sort of new to this, and I just experimented updating my Web server and Database server (containing no important data as of yet) to a new kernel version - Ubuntu 12.04.x x64 vmlinuz-3.8.0-38-generic. The install went very smooth, and nothing bad (seemed) to happen.

While trying to install UFW for security purposes … I needed to check if a module was running for them to work … so I decided to type the command “lsmod” to see what modules were running. My Database server and my Web server have completely different modules running, but nothing was affecting either from hosting my sites.

So I guess my main question(s) are, what modules are important and which ones should be running on start-up for security/stability (or does it matter?)?

Also, is there a way to load all modules in /lib/modules/VERSION? And if so, would there be any benefits in doing so?

And my last question, how come my Web server and Database server have different modules loaded (see blow)? (The Web server was originally installed with Ubuntu 12.04 x64 + Ghost 0.4.2 … and the Database server just has Ubuntu 12.04 x64). My Web server is working just fine with only “floppy” running, but I’ll need to enable a few more to make UFW work. On the other-hand, are all the modules currently loaded in my Database server necessary? (see below)

I’m just going to give a sample of what modules my Web server and Database server are currently running below to see if it helps answer any of my questions above:

DB-SERVER = kvm_intel, kvm, vmwgfx, ppdev, ttm, microcodde, drm, psmouse, serio_raw, i2c_piix4, parport_pc, mac_hid, lp, parport, floppy

WEBSERVER = floppy

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Mike, <br> <br>On a fresh 12.04 droplet, this is what lsmod returns: <br> <br><pre> <br># lsmod <br>Module Size Used by <br>kvm_intel 137899 0 <br>ppdev 17113 0 <br>kvm 455932 1 kvm_intel <br>microcode 23017 0 <br>psmouse 97873 0 <br>serio_raw 13215 0 <br>parport_pc 28284 1 <br>vmwgfx 131960 0 <br>ttm 84051 1 vmwgfx <br>drm 287564 2 vmwgfx,ttm <br>i2c_piix4 13459 0 <br>mac_hid 13253 0 <br>lp 17799 0 <br>parport 46562 3 ppdev,parport_pc,lp <br>floppy 70206 0 <br></pre> <br> <br>It sounds like you might have a mismatch between the kernel version in the DigitalOcean control panel and your webserver. <br> <br>Look in /lib/modules for the highest version of the installed kernel library available. <br> <br>In the control panel, in a droplet’s settings, look for a kernel that matches your OS version, kernel library version, and architecture (x32 or x64). Select that kernel and submit. If the kernel doesn’t exist there, stop and let us know your OS and version, your architecture, and what you saw in /lib/modules in a support ticket.
<br> <br>Once the kernel is set, reboot and test. <br> <br>