How to move a compiled kernel to productive linux server ??
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to move a compiled kernel to productive linux server ??
Hi all,
I have compiled a new 2.6.7 kernel and worked in a 2.4G linux server. Now, i want to transfer this new kernel to a slow debian linux server which is using 2.4.18 kernel. ( My 2.4G linux server is running RedHat 7.2 )
What kind of things do I need to concern ??
What package do i need to install ??
From the machine you compiled the kernel from, use
Code:
make-kpkg kernel_image
to create a debianized package of your compiled kernel. make-kpkg is part of kernel-package. If you have already removed the sources, then do as Frustin suggested.
It provides information on some issues when upgrading from the 2.4.x kernel to the 2.6.x kernel.
In my case, the PS/2 mouse would not work and X failed to load (but maybe you don't need X?). You have to add the lines "psmouse" and "mousedev" to /etc/modules to make sure the PS/2 mouse works.
You also need to make sure you created an initrd for the kernel and add an initrd line to your bootloader. The initrd is created with the command: "make-kpkg --initrd kernel_image" The resulting .deb file can be copied to your other machine and installed with dpkg -i.
I just copy the kernel to /boot and change the lilo.conf in production server. The new kernel works but the modules can't load.
Then, i install "modules_init_tools" to upgrade "depmod, insmod..." but the situation is still the same. I just manually type "insmod 8139too", it replies some error message to me !! :-(
Don't copy the kernel image to /boot. Copy the .deb file and install it with "dpkg -i <filename>.deb" The installation will create modules for the kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.