RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2058618 - virt-install reports Libvirt version does not support UEFI
Summary: virt-install reports Libvirt version does not support UEFI
Keywords:
Status: CLOSED DUPLICATE of bug 2057769
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-25 12:19 UTC by Xiaofeng Wang
Modified: 2022-02-26 00:17 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-25 15:19:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-113837 0 None None None 2022-02-25 12:28:49 UTC

Description Xiaofeng Wang 2022-02-25 12:19:28 UTC
Description of problem:
Run virt-install to install a UEFI VM, then I got error "ERROR    Libvirt version does not support UEFI" and no vm created.

sudo virt-install --name=osbuild-composer-ostree-test-32a8f2e2-818e-48f3-b433-e7d21abc4d60 --disk path=/var/lib/libvirt/images/osbuild-composer-ostree-test-32a8f2e2-818e-48f3-b433-e7d21abc4d60.qcow2,format=qcow2 --ram 3072 --vcpus 2 --network network=integration,mac=34:49:22:B0:83:30 --os-type linux --os-variant rhel9.0 --boot uefi,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd,loader_secure=no --nographics --noautoconsole --wait=-1 --noreboot
ERROR    Libvirt version does not support UEFI.

[cloud-user@rhel-9-0-220225 rhel-edge]$ sudo virsh list --all
setlocale: No such file or directory
 Id   Name   State
--------------------

Checked /usr/share/edk2/ovmf folder
sudo ls -al /usr/share/edk2/ovmf/
total 15768
drwxr-xr-x. 2 root root    4096 Feb 25 06:33 .
drwxr-xr-x. 3 root root      18 Feb 25 06:33 ..
-rw-r--r--. 1 root root   18816 Feb 23 05:54 EnrollDefaultKeys.efi
-rw-r--r--. 1 root root 4194304 Feb 23 05:54 OVMF.amdsev.fd
-rw-r--r--. 1 root root 3653632 Feb 23 05:54 OVMF_CODE.cc.fd
-rw-r--r--. 1 root root 3653632 Feb 23 05:54 OVMF_CODE.secboot.fd
-rw-r--r--. 1 root root  540672 Feb 23 05:54 OVMF_VARS.fd
-rw-r--r--. 1 root root  540672 Feb 23 05:54 OVMF_VARS.secboot.fd
-rw-r--r--. 1 root root  944448 Feb 23 05:54 Shell.efi
-rw-r--r--. 1 root root 2590720 Feb 23 05:54 UefiShell.iso

CPU inside VM
processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 23
model		: 49
model name	: AMD EPYC-Rome Processor
stepping	: 0
microcode	: 0x1000065
cpu MHz		: 2595.122
cache size	: 512 KB
physical id	: 3
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat npt nrip_save umip rdpid arch_capabilities
bugs		: sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 5190.24
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management:

Version-Release number of selected component (if applicable):
virt-install-3.2.0-14.el9.noarch
===
edk2-ovmf-20220126gitbb1bba3d77-3.el9.noarch
===
libvirt-libs-8.0.0-4.el9.x86_64
libvirt-client-8.0.0-4.el9.x86_64
python3-libvirt-8.0.0-1.el9.x86_64
libvirt-daemon-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-core-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-disk-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-iscsi-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-logical-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-mpath-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-scsi-8.0.0-4.el9.x86_64
libvirt-daemon-driver-interface-8.0.0-4.el9.x86_64
libvirt-daemon-driver-nwfilter-8.0.0-4.el9.x86_64
libvirt-daemon-driver-qemu-8.0.0-4.el9.x86_64
libvirt-daemon-driver-secret-8.0.0-4.el9.x86_64
libvirt-daemon-driver-nodedev-8.0.0-4.el9.x86_64
libvirt-daemon-driver-network-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-rbd-8.0.0-4.el9.x86_64
libvirt-daemon-driver-storage-8.0.0-4.el9.x86_64
libvirt-daemon-kvm-8.0.0-4.el9.x86_64
===
qemu-guest-agent-6.2.0-10.el9.x86_64
qemu-img-6.2.0-10.el9.x86_64
qemu-pr-helper-6.2.0-10.el9.x86_64
qemu-kvm-tools-6.2.0-10.el9.x86_64
qemu-kvm-docs-6.2.0-10.el9.x86_64
libvirt-daemon-driver-qemu-8.0.0-4.el9.x86_64
ipxe-roms-qemu-20200823-7.git4bd064de.el9.noarch
qemu-kvm-common-6.2.0-10.el9.x86_64
qemu-kvm-ui-opengl-6.2.0-10.el9.x86_64
qemu-kvm-ui-egl-headless-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-gpu-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-gpu-gl-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-gpu-pci-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-gpu-pci-gl-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-vga-6.2.0-10.el9.x86_64
qemu-kvm-device-display-virtio-vga-gl-6.2.0-10.el9.x86_64
qemu-kvm-device-usb-host-6.2.0-10.el9.x86_64
qemu-kvm-device-usb-redirect-6.2.0-10.el9.x86_64
qemu-kvm-audio-pa-6.2.0-10.el9.x86_64
qemu-kvm-core-6.2.0-10.el9.x86_64
qemu-kvm-block-rbd-6.2.0-10.el9.x86_64
qemu-kvm-6.2.0-10.el9.x86_64

