Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-80727

snpguest generate measurement cannot use --ovmf and --ovmf-hash simultaneously

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • snpguest
    • None
    • No
    • Moderate
    • rhel-virt-confidential-virt
    • ssg_virtualization
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?
      snpguest generate measurement cannot use --ovmf and --ovmf-hash simultaneously.
      But from snpguest doc, it says "A user can use a pre-calculated ovmf-hash using [--ovmf-hash], but the ovmf file still has to be provided."

      Please provide the package NVR for which bug is seen:
      snpguest-0.8.3-1.el9.src.rpm

      How reproducible:
      100%

      Steps to reproduce
      #snpguest generate measurement --vcpu-type EPYC --ovmf /usr/share/edk2/ovmf/OVMF.amdsev.fd --ovmf-hash /home/ovmf-hash --measurement-file /home/measurement-file

      Expected results
      generate measurement successfully

      Actual results
      error: the argument '-ovmf <ovmf>' cannot be used with '-ovmf-hash <ovmf-hash>'

      Additonal
      cannot use --ovmf-hash alone
      snpguest generate measurement --ovmf-hash /home/ovmf-hash --vcpu-type EPYC --measurement-file /home/measurement-file
      error: The following required argument was not provided: ovmf

              tfanelli@redhat.com Tyler Fanelli
              jinl@redhat.com Jin Liu
              Tyler Fanelli Tyler Fanelli
              Jin Liu Jin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: