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

April 29, 2014 844 views
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
1 Answer
Hi Mike,

On a fresh 12.04 droplet, this is what lsmod returns:

# lsmod
Module Size Used by
kvm_intel 137899 0
ppdev 17113 0
kvm 455932 1 kvm_intel
microcode 23017 0
psmouse 97873 0
serio_raw 13215 0
parport_pc 28284 1
vmwgfx 131960 0
ttm 84051 1 vmwgfx
drm 287564 2 vmwgfx,ttm
i2c_piix4 13459 0
mac_hid 13253 0
lp 17799 0
parport 46562 3 ppdev,parport_pc,lp
floppy 70206 0

It sounds like you might have a mismatch between the kernel version in the DigitalOcean control panel and your webserver.

Look in /lib/modules for the highest version of the installed kernel library available.

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.

Once the kernel is set, reboot and test.

Have another answer? Share your knowledge.