diff options
| author | Simon Rettberg | 2025-03-12 09:35:10 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-03-12 09:35:10 +0100 |
| commit | 30b1c1eaa7efbb0eabcfcf55259ee5044ed6f716 (patch) | |
| tree | a13958376ee79eeac1e18850c3de145fc4bd058b | |
| parent | [qemu] Add test case (diff) | |
| download | mltk-30b1c1eaa7efbb0eabcfcf55259ee5044ed6f716.tar.gz mltk-30b1c1eaa7efbb0eabcfcf55259ee5044ed6f716.tar.xz mltk-30b1c1eaa7efbb0eabcfcf55259ee5044ed6f716.zip | |
[qemu] Remove os loader tag if firmware=efi
| -rw-r--r-- | core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuFirmware.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuFirmware.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuFirmware.java index 3967a0b4..eb2dd1b5 100644 --- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuFirmware.java +++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/configuration/TransformationSpecificQemuFirmware.java @@ -54,6 +54,17 @@ public class TransformationSpecificQemuFirmware // validate configuration and input arguments this.validateInputs( config, args ); + // If we got firmware="efi" in the os tag, we don't need the loader + // at all, in fact it can lead to + // libvirt: QEMU Driver Fehler : operation failed: Unable to find any firmware to satisfy 'efi' + // so we remove the loader tag in that case and bail out + if ( "efi".equalsIgnoreCase( config.getOsFirmware() ) ) { + config.setOsLoader( null ); + return; + } + // EFI not specified, but might still be enabled through the loader tag, try to + // figure out the correct path on this system + // get OS loader from VM final String sourceOsLoader = config.getOsLoader(); |
