Bug #2034253 “Jammy buildd image doesn’t boot because grub is in…” : Bugs : cloud-images

1. could you provide any specific failures?
2. can you provide how it’s booting? UEFI boot? Secureboot? etc

right now i’m trying directly with QEMU. in a Bios booting (not UEFI) setup, i cannot reproduce.

with UEFI i’m seeing this error, which is new to me:

BdsDxe: failed to load Boot0001 “UEFI QEMU DVD-ROM QM00005 ” from PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x2,0xFFFF,0x0): Not Found
BdsDxe: loading Boot0002 “UEFGNU GRUB version 2.06iRoot(0x0)/Pci(0x3,0x0)
BdsDxe: starting Boot0002 “UEFI Misc Device” from PciRoot(0x0)/Pci(0x3,0x0)
   Minimal BASH-like line editing is supported. For the first word, TAB
   lists possible command completions. Anywhere else TAB lists possible
   device or file completions.

this is my QEMU call:

qemu-system-x86_64 \
-cpu host -machine type=q35,accel=kvm -m 2048 \
-nographic \
-snapshot \
-netdev id=net00,type=user,hostfwd=tcp::2222-:22 \
-device virtio-net-pci,netdev=net00 \
-drive if=virtio,format=qcow2,file=20230901-jammy-server-cloudimg-amd64-disk1.img \
-drive if=virtio,format=raw,file=/home/jchittum/dev01/vmdks/ci-ssh-pub-set.iso \
-drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_CODE.fd,readonly=on

I can confirm that OVMF_CODE.fd is on my local filesystem at that path:

stat /usr/share/OVMF/OVMF_CODE.fd
  File: /usr/share/OVMF/OVMF_CODE.fd
  Size: 1966080 Blocks: 3840 IO Block: 4096 regular file
Device: 10305h/66309d Inode: 11534775 Links: 1
Access: (0644/-rw-r–r–) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-09-05 15:22:39.599644073 -0500
Modify: 2022-09-12 22:05:26.000000000 -0500
Change: 2022-10-28 01:11:35.003430249 -0500
 Birth: 2022-10-28 01:11:34.859427923 -0500

What’s interesting is when i do this on an Openstack instance, i see the failure but it still boots:

BdsDxe: failed to load Boot0001 “UEFI QEMU DVD-ROM QM00005 ” from PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x2,0xFFFF,0x0): Not Found
BdsDxe: loading Boot0002 “UEFI Misc Device” from PciRoot(0x0)/Pci(0x3,0x0)
BdsDxe: starting Boot0002 “UEFI Misc Device” from PciRoot(0x0)/Pci(0x3,0x0)
[ 0.000000] Linux version 5.15.0-82-generic (buildd@lcy02-amd64-027) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC )
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-82-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0

Lots more to do on triage, but if i know the way this is being launched more specifically, it’ll help.

Read more here: Source link