From: Richard W.M. Jones Date: Wed, 7 Jun 2023 09:10:03 +0000 (+0100) Subject: nutanix: Don't match Nutanix-based baremetal systems X-Git-Tag: v1.26~9 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=eeb7d8a1e7c73fc9c5b4e987d92a04136d61b07d;p=virt-what.git nutanix: Don't match Nutanix-based baremetal systems Nutanix ship baremetal systems which have modified firmware that reports similar to: Manufacturer: Nutanix Product Name: NX-T00-4NL3-G5 This is not a virtual machine, but was recognised as such. Make sure we match on 'Product Name: AHV' to identify only virtual machines. Thanks: Scott Yeager, Shaoyu Shang Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2211980 --- diff --git a/virt-what.in b/virt-what.in index 01e9aca..896bfd8 100644 --- a/virt-what.in +++ b/virt-what.in @@ -259,7 +259,8 @@ if echo "$dmi" | grep -q 'Vendor: Parallels'; then fi # Check for Nutanix AHV. -if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then +if echo "$dmi" | grep -q 'Manufacturer: Nutanix' && + echo "$dmi" | grep -q 'Product Name: AHV'; then echo nutanix_ahv fi