How reproducible:

Steps to Reproduce:
1. Prepare a RHEL 9.0 latest VM on PSI openstack
2. sudo virt-install --name=osbuild-composer-ostree-test-32a8f2e2-818e-48f3-b433-e7d21abc4d60 --disk path=/var/lib/libvirt/images/osbuild-composer-ostree-test-32a8f2e2-818e-48f3-b433-e7d21abc4d60.qcow2,format=qcow2 --ram 3072 --vcpus 2 --network network=integration,mac=34:49:22:B0:83:30 --os-type linux --os-variant rhel9.0 --boot uefi,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/edk2/ovmf/OVMF_VARS.fd,loader_secure=no --nographics --noautoconsole --wait=-1 --noreboot

Actual results:
ERROR    Libvirt version does not support UEFI.

Expected results:
Should support UEFI

Additional info:

Comment 3 Jaroslav Suchanek 2022-02-25 14:43:16 UTC
Can you attach libvirt logs, debug logs preferably, https://libvirt.org/kbase/debuglogs.html. Thanks.

Comment 4 Xiaofeng Wang 2022-02-25 15:07:08 UTC
Too much logs when enable debug log. I found an error from libvirtd debug log.
libvirtd[48533]: internal error: missing 'nvram-template' in '/usr/share/qemu/firmware/50-edk2-ovmf-amdsev.json'
Is this useful? Thanks.

Comment 5 Xiaofeng Wang 2022-02-25 15:13:25 UTC
But I can find this file there.
[cloud-user@rhel-9-0-220225 ~]$ ll /usr/share/qemu/firmware/
total 16
-rw-r--r--. 1 root root 770 Feb 23 05:54 40-edk2-ovmf-sb.json
-rw-r--r--. 1 root root 566 Feb 23 05:54 50-edk2-ovmf-amdsev.json
-rw-r--r--. 1 root root 673 Feb 23 05:54 50-edk2-ovmf-cc.json
-rw-r--r--. 1 root root 722 Feb 23 05:54 50-edk2-ovmf.json

Comment 6 Xiaofeng Wang 2022-02-25 15:16:35 UTC
The content of /usr/share/qemu/firmware/50-edk2-ovmf-amdsev.json
{
    "description": "OVMF with SEV-ES support",
    "interface-types": [
        "uefi"
    ],
    "mapping": {
        "device": "flash",
        "mode": "stateless",
        "executable": {
            "filename": "/usr/share/edk2/ovmf/OVMF.amdsev.fd",
            "format": "raw"
        }
    },
    "targets": [
        {
            "architecture": "x86_64",
            "machines": [
                "pc-q35-rhel8.5.0"
            ]
        }
    ],
    "features": [
        "amd-sev",
        "amd-sev-es",
        "verbose-dynamic"
    ],
    "tags": [

    ]
}

Comment 7 Jaroslav Suchanek 2022-02-25 15:19:13 UTC
(In reply to Xiaofeng Wang from comment #4)
> Too much logs when enable debug log. I found an error from libvirtd debug
> log.
> libvirtd[48533]: internal error: missing 'nvram-template' in
> '/usr/share/qemu/firmware/50-edk2-ovmf-amdsev.json'
> Is this useful? Thanks.

Yes, that what points to bug 2057769. Thanks!

*** This bug has been marked as a duplicate of bug 2057769 ***


Note You need to log in before you can comment on or make changes to this bug.