Booting a QEMU aarch64 VM using kernel+initrd results in an EFI Synchronous Exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
edk2 (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
I am attempting to create an aarch64 image using QEMU and virt-install on an x86_64 Ubuntu 22.04 server.
Using qemu-efi-aarch64 versions 2022.02-
I can get it to succeed by downgrading qemu-efi-aarch64 to 20191122.
I also tried qemu-efi-aarch64 2023.05-1 and it boots to the UEFI shell not the Linux kernel.
This is the command to boot the aarch64 VM:
virt-install \
--name ubuntu2204 \
--arch aarch64 \
--ram 4096 \
--disk path=/images/
--vcpus 4 \
--os-variant ubuntu22.04 \
--network bridge=virbr0 \
--graphics none \
--console pty,target_
--location /images/
--extra-args 'auto=true priority=critical console=
--noreboot
This results in the following output:
Starting install...
Retrieving 'vmlinuz' | 0 B 00:00:00 ...
Retrieving 'initrd' | 89 MB 00:00:00 ...
Creating domain... | 0 B 00:00:00
Running text console command: virsh --connect qemu:///system console ubuntu2204
Connected to domain 'ubuntu2204'
Escape character is ^] (Ctrl + ])
BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from PciRoot(
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from VenHw(93E34C7E-
BdsDxe: loading Boot0003 "EFI Internal Shell" from Fv(64074AFE-
BdsDxe: starting Boot0003 "EFI Internal Shell" from Fv(64074AFE-
UEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (EDK II, 0x00010000)
Mapping table
Synchronous Exception at 0x000000012F0D496C
Synchronous Exception at 0x000000012F0D496C
Using qemu-efi-aarch64 to 20191122.
Starting install...
Retrieving 'vmlinuz' | 0 B 00:00:00 ...
Retrieving 'initrd' | 100 MB 00:00:00 ...
Creating domain... | 0 B 00:00:00
Running text console command: virsh --connect qemu:///system console ubuntu2204
Connected to domain 'ubuntu2204'
Escape character is ^] (Ctrl + ])
EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
EFI stub: Loaded initrd from command line option
EFI stub: Exiting boot services...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000] Linux version 5.15.0-78-generic (buildd@
[ 0.000000] efi: EFI v2.70 by EDK II
.... etc
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: qemu-efi-aarch64 2022.02-
ProcVersionSign
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckR
Date: Fri Sep 22 14:05:38 2023
Dependencies:
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=C.UTF-8
TERM=xterm-
PATH=(custom, no user)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: edk2
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: server-triage-discuss |
Changed in edk2 (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | removed: server-triage-discuss |
Status changed to 'Confirmed' because the bug affects multiple users.