Bug 2060776

Summary: missing 'nvram-template' when start ovmf guest [rhel-9.1.0]
Product: Red Hat Enterprise Linux 9 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: libvirtAssignee: Daniel Berrangé <berrange>
libvirt sub component: General QA Contact: Meina Li <meili>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: amurdaca, berrange, coli, hongzliu, jdenemar, jieli, jiji, jsuchane, juzhou, kraxel, lcheng, ldoktor, lmen, lpivarc, mpitt, obudai, pbonzini, perobins, pkrempa, pvlasin, rjones, rpittau, virt-maint, xiaofwan, xiawu, xuwei, xuzhang, yfu, yicui, yoguo, zixchen
Version: 9.0Keywords: Automation, Regression, TestBlocker, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-8.1.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2057769 Environment:
Last Closed: 2022-11-15 10:03:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: 8.1.0
Embargoed:
Bug Depends On: 2057769    
Bug Blocks:    

Comment 1 Meina Li 2022-03-14 09:52:26 UTC
Test Version:
libvirt-8.1.0-1.el9.x86_64
qemu-kvm-6.2.0-11.el9.x86_64

Test Steps:
1. Prepare a ovmf guest.
# virsh edit lmn
......
  <os firmware='efi'>
    <type arch='x86_64' machine='pc-q35-rhel9.0.0'>hvm</type>
    <boot dev='hd'/>
  </os>
......
2. Start the ovmf guest.
# virsh start lmn
Domain 'lmn' started
# virsh dumpxml lmn | grep /os -B5
  <os>
    <type arch='x86_64' machine='pc-q35-rhel9.0.0'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd</loader>
    <nvram template='/usr/share/edk2/ovmf/OVMF_VARS.secboot.fd'>/var/lib/libvirt/qemu/nvram/lmn_VARS.fd</nvram>
    <boot dev='hd'/>
  </os>

------The guest can start successfully.

Comment 4 Meina Li 2022-04-14 07:05:37 UTC
Based on comment 1, the test result is passed in:
libvirt-8.2.0-1.el9.x86_64
qemu-kvm-6.2.0-12.el9.x86_64
edk2-ovmf-20220221gitb24306f15d-1.el9.noarch

Comment 6 errata-xmlrpc 2022-11-15 10:03:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: libvirt security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8003