Skip to content
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

Boot prcess gets sometimes stuck at "TRACE: exiting boot services" when using Uefi and qemu #400

Open
daniel-keitel opened this issue Nov 11, 2023 · 2 comments · May be fixed by #457
Open

Comments

@daniel-keitel
Copy link

When running qemu-system-x86_64 -bios {ovmf_pure_efi_path} -drive format=raw,file={uefi_path} -smp {core_count}
the bootloader gets sometimes stuck at:

INFO : UEFI bootloader started
INFO : Using framebuffer at 0xc0000000
INFO : Reading configuration from disk was successful
INFO : Trying to load ramdisk via Disk
INFO : Ramdisk not found.
TRACE: exiting boot services

Higher core counts for the -smp argument result in a higher likelihood of it getting stuck.
(I am not sure if it even occurred once at -smp 1)

@phil-opp
Copy link
Member

Thanks for reporting! Not sure what could cause this, but I'll try to reproduce this when I have some time.

@Wasabi375
Copy link
Contributor

I have the same issue, so I don't think it is related to either the kernel or the configuration.
Also I tried running this repos tests using smp and got the same error.

I'll spend some time investigating this. This bug is rather annoying when trying to run automated tests.

Wasabi375 added a commit to Wasabi375/bootloader that referenced this issue Sep 17, 2024
Switch from using the "-bios" flag to using "-pflash" instead.
Using "-bios" is not recomended see:
https://lists.katacontainers.io/pipermail/kata-dev/2021-January/001650.html

This also allows us to easily update the ovmf-prebuild binaries.

This fixes rust-osdev#400. I'm not sure whether the issue was an outdated ovmf
version or the bios-pflash change. I can't tell what version is
published with the ovmf-prebuild crate, so I can't check.

Ovmf binaries are no longer provided by the ovmf-prebuild crate.
Instead we now download them from the ovmf-prebuild github releases of
the same crate. Unlike the crate, those are actually updated.

Fixes rust-osdev#400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants