Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM: Rework firmware detection (from Incus) #14032

Merged
merged 16 commits into from
Sep 4, 2024

Commits on Sep 4, 2024

  1. lxd/instance/drivers/edk2: Add new package to track EDK2 firmwares

    Signed-off-by: Dustin Sweigart <dustins@swigg.net>
    (cherry picked from commit 6d04eb437b0f35ba0faca3e25b846cdbccf5d8ce)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    dustins authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    78c1504 View commit details
    Browse the repository at this point in the history
  2. lxd/instance/drivers/edk2: Support OVMF filenames on arm64

    Quite a few environments use OVMF on arm64 rather than the more
    technicaly correct AAVMF name.
    
    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    (cherry picked from commit cc33d436d193f12a38818482c050fafd1ecae04c)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    stgraber authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    63e6d37 View commit details
    Browse the repository at this point in the history
  3. lxd/instance/drivers/edk2: Move seabios to /usr/share/qemu

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    (cherry picked from commit 5b093d06795e2c65cf5b4682b341237c1acd31d3)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    stgraber authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    6168f35 View commit details
    Browse the repository at this point in the history
  4. lxd/instance/drivers/edk2: Add ArchLinux x86_64 paths

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    (cherry picked from commit 9072c73f9269113cc5ff46fd3014f6a291c59e54)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    stgraber authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    b0499ef View commit details
    Browse the repository at this point in the history
  5. lxd/instance/drivers/edk2: Fix CSM handling

    Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
    (cherry picked from commit 8e33c788fa48ffceaf5a4f91eeb9835141dd7862)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    stgraber authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    d9afb30 View commit details
    Browse the repository at this point in the history
  6. lxd/instance/drivers/edk2: Add Void Linux x86_64 paths

    Signed-off-by: dkwo <nicolopiazzalunga@gmail.com>
    (cherry picked from commit cfbbe5d289ac5285b2a9880bd6f6cbb9041f8a4f)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    dkwo authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    fa5ce80 View commit details
    Browse the repository at this point in the history
  7. lxd/instance/drivers/edk2: Rework to support both LXD_QEMU_FW_PATH an…

    …d LXD_OVMF_PATH
    
    Supporting multiple search paths.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    4341a6c View commit details
    Browse the repository at this point in the history
  8. lxd/instance/drivers/edk2: Add support for seabios in Ubuntu

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    f58e2df View commit details
    Browse the repository at this point in the history
  9. lxd/instance/drivers/qemu: Update to use the new edk2 package

    Modified to support boot.debug_edk2
    
    Signed-off-by: Dustin Sweigart <dustins@swigg.net>
    (cherry picked from commit 2546c56300c08aabb68278a483a0dfa696f99f61)
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    License: Apache-2.0
    dustins authored and tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    61c78dd View commit details
    Browse the repository at this point in the history
  10. lxd/instance/drivers/driver/qemu: Log the VM UEFI firmware found in c…

    …heckFeatures
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    abce75d View commit details
    Browse the repository at this point in the history
  11. lxd/instance/drivers/driver/qemu: Improve error in checkFeatures

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    0dafab0 View commit details
    Browse the repository at this point in the history
  12. lxd/util/sys: Removes unused GetQemuFwPaths function

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    a4e131e View commit details
    Browse the repository at this point in the history
  13. lxd/instance/instance/interface: Add FirmwarePath to VM interface

    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    3a86dda View commit details
    Browse the repository at this point in the history
  14. lxd/instance/drivers/driver/qemu: Add firmware path concept and set i…

    …t during generateQemuConfigFile
    
    Allows access to start time firmware path for apparmor profile generation.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    797ea06 View commit details
    Browse the repository at this point in the history
  15. lxd/apparmor/instance: Update instanceProfile to use start time firmw…

    …are path
    
    Rather than allowing access to all potential firmware directories.
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    9a40488 View commit details
    Browse the repository at this point in the history
  16. lxd/instance/drivers/edk2: Removes unused GetArchitectureInstallation…

    …s function
    
    Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
    tomponline committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    7bdeb9b View commit details
    Browse the repository at this point in the history