Bug 2074476

Summary: RFE: Add guest detection for RHEL hypervisors
Product: Red Hat Enterprise Linux 9 Reporter: Stephen Tweedie <sct>
Component: virt-whatAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: YongkuiGuo <yoguo>
Severity: low Docs Contact:
Priority: medium    
Version: 9.0CC: djuarezg, minl, qzhang, rjones, virt-maint, wshi, xiliang, ymao, yoguo
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-what-1.22-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2076628 (view as bug list) Environment:
Last Closed: 2022-11-15 11:12:59 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Tweedie 2022-04-12 10:13:05 UTC
Description of problem:
The CCSP Cloud Certification suite would like a supported, standard way to determine that a RHEL guest is running on a RHEL hypervisor, in order to determine that we are running on a certified host.

This ability has been added to virt-what upstream in commit

http://git.annexia.org/?p=virt-what.git;a=commitdiff;h=b64df398779db07d008781c96685878795bcfd67

We would like this back-ported to RHEL-9.


Version-Release number of selected component (if applicable):
virt-what-1.21-2.el9.2


How reproducible:
100%


Steps to Reproduce:
1. On a RHEL guest on a RHEL hypervisor, run:
   $ sudo virt-what


Actual results:
kvm


Expected results:
redhat
kvm

Comment 3 YongkuiGuo 2022-04-15 10:50:25 UTC
Tested with virt-what-1.22-1.el9.x86_64:

On KVM:
[root@rhel9-1-virt-what home]# virt-what
redhat
kvm

On nested KVM:
[root@localhost ~]# virt-what
redhat
kvm

On TCG:
[root@localhost ~]# virt-what
redhat
qemu

Notes: tier1 gating tests also passed on AWS(including Xen, KVM, Bare Metal), ESXi, Hyper-V(https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/44637584).

Comment 6 YongkuiGuo 2022-06-16 02:39:41 UTC
Verified this bug per comment 3.

Comment 7 minl 2022-06-16 06:32:44 UTC
Verified on Nutanix(guest: RHEL-8.7.0-20220614.0, RHEL-9.1.0-20220612.2):

# virt-what
nutanix_ahv
redhat
kvm

Comment 9 errata-xmlrpc 2022-11-15 11:12:59 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 (virt-what 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/RHBA-2022:8282