Tool for building net booted kernel and ramdisk?
I am exploring further options for net booting and kickstart.
The process I want to use is: 1) Boot via PXE, got it working using pxelinux and grub. 2) Load the Magic Mother Of All Kernels and Initrd's 3) Kickstart - got it working sort of, booting from CDROM. Seems straightforward. Steps 1 and 3 seem to be covered. But step 2 is a mystery. I've located no real documentation or tools. I'm not a terribly experienced kernel builder and completely INexperienced at coming up with initrd's. I suppose after days of trial and error that I could come up with something that would work. So far, all the kernels I've tried panic. I'm using Fedora but I'm not OS-centric. If it's 10 times easier with some other distro I'm open to suggestions. Theoretically, I should even be able to boot distro X and use it to kickstart distro Y .... TIA, just a quick pointer in the wilderness will be appreciated. -W Sanders |
Does this help?
|
in the right direction (a plug for Solaris 10)
although I would replace the phrase "surprising amount of fiddling" with "appalling amount of fiddling".
The Sun blueprint he links to describes setting up a Jumpstart server to install Solaris x86 via PXE. I've actually done that, it's *easy*, and actually a big reason to run Solaris 10 rather than Linux on X86; the net boot / disaster recovery capabilities of Sol 10 are MUCH more rebust than (the freely available) Linux. (at least I know, HP, and IBM have their own proprietary tools, for blades etc. HP's actually require a windows server.:confused: The variation on the Sun doc is I used the ISC DHCP server, which is much easier to figure out than Solaris's. Basically the steps are: 1) Create a bog-standard Solaris Jumpstart server, "setup_install_server", yadda yadda yadda. (This is in that Sun Blueprint.) 2) Build and install the ISC DHCPD with conf file lines something like this: Code:
ddns-update-style none; Where I am hung up is creating the <<some magic kernel>> and <<some magic initrd>>. |
Giving up on netbooting Fedora for now
Code:
See below for better answer. |
You have to configure the kernel before you make it. Try reading something like this. I think that doc is missing some stuff though. If you're using a 2.6 series, you don't have to have the symlink to /usr/src. You can build it pretty much anywhere. I have a ~/src directory that I use to build all my kernels. Also, I have found it's easier to use make xconfig instead of make menuconfig if you are running X.
I could probably write a short book on building a kernel, but I'll try to keep it somewhat short. Basically, you can either use the kernel source included in your distro or just get it from kernel.org. When you do make xconfig (if that is what you use), you can actually load up your .config from your running kernel so you don't have to go through and pick all the modules you want. The nice thing about make xconfig is that it tells a little about each option, so if you aren't sure about something, it explains it a bit. |
Yep, no trouble bulding a kernel.org kernel, it's the FC4 kernel src package that's broken. You can do make menuconfigs until you are blue in the face but they will all fail with the same make error deep in the morass of the nested Makefiles. I'm not enough of a make expert anymore to debug this or even tell if I'm just missing something obvious. Plus, all the RedHat releases and variants are supposed to come with a .config file that was used to build the distro's kernel, and installing the kernel src USED to rebuild the kernel at rpm install time using those parameters.
Just a headsup that the FC4 kernel seems broken. Last year's news to everyone, probably. I only used FC4 because I had the CDs around and FC6 has bloated up to 6 CDs. See below for better answer. |
The question I was asking had so glaringly obvious an answer that everyone overlooked it because the kernel and initrd I needed were lying out in plain sight: On the release CDROM! In either <CD>/images/pxeboot and in <CD>/isolinux. D'oh!
Now I'm net-installing away, and the install server is running Solaris, even. Let the boring, endless kickstart tweaking commence. |
All times are GMT -5. The time now is 01:41 AM. |