Hello List, i am working to enable the XEN PVH Feature on the stock Alma Linux 9.4 kernel for the PXE Boot image set. I was able to rebuild the kernel with rpm -ivh kernel-5.14.0-427.13.1.el9_4.src.rpm modified the kernel-x86_64-rhel.config from SOURCES <SNIP> CONFIG_XEN_PVH=y # CONFIG_XEN_DOM0 is not set <SNAP> rpmbuild -bb --target=x86_64 kernel.spec and after some time i got the needed rpms. To extract the parts who iam looking for. It does now boot proper as a XEN PVH domU but then the dracut exits because he can not load the kernel modules. So the stock kernel modules from initrd.img from the pxe boot will give me an error: BPF can not load modules and dracut exits. It Seem they are all signed (I am from the time who used Centos 5/6 for a lot of time and did back in time all the compiling and just copy the files in place pretty straight forward, seems things has changed a lot). If i extract the pxe initrd.img file and replace there the kernel modules to the newly compiled it works again. Everything was looking pretty good so far. But... And after i run successfully through the anaconda installer and the installers starts the tasks. Suddenly the installer crashes. it is after The mounting of the filesystem would begin. it fails because the install.img has the old set of kernel modules and the installer exits. He tried to load the xfs kernel module. So again lets change the kernel module but after the change the install.img seems broken. Dracut tells me the rootfs.img is missing. But it is there. Then i gave up and was thinking there must be an other way. I did an unsquashfs install.img mount -o loop rootfs.img /PATH copied the kernel modules unmount /PATH mksquashfs /PATH install.img Is this the only way to make this change happen ? Or is there a much easier way that i could recompile the kernel and still can use all the existing kernel modules ? So that i do not search and replace them in all the files ? If someone could give me some hints that would be amazing. many thanks cheers Michael
Hello Michael! I think you should use lorax to build .img files with your kernel. Don't forget to install lorax-templates-almalinux before trying.
Hello Andrew, very nice, thanks for the missing link. i found some documentation i think this is the stuff who i was looking for: https://weldr.io/lorax/lorax.html do you have some links for the proper rpm kernel build process maybe as well ? many thanks cheers Michael On Tue, 2024-10-29 at 11:15 +0000, Andrew Lukoshko wrote:
Hello Michael!
I think you should use lorax to build .img files with your kernel. Don't forget to install lorax-templates-almalinux before trying. _______________________________________________ Devel mailing list -- devel@lists.almalinux.org To unsubscribe send an email to devel-leave@lists.almalinux.org
participants (2)
-
Andrew Lukoshko
-
michael theurl