Web Hosting Talk







View Full Version : Kernel swap


myusername
02-19-2004, 07:42 AM
Are kernels interchangeable?

Meaning If I had an admin updating kernels for me, and I had lesser than production servers, but still wanted them secure, can I just take the kernel file (whatever/wherever) it may exist, copy it, and plug it in to another identical server?

Making sure grub.conf listed it first.....

Similar to how if I wanted to swap out say a custom Horde webmail cofig.blah with a default Horde config.blah

???

Am I dumb?

:eek:

Slidey
02-19-2004, 07:44 AM
if the 2 machines have hte same hardware it *should* be ok. no promises though

myusername
02-19-2004, 07:56 AM
For RH Linux 7.3 or 9.0 where is the kernel located and what file (s) need to make the transfer complete?

Thanks!

matt2kjones
02-19-2004, 08:02 AM
right, a kernel can be compiled on any machine, then moved to another. The reason for this being that when you run make config, you are spcifying the hardware of the machine the kernel will run on.

So as long as the hardware the kernel has been compiled for matches the hardware of the machine you want to copy it to, then it should work.

i use lilo, but i think the grub config file is in /boot/grub.conf?

or maybe not?

do this: whereis grub

that should give you an answer to where grub files are. and as for where the kernel is, it depends where the user who compiled the kernel put the compiled image.

most standard place to put it is in /boot

Techark
02-19-2004, 08:56 AM
Not a good idea unless you know the hardware is the same.

Steven
02-19-2004, 11:22 AM
i would think there would be more of a chance to screw it up then recompiling

sprintserve
02-19-2004, 11:49 AM
Grub config is in /boot/grub/grub.conf

I see little benefit of this though since you should be able to install a new kernel on the other server easily.