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