Skip to content

UEFI boot fails with kvm on aws x86 metal instance with #13

Description

@Martin-Lndbl

Setup

  • Operating System: Ubunutu 26.04
  • Instance type: c7i.metal-24xl
  • Branch: feature/uefi-boot

Description

Trying to boot feature branch #4's version of miniOSv on an AWS metal instance (without root privileges) fails during early boot staged

BdsDxe: loading Boot0002 "UEFI QEMU NVMe Ctrl miniosv 1" from PciRoot(0x0)/Pci(0x2,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00)
BdsDxe: starting Boot0002 "UEFI QEMU NVMe Ctrl miniosv 1" from PciRoot(0x0)/Pci(0x2,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00)
miniosv UEFI stub starting
OSv v0.1
Assertion failed: ef->rflags & processor::rflags_if (arch/x64/mmu.cc: page_fault: 36)

[backtrace]
0x0000000040204400 <0x40204400>
0x00000000402044f8 <0x402044f8>
0x000000004022679e <0x4022679e>
0x0000000040225736 <0x40225736>
0x0000000040244791 <0x40244791>
0x0000000040224e06 <0x40224e06>
0x0000000040203e0e <0x40203e0e>
0x0000000040204068 <0x40204068>
0x000000004023fcd3 <0x4023fcd3>
0x00000000402266b5 <0x402266b5>
qemu failed.

Edit:
Running without root privileges, the above error is thrown every time. Running with root privileges introduces nondeterministic behavior:

  • The kernel either boots as expected (most of the time), or
  • Blackscreen (not a single line of output is printed, until the process is killed)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions