Skip to content

Plugin does not support EFI firmware in qcow2 format #225

@alexhaydock

Description

@alexhaydock

Overview of the Issue

This plugin makes the assumption that any EFI firmware code or vars passed to the plugin are in raw format, and constructs the QEMU launch arguments accordingly.

This is a problem because:

  • Distros like Fedora have moved away from raw firmware for their larger 4M images. See this commit.
  • The 4M images are required for fully-functional Secure Boot and (most importantly) TPM, which are required to install Windows 11 without using any compatibility bypasses.

Reproduction Steps

Install Packer on Fedora, or any distro that ships qcow2 4M images.

Build a Packer image with QEMU source using these arguments

efi_firmware_code         = "/usr/share/edk2/ovmf/OVMF_CODE_4M.secboot.qcow2"
efi_firmware_vars         = "/usr/share/edk2/ovmf/OVMF_VARS_4M.secboot.qcow2"

Plugin and Packer version

Latest

Simplified Packer Buildfile

N/A

PR to follow.

Operating system and Environment details

Fedora, but other distributions will likely follow suit.

Log Fragments and crash.log files

N/A.

PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions