Page MenuHomeFreeBSD

Eanble EFI partition on x86_64 and i386 VM images
ClosedPublic

Authored by gonzo on Jul 13 2020, 9:13 PM.
Tags
None
Referenced Files
F168494674: D25655.id74418.diff
Fri, Aug 28, 4:36 PM
F168460758: D25655.id74448.diff
Fri, Aug 28, 12:36 PM
F168459915: D25655.diff
Fri, Aug 28, 12:31 PM
F168450156: D25655.id74418.diff
Fri, Aug 28, 10:51 AM
F168352080: D25655.id74418.diff
Thu, Aug 27, 6:05 PM
Unknown Object (File)
Thu, Aug 27, 2:39 PM
Unknown Object (File)
Thu, Aug 27, 4:51 AM
Unknown Object (File)
Wed, Aug 26, 4:44 PM
Subscribers

Details

Summary

Hyper-V Gen2 VM are EFI-only so to enable VHDX format we need to add
EFI partition to the image. There are two options: either do it
only for VHDX or flip the switch for all images. This change is
for the latter option.

Test Plan

I tested VMDK, VHD, VHDX images generated with this change with
following VM software with both EFI and legacy boot modes:

qemu x86_64 legacy: works
qemu x86_64 EFI: works
VirtualBox legacy: works
VirtualBox EFI: works
VMWare Fusion legacy: works
VMWare Fusion EFI: loader boots fine but when control is passed to the kernel there a firmware error. Probably a compatibility issue in our EFI code or a bug in VMWare.
Hyper-V Gen 1 (legacy-only): works
Hyper-V Gen 2 (EFI-only): works

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32302
Build 29786: arc lint + arc unit