-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VM: Rework firmware detection (from Incus) (#14032)
Based on: - lxc/incus#880 - lxc/incus#991 - lxc/incus#1033 - lxc/incus#1054 - lxc/incus#1178 Plus adds support for Ubuntu 24.04 OVMF and seabios firmware locations, and maintains support for both `LXD_QEMU_FW_PATH` and `LXD_OVMF_PATH` environmental variables (accepting multiple search paths). Also changes how apparmor profile is generated to only allow access to specific firmware file selected. Tested with: - [x] Outside of snap on Ubuntu 24.04 with OVMF and Seabios packages. - [x] Inside the latest/edge snap, with OVMF and Seabios modes. - [x] Upgrading from 5.0/stable snap with VM using 2MB OVMF FW switching to latest/edge with custom binary and check 4MB firmware is used. - [x] Inside the latest/edge snap with debug OVMF firmware mode (with/without secureboot enabled).
- Loading branch information
Showing
6 changed files
with
290 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.