Hi,
I tried to make this reproducible to help the progress on this.

I created a script that one can run in a fresh system to get it ready to test 
this.
It sets up all the dependencies and environment and tells you how to run good 
vs bad case for further analysis.

You can run it in a LXD container of noble if you made it able to run
KVM guests which you can do with this profile (might be overload for
this case but it works).

$ lxc profile show kvm
name: kvm
description: ""
config:
  boot.autostart: "true"
  linux.kernel_modules: openvswitch,nbd,ip_tables,ip6_tables,kvm
  security.nesting: "true"
  security.privileged: "true"
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  kvm:
    path: /dev/kvm
    type: unix-char
  mem:
    path: /dev/mem
    type: unix-char
  tun:
    path: /dev/net/tun
    type: unix-char

$ lxc launch ubuntu-daily:n n-efinetboot --profile default --profile kvm


Example output:

$ ./lp-2133157-test.sh
Installing dependencies...
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
...
From Dir /tmp/qemu-uefi-netboot-test
Run Good:
qemu-system-x86_64     -enable-kvm     -m 1024     -nographic     -drive 
if=pflash,format=raw,readonly=on,file=2024.02-2ubuntu0.5/OVMF_CODE_4M.fd     
-drive if=pflash,format=raw,file=2024.02-2ubuntu0.5/OVMF_VARS.fd     -netdev 
user,id=n1,tftp=/tmp/qemu-uefi-netboot-test/tftp,bootfile=kernel.efi     
-device virtio-net-pci,netdev=n1     -boot n
Run Bad:
qemu-system-x86_64     -enable-kvm     -m 1024     -nographic     -drive 
if=pflash,format=raw,readonly=on,file=2024.02-2ubuntu0.6/OVMF_CODE_4M.fd     
-drive if=pflash,format=raw,file=2024.02-2ubuntu0.6/OVMF_VARS.fd     -netdev 
user,id=n1,tftp=/tmp/qemu-uefi-netboot-test/tftp,bootfile=kernel.efi     
-device virtio-net-pci,netdev=n1     -boot n


** Attachment added: "lp-2133157-test.sh"
   
https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/2133157/+attachment/5930101/+files/lp-2133157-test.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133157

Title:
  ovmf 2024.02-2ubuntu0.6 broke UEFI network boot for VMs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/2133157/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to