What | Removed | Added |
---|---|---|
Status | NEW | IN_PROGRESS |
(In reply to Antoine Ginies from comment #0) > [Tue, 20 Sep 2022 12:06:58 virt-install 18235] DEBUG (cli:204) Launched with > command line: /usr/bin/virt-install -d --name alp-demo > --os-variant=opensuse15.3 --boot > uefi,loader_type=pflash,loader=/usr/share/qemu/ovmf-x86_64-smm-opensuse-code. > bin,nvram_template=/usr/share/qemu/ovmf-x86_64-smm-opensuse-vars.bin > --import --disk /var/tmp/alp-demo/alp-demo.qcow2,bus=sata --memory 2048 > --console pty,target_type=virtio --tpm > backend.type=emulator,backend.version=2.0,model=tpm-tis --network > network=default --transient --autoconsole graphical This command is not quite right. First, you've specified firmware autoselection with '--boot uefi', but then also tried to explicitly specify a firmware by adding 'loader=/usr/share/qemu/ovmf-x86_64-smm-opensuse-code.bin,nvram_template=/usr/share/qemu/ovmf-x86_64-smm-opensuse-vars.bin'. libvirt commit de2a338dce would help with the error reporting. E.g. on TW, which has that commit, the command would fail with a better error message virt82:~ # virt-install --name leap15.4-kvm --os-variant=opensuse15.4 --boot uefi,loader.type=pflash,loader=/usr/share/qemu/ovmf-x86_64-opensuse-4m-code.bin,nvram_template=/usr/share/qemu/ovmf-x86_64-opensuse-4m-vars.bin --disk /vm_images/jim/images/leap15.4-kvm/disk0.qcow2,format=qcow2 --memory 2048 --console pty,target_type=virtio --network bridge=br0 --autoconsole graphical --location https://download.opensuse.org/distribution/leap/15.4/repo/oss/ Starting install... ERROR loader attribute 'type' cannot be specified when firmware autoselection is enabled Also note your command has 'loader_type=pflash'. It should be 'loader.type=pflash'. If you want to explicitly specify a firmware, do not also use autoselection. A proper boot command line option would be --boot loader.type=pflash,loader.readonly=yes,loader=/usr/share/qemu/ovmf-x86_64-opensuse-4m-code.bin,nvram_template=/usr/share/qemu/ovmf-x86_64-opensuse-4m-vars.bin I would close this as invalid, but it is probably worth backporting commit de2a338dce to the libvirt 8.0.0 package for the improved error handling.