[Bug]: [QEMU_EFI] Not Loading Network Protocol Drivers and http efi command #10663
Open
2 of 5 tasks
Labels
package:networkpkg
package:ovmfpkg
priority:low
Little to no impact. No urgency to fix.
state:needs-triage
type:bug
Something isn't working
Is there an existing issue for this?
Bug Type
Code first?
What packages are impacted?
NetworkPkg, OvmfPkg
Which targets are impacted by this bug?
DEBUG, NOOPT
Current Behavior
In the latest stable releases I haven't been able to make the X64 Ovmf build load the networking drivers when launching the Ovmf.fd in QEMU.
This is what my
debug.log
looks likeInside QEMU when I run
drivers
this is what I get:And when I run
http
inside QEMU I getExpected Behavior
I expect the drivers to be loaded and the http command to be present and work.
The last commit I had it working was 5340219. I couldn't quite yet figure out exactly in which commit it stopped working but if you do the steps to reproduce in this commit you'll see it works.
Steps To Reproduce
My building process goes as follows. I create an image for a specific commit of edkii with docker:
In this way I can use
docker build -t edkii:edk2-stable202411 --build-arg EDK2_COMMIT=edk2-stable202411 .
to create an image with edkii in a specific commit.I also have a Dockerfile.qemu to run QEMU:
Which I build with
docker build -t qemu:latest -f Dockerfile.qemu
.Then I have a docker-compose.yml with:
And the following Makefile:
ovmf_networking: OvmfPkg/build.sh \ -a X64 \ -b DEBUG \ -D DISABLE_NEW_DEPRECATED_INTERFACES \ -D NETWORK_ENABLE=TRUE \ -D NETWORK_HTTP_ENABLE=FALSE \ -D NETWORK_SNP_ENABLE=TRUE \ -D NETWORK_VLAN_ENABLE=TRUE \ -D NETWORK_IP6_ENABLE=TRUE \ -D NETWORK_TLS_ENABLE=TRUE \ -D NETWORK_HTTP_BOOT_ENABLE=TRUE \ -D NETWORK_ALLOW_HTTP_CONNECTIONS=TRUE \ cp -r Build/OvmfX64/DEBUG_GCC/FV/OVMF.fd Dist
Which allows me to build with
docker compose run --rm edkii make ovmf_networking
and run the output OVMF.fd in QEMU withdocker compose run --rm qemu
The debug logs with the "Driver ??? was discovered but not loaded!!" messages will be in the folder
logs/qemu
.To get the list of drivers I run
drivers
in the EFI SHELL. Same for the http command. Also the ifconfig command gives no output.Build Environment
Version Information
Urgency
Low
Are you going to fix this?
I will fix it
Do you need maintainer feedback?
No maintainer feedback needed
Anything else?
I've been struggling with this bug but I've been keeping my work in the 5340219 commit. I'm at a point at my exploration where I can't seem to get the TLS working in that commit so I'd like to try more recent versions of the
NetworkPkg
as I've noticed that a lot of development has been happening there but for some reason I can't get it to build in a way that QEMU will load the drivers... Any help will be highly appreciated and I really hope it's not something really obvious that I miss that's now wasting someone's time. Thanks for the attention in advance!The text was updated successfully, but these errors were encountered: