Compare commits

..

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

15 changed files with 137 additions and 41 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/virt-what-1.25.tar.gz /virt-what-*.tar.gz
/virt-what-*.tar.gz.sig

View File

@ -1 +1,2 @@
dcbec6a76eddadd63b5139e296e28f600201c37f SOURCES/virt-what-1.25.tar.gz dcbec6a76eddadd63b5139e296e28f600201c37f virt-what-1.25.tar.gz
4efa3d7c7cc043d1ad262c3cd0aaa2fb11ddac44 virt-what-1.25.tar.gz.sig

View File

@ -1,4 +1,4 @@
From 04b504c47e0dc43c82b0d413a253d0599ce83321 Mon Sep 17 00:00:00 2001 From 034981d94bf4ccac4159f013f2d4e2476a23d7e7 Mon Sep 17 00:00:00 2001
From: Yongkui Guo <yoguo@redhat.com> From: Yongkui Guo <yoguo@redhat.com>
Date: Mon, 30 Jan 2023 18:20:32 +0800 Date: Mon, 30 Jan 2023 18:20:32 +0800
Subject: [PATCH] Add support for Alibaba cloud on aarch64 Subject: [PATCH] Add support for Alibaba cloud on aarch64

View File

@ -0,0 +1,38 @@
From 5f10aff9e4b06fb07eb09411d58ee8c8209ff477 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 7 Jun 2023 10:10:03 +0100
Subject: [PATCH] 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
(cherry picked from commit eeb7d8a1e7c73fc9c5b4e987d92a04136d61b07d)
---
virt-what.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/virt-what.in b/virt-what.in
index fbf8c54c5..e310f339b 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
--
2.39.1

View File

@ -1,4 +1,4 @@
From a0560c4b5f222a44b2f307fe8460c29f73e23e2f Mon Sep 17 00:00:00 2001 From d163be00395030039fbdb09e0092667408705044 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com> From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 28 Jun 2023 10:00:42 +0100 Date: Wed, 28 Jun 2023 10:00:42 +0100
Subject: [PATCH] Add support for CRI-O containers Subject: [PATCH] Add support for CRI-O containers
@ -1514,7 +1514,7 @@ index 000000000..94c6daa24
+ exit 1 + exit 1
+fi +fi
diff --git a/virt-what.in b/virt-what.in diff --git a/virt-what.in b/virt-what.in
index fbf8c54c5..69f8c4bed 100644 index e310f339b..5c5b54b92 100644
--- a/virt-what.in --- a/virt-what.in
+++ b/virt-what.in +++ b/virt-what.in
@@ -198,6 +198,12 @@ if [ -e "${root}/proc/1/environ" ] && @@ -198,6 +198,12 @@ if [ -e "${root}/proc/1/environ" ] &&

View File

@ -8,7 +8,7 @@ set -e
# ./copy-patches.sh # ./copy-patches.sh
project=virt-what project=virt-what
rhel_version=8.9 rhel_version=9.3
# Check we're in the right directory. # Check we're in the right directory.
if [ ! -f $project.spec ]; then if [ ! -f $project.spec ]; then

13
gating.yaml Executable file
View File

@ -0,0 +1,13 @@
--- !Policy
product_versions:
- rhel-8
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: xen-ci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: 3rd-esxi-x86_64.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: 3rd-esxi-aarch64.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: 3rd-hyperv-2019-ci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: s1-aws-ci_x86_64.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: s1-aws-ci_aarch64.brew-build.tier1.functional}

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (virt-what-1.25.tar.gz) = 0147b4b44ae0ee685977aa34dfa9bf30ae8e0eb31b7a6d5c0097d16f830fa6fb6afd7156964fc79f3fd5e82b2f68d921fd5306245cc63a2140f6dddc7fdd0e98
SHA512 (virt-what-1.25.tar.gz.sig) = fee5eee4c9b888c6d89512b01cb3a482f8c788d4618c4b2c6e8e709e4d57aa76647463bb06912da2398fd1fd59cb28c38592b7a7de673f4aa27a77d1b2b969c3

6
tests/basic-test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash -
set -e
set -x
# This test requires root to run.
virt-what

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- virt-what
tests:
- simple:
dir: .
run: ./basic-test.sh

View File

@ -1,6 +1,6 @@
Name: virt-what Name: virt-what
Version: 1.25 Version: 1.25
Release: 4%{?dist} Release: 5%{?dist}
Summary: Detect if we are running in a virtual machine Summary: Detect if we are running in a virtual machine
License: GPLv2+ License: GPLv2+
@ -11,7 +11,7 @@ Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{versi
Source1: copy-patches.sh Source1: copy-patches.sh
# Patches are maintained in the following repository: # Patches are maintained in the following repository:
# http://git.annexia.org/?p=virt-what.git;a=shortlog;h=refs/heads/rhel-8.9 # http://git.annexia.org/?p=virt-what.git;a=shortlog;h=refs/heads/rhel-9.3
# Patches. # Patches.
Patch0001: 0001-Rearrange-lxc-test-to-avoid-use-of-cat.patch Patch0001: 0001-Rearrange-lxc-test-to-avoid-use-of-cat.patch
@ -19,7 +19,8 @@ Patch0002: 0002-Move-docker-and-podman-tests-up-add-comments.patch
Patch0003: 0003-podman-Fix-location-of-test-file-proc-1-environ.patch Patch0003: 0003-podman-Fix-location-of-test-file-proc-1-environ.patch
Patch0004: 0004-Detect-OCI-containers.patch Patch0004: 0004-Detect-OCI-containers.patch
Patch0005: 0005-Add-support-for-Alibaba-cloud-on-aarch64.patch Patch0005: 0005-Add-support-for-Alibaba-cloud-on-aarch64.patch
Patch0006: 0006-Add-support-for-CRI-O-containers.patch Patch0006: 0006-nutanix-Don-t-match-Nutanix-based-baremetal-systems.patch
Patch0007: 0007-Add-support-for-CRI-O-containers.patch
BuildRequires: make BuildRequires: make
BuildRequires: git BuildRequires: git
@ -126,13 +127,17 @@ fi
%changelog %changelog
* Wed Jun 28 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-4 * Wed Jun 28 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-5
- Add support for CRI-O containers - Add support for CRI-O containers
resolves: rhbz#2217407 resolves: rhbz#2218203
* Thu Jun 08 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-4
- Don't match Nutanix-based baremetal systems
resolves: rhbz#2211980
* Mon Jan 30 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-3 * Mon Jan 30 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-3
- Add support for Alibaba cloud on aarch64 - Add support for Alibaba Cloud on aarch64
resolves: rhbz#2165518 resolves: rhbz#2165285
* Thu Jan 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-2 * Thu Jan 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.25-2
- Add support for OCI containers - Add support for OCI containers
@ -140,44 +145,63 @@ fi
* Wed Aug 17 2022 Richard W.M. Jones <rjones@redhat.com> - 1.25-1 * Wed Aug 17 2022 Richard W.M. Jones <rjones@redhat.com> - 1.25-1
- Rebase to 1.25 - Rebase to 1.25
resolves: rhbz#2118195 resolves: rhbz#2118997
* Tue Apr 19 2022 Richard W.M. Jones <rjones@redhat.com> - 1.18-14 * Tue Aug 09 2022 Richard W.M. Jones <rjones@redhat.com> - 1.22-2
- Add guest detection for RHEL hypervisors - Detect KVM on GCE and AWS Arm instances
resolves: rhbz#2076628 resolves: rhbz#2114997
- Update patches to 1.22
* Mon Sep 06 2021 Richard W.M. Jones <rjones@redhat.com> - 1.18-13 * Thu Apr 14 2022 Richard W.M. Jones <rjones@redhat.com> - 1.22-1
- Support for Docker - New upstream version 1.22.
resolves: rhbz#2000834 resolves: rhbz#2074476
- Fix Source0 line.
* Fri Jun 18 2021 Richard W.M. Jones <rjones@redhat.com> - 1.18-12 * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.21-2.2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Jun 18 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1.el9.2
- Support for VMware on aarch64 - Support for VMware on aarch64
resolves: rhbz#1959154 resolves: rhbz#1959174
* Wed Jun 02 2021 Richard W.M. Jones <rjones@redhat.com> - 1.18-11 * Wed Jun 2 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1.el9.1
- Add gating tests - Add gating tests for RHEL 9
resolves: rhbz#1967094
* Wed Apr 28 2021 Richard W.M. Jones <rjones@redhat.com> - 1.18-10 * Mon Apr 19 2021 Richard W.M. Jones <rjones@redhat.com> - 1.21-1
- Rebuild for fixed binutils on aarch64 - New upstream version 1.21.
resolves: rhbz#1954455
* Tue Apr 13 2021 Richard W.M. Jones <rjones@redhat.com> - 1.18-9 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.20-6
- Fix crash on non-KVM platforms through incorrect use of CPUID - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
related: rhbz#1756381
* Tue Dec 10 2019 Richard W.M. Jones <rjones@redhat.com> - 1.18-8 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-5
- Add support for Nutanix AHV - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
resolves: rhbz#1756381
- Add all patches since 1.18 was released, up to 1.20 and beyond.
* Thu Mar 21 2019 Richard W.M. Jones <rjones@redhat.com> - 1.18-7 * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-4
- Add gating tests resolves: rhbz#1682785 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Oct 31 2018 Richard W.M. Jones <rjones@redhat.com> - 1.18-6 * Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.20-3
- Add further patches to fix AWS support - Use make macros
resolves: rhbz#1644497 - https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 3 2019 Richard W.M. Jones <rjones@redhat.com> - 1.20-1
- New upstream version 1.20.
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Oct 31 2018 Richard W.M. Jones <rjones@redhat.com> - 1.19-1
- New upstream version 1.19.
- Fixes support for AWS.
- Remove patches which are now upstream.
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild