New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debian: Unable to boot Kairos installer #2522
Comments
Hello, 6ixfalls! I'm an automated bot assisting with Github issue audits in the kairos project. I've added the 'question' label to your issue (#2522) because it appears we need more information to properly investigate your report. To enhance our understanding and help us better address your problem, please provide:
Please ensure that your description, steps to reproduce, and version details are explicitly mentioned in your issue. We appreciate your efforts to help us improve Kairos, and don't hesitate to reach out if you have any questions. Note that I am a bot, an experiment of @mudler and @jimmykarily. Thanks! |
This could be related, but I'm using a custom docker image with auroraboot to generate an ISO. The Dockerfile is here: It also appears this issue was introduced between 3.0.0 and 3.0.3 - this appears to be a fix to the issue: |
A note: that was an attempted fix. It didn't fix it for me on 3.0.3 but I didn't try other versions. |
oh wait, you are not on nvidia. On the other hand, maybe that module needs to be included somehow (?). |
maybe not that irrelevant after all: https://forums.fedoraforum.org/showthread.php?325865-dracut-FATAL-iscsi-requested-but-kernel-initrd-does-not-support-iscsi you could try to omit iscsi in dracut to see if this helps |
I'm not sure if this is how to correctly do it, but I tried this configuration and it did not fix the issue. |
If this does what I suspect, this would break compatibility with at least Longhorn. Can we see what it takes for the kernel to support iscsi? |
It looks like we need to disable iscsi as we do already for nvidia: kairos/images/Dockerfile.nvidia Line 101 in f5c1050
|
fixes #2522 Signed-off-by: Mauro Morales <[email protected]>
looks like iscsi modules are not properly set in the initramfs as dracut failure indicates that its checking for the iscsi_tcp mod to be available You could try to install iscsiuio alongside and regenerate the initramfs as that seems to bring the proper iscsi_tcp module needed by dracut Im gonna try a qucik test here, but I can see already that once installing that package the modules are available and iscsi is added to the dracut modules what cmdline are you using? |
I can confirm that customizing the Debian image (only tested this one) from v3.0.0 and up produces the "iscsi error" for dracut. I followed this doc https://kairos.io/docs/advanced/customizing/ at first. Then I used this docker file (https://github.com/kairos-io/kairos/blob/master/images/Dockerfile.kairos-debian) to rebuild the image from scratch while adding packages I needed. Still the iscsi error from dracut appeared. After that I added the "iscsiuio" package and net booting with Aurora worked... the first time. The second time I launched Aurora at tried to net boot the server, it gave me the same error. I inspected the temp directory to which Auroraboot extracts the ISO and the /netboot directory contains all the net boot artifacts. I inspected the kernel file and compared it to the kernel files in the ISO (which are unpacked in the temp directory). I found that the net boot kernel (kairos-kernel) was the oldest kernel file and not the most recent, which is why it did not contain the iscsi module of which dracut complains it is not present in the kernel during net boot. I copied the latest kernel and used the other artifacts in /tmp/netboot to start pixiecore and everything worked as expected. It looks like Auroraboot is picking the wrong kernel (sometimes) for booting, can you confirm? |
Let's install |
I tried that and it did not seem to help tyzbit/kairos-distros@e11adda |
Kairos version:
Fails to boot on kairos-debian-bookworm-standard-amd64-generic-v3.0.8-k3sv1.29.3+k3s1, success on kairos-debian-bookworm-standard-amd64-generic-v3.0.0-k3sv1.29.0+k3s1
CPU architecture, OS, and Version:
Linux localhost 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
(output from v3.0.0)
Describe the bug
The Kairos ISO is unable to boot and I'm unable to install Kairos (manually and automatically).
To Reproduce
Try to install Kairos on the latest version, not sure if this is reproducible. This is running in a KVM VM.
Expected behavior
I should be able to boot into the Kairos install ISO.
Logs
Additional context
This bug looks exactly like #2467, but trying the fix there and adding that to a Dockerfile doesn't resolve the issue.
The text was updated successfully, but these errors were encountered: