pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
58 stars 22 forks source link

ovmf install location #30

Closed photoszzt closed 1 year ago

photoszzt commented 1 year ago

I'm trying to use this script to build the VM and get an error message: OVMF binaries not found, please install 'edk2-ovmf' or similar The distro I'm using is ubuntu 22.04 and install the OVMF package. I have the following:

ls /usr/share/ovmf/
OVMF.fd  PkKek-1-snakeoil.key  PkKek-1-snakeoil.pem

https://github.com/pmem/run_qemu/blob/31cb2d0b796a15a405497734b372de4ffba27bd6/run_qemu.sh#L986-L991 I'm not sure whether what I have are equivalent to the files listed here. I only have one fd file not CODES.fd and VARS.fd.

stellarhopper commented 1 year ago

@photoszzt Ah this looks like it's because Ubuntu places the files we need in /usr/share/OVMF.

I've pushed a fix - can you retry with the latest main?

photoszzt commented 1 year ago

@stellarhopper It's working for me now. Thanks for the fix.