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

‣ Error: Sorry, --without-unified-kernel-images is not supported in UEFI mode on this distro. #39

Closed LIUQyou closed 1 year ago

LIUQyou commented 1 year ago

I tried to run it with the run_qemu.sh to build the ubuntu image. So I modified the following inside the run_qemu.sh.

: "${distro:=ubuntu}"
: "${rev:=focal}"

Then I try the following command in my linux kernel folder:

sudo run_qemu.sh --cxl

Then I got the following result:

‣ Error: Sorry, --without-unified-kernel-images is not supported in UEFI mode on this distro.

Could you give me some hints on which part is wrong? Thank you very much

stellarhopper commented 1 year ago

What version of mkosi does your distro have? It might be too old for that option. As a workaround you can comment this line: https://github.com/pmem/run_qemu/blob/main/mkosi.ubuntu.default.tmpl#L12

LIUQyou commented 1 year ago

Thanks. I use version 12. After commenting on this. It works

shawn8172014 commented 1 year ago

遇到同样的问题