LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-30-2014, 04:18 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
Changing a Linux kernel


I have a server through OVH and I just learned the hard way (after fully configuring and putting it live, thus too late to do anything drastic) that they use a custom kernel that has no support for kernel modules. I need kernel modules so I can play around with KVM/Qemu and try to get a VM going for a game server.

I read this which shows how to change it back:

http://change_ovh_kernel.onlinephpfunctions.com/

Is it really that simple? What about having to install kernel headers and messing around with compiling stuff and all that? I figured it would be more complicated. Am I missing anything?

In my grub.conf I have two entries and one is pointing to the normal kernel. Is it really as easy as removing the other entry?

Also is there a way to apply the new kernel without rebooting? I don't want to risk the machine not coming back, I have no physical access.
 
Old 12-30-2014, 04:54 PM   #2
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Just do not remove your old kernel/initramfs, as well as grub.conf entry. If something will go wrong you can boot with old kernel and fix things.
Regarding kernel modules, they are located under /lib/modules directory and seperated by kernel versions, so they cannot be messed.
Code:
ls -l /lib/modules
total 8
drwxr-xr-x 4 root root 4096 dec 20 22:16 3.16.5-gentoo
drwxr-xr-x 4 root root 4096 dec 29 21:21 3.17.7-gentoo
every kernel has it's own modules set, for me it is 3.16.5 and 3.17.7 kernels.

I suspect the same for kernel headers, but not sure.
There are two paths where kernel headers might be located. The first is aforementioned /lib/modules/<kernel-version>/build/include/. And the second is /usr/src/linux-<version>/include.
You may check these locations for headers presence
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CLFS UEFI bootloader, updating, and changing kernel to linux-libre Z4kW0lf Linux From Scratch 11 12-19-2012 02:47 PM
changing file size at run time in linux kernel code Aliasgar Batterywala Linux - Kernel 4 02-21-2012 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration