OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
292 stars 148 forks source link

Kernel Issues with Legacy PXE boot #2151

Open dlawle opened 2 years ago

dlawle commented 2 years ago

Problem description

When building a SLES15 image for PXE booting, we are receiving "Invalid or corrupt kernel image." error.

We are certain that the current configuration of our PXE infrastructure is working, as our SLES12 builds are booting without issue (the only difference here, is that they were built on the legacy version of KIWI and not KIWI-NG)

We can confirm that all other builds are working with this kernel (we have tested ISO, QEMU and install) and have also tested rolling back to other kernels, with no success.

Expected behaviour

No kernel errors when serving remote machine

Steps to reproduce the behaviour

Preferences block:

    <preferences profiles="Flat">
        <type image="pxe" initrd_system="kiwi" boot="netboot/suse-SLES15" filesystem="ext3" kernelcmdline="console=ttyS0">
                <oemconfig>
                        <oem-unattended>true</oem-unattended>
                        <oem-swapsize>1024</oem-swapsize>
                        <oem-multipath-scan>false</oem-multipath-scan>
                </oemconfig>
                <size additive="true" unit="M">10</size>
        </type>
    </preferences>
    <preferences profiles="Compressed">
            <type image="pxe" initrd_system="kiwi" boot="netboot/suse-SLES15" compressed="true" filesystem="ext3" kernelcmdline="console=ttyS0">
                <oemconfig>
                        <oem-unattended>true</oem-unattended>
                        <oem-swapsize>1024</oem-swapsize>
                        <oem-multipath-scan>false</oem-multipath-scan>
                </oemconfig>
                <size additive="true" unit="M">10</size>
        </type>
    </preferences>

OS and Software information

dlawle commented 2 years ago

I forgot to add some other information regarding our configuration.

From the PXE itself:

Boot dir:

-rw-r--r-- 1 user 20969   9079040 Jun  6 11:40 sles-15sp3.x86_64-1.0.4-1-5.3.18-150300.59.68-default.kernel
-rw-r--r-- 1 user 20969 118400128 Jun  6 11:43 sles-15sp3.x86_64-1.0.4-1.initrd.xz
lrwxrwxrwx 1 root   root         38 Jun  6 13:21 initrd -> sles-15sp3.x86_64-1.0.4-1.initrd.xz
lrwxrwxrwx 1 root   root         63 Jun  6 13:36 linux -> sles-15sp3.x86_64-1.0.4-1-5.3.18-150300.59.68-default.kernel

pxelinux.cfg/default:

DEFAULT KIWI-Boot

LABEL KIWI-Boot
    kernel linux
    append initrd=initrd
    IPAPPEND 2

Image dir:

      0 lrwxrwxrwx 1 root   root          28 Jun  6 13:20 sles-5.0.0.gz -> sles-15sp3.x86_64-1.0.4-1
      0 lrwxrwxrwx 1 root   root          32 Jun  6 13:20 sles-5.0.0.md5 -> sles-15sp3.x86_64-1.0.4-1.md5
schaefi commented 2 years ago

Hmm, you are using an obsolete and decommissioned concept called netboot. The initrd description referenced via netboot/suse-SLES15 is not served by the kiwi project anymore since April 2020 iirc. Thus even if we want, we would have no idea from where you maintain netboot/suse-SLES15

There is also no access to your PXE booting infrastructure and there are no error logs or other pointers in this report which could help us to point you into a good direction.

I'm sorry I don't see how we could help with this defect unless there is more information e.g booting with kiwidebug=1 and some information from /var/log/boot.kiwi or some other errors as I also don't know if you even get to that part of the boot process or if it fails earlier

Sorry

dlawle commented 2 years ago

Thanks @schaefi

I do apologize as I thought this may be a configuration issue on my end, and wasn't sure if it would be easily spottable. I'm currently in the process of gathering logs. While I do know this is no longer supported, I do appreciate any and all help :)

schaefi commented 1 year ago

let's wait for the logs