|
|
90b589 |
Name: virt-what
|
|
|
90b589 |
Version: 1.18
|
|
|
90b589 |
Release: 6%{?dist}
|
|
|
90b589 |
Summary: Detect if we are running in a virtual machine
|
|
|
90b589 |
License: GPLv2+
|
|
|
90b589 |
|
|
|
90b589 |
URL: http://people.redhat.com/~rjones/virt-what/
|
|
|
90b589 |
Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
|
|
|
90b589 |
|
|
|
90b589 |
# Patches from upstream since 1.18 was released.
|
|
|
90b589 |
Patch0001: 0001-Missing-have_cpuinfo-check.patch
|
|
|
90b589 |
Patch0002: 0002-Remove-bashisms.patch
|
|
|
90b589 |
Patch0003: 0003-As-xen-pv-guest-can-access-cpuid-from-Intel-CPUs-sta.patch
|
|
|
90b589 |
Patch0004: 0004-Recognize-ppc64le-little-endian-virtualization-RHBZ-.patch
|
|
|
90b589 |
Patch0005: 0005-Determine-architecture-via-uname-m.patch
|
|
|
90b589 |
Patch0006: 0006-Allow-using-sysctl-for-example-when-proc-isn-t-avail.patch
|
|
|
90b589 |
Patch0007: 0007-Replace-with-since-the-former-is-a-bash-ism.patch
|
|
|
90b589 |
# AWS support:
|
|
|
90b589 |
Patch0008: 0008-aws-Detect-AWS-from-dmidecode-information.patch
|
|
|
90b589 |
Patch0009: 0009-tests-Fix-tests-when-run-on-AWS.patch
|
|
|
90b589 |
Patch0010: 0010-aws-Add-regression-test-for-AWS-on-KVM-on-x86_64-arc.patch
|
|
|
90b589 |
Patch0011: 0011-aws-Add-regression-test-for-AWS-on-baremetal-on-x86_.patch
|
|
|
90b589 |
Patch0012: 0012-aws-Add-regression-test-for-AWS-on-Xen-on-x86_64-arc.patch
|
|
|
90b589 |
|
|
|
90b589 |
# Patches touch Makefile.am:
|
|
|
90b589 |
BuildRequires: autoconf, automake
|
|
|
90b589 |
BuildRequires: git
|
|
|
90b589 |
|
|
|
90b589 |
# This is provided by the build root, but we make it explicit
|
|
|
90b589 |
# anyway in case this was dropped from the build root in future.
|
|
|
90b589 |
BuildRequires: /usr/bin/pod2man
|
|
|
90b589 |
|
|
|
90b589 |
# Required at build time in order to do 'make check' (for getopt).
|
|
|
90b589 |
BuildRequires: util-linux
|
|
|
90b589 |
|
|
|
90b589 |
# virt-what script uses dmidecode and getopt (from util-linux).
|
|
|
90b589 |
# RPM cannot detect this so make the dependencies explicit here.
|
|
|
90b589 |
%ifarch aarch64 %{ix86} x86_64
|
|
|
90b589 |
Requires: dmidecode
|
|
|
90b589 |
%endif
|
|
|
90b589 |
Requires: util-linux
|
|
|
90b589 |
|
|
|
90b589 |
# Runs the 'which' program to find the helper.
|
|
|
90b589 |
Requires: which
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%description
|
|
|
90b589 |
virt-what is a shell script which can be used to detect if the program
|
|
|
90b589 |
is running in a virtual machine.
|
|
|
90b589 |
|
|
|
90b589 |
The program prints out a list of "facts" about the virtual machine,
|
|
|
90b589 |
derived from heuristics. One fact is printed per line.
|
|
|
90b589 |
|
|
|
90b589 |
If nothing is printed and the script exits with code 0 (no error),
|
|
|
90b589 |
then it can mean either that the program is running on bare-metal or
|
|
|
90b589 |
the program is running inside a type of virtual machine which we don't
|
|
|
90b589 |
know about or can't detect.
|
|
|
90b589 |
|
|
|
90b589 |
Current types of virtualization detected:
|
|
|
90b589 |
|
|
|
90b589 |
- aws Amazon Web Services
|
|
|
90b589 |
- bhyve FreeBSD hypervisor
|
|
|
90b589 |
- docker Docker container
|
|
|
90b589 |
- hyperv Microsoft Hyper-V
|
|
|
90b589 |
- ibm_power-kvm
|
|
|
90b589 |
IBM POWER KVM
|
|
|
90b589 |
- ibm_power-lpar_shared
|
|
|
90b589 |
- ibm_power-lpar_dedicated
|
|
|
90b589 |
IBM POWER LPAR (hardware partition)
|
|
|
90b589 |
- ibm_systemz-*
|
|
|
90b589 |
IBM SystemZ Direct / LPAR / z/VM / KVM
|
|
|
90b589 |
- ldoms Oracle VM Server for SPARC Logical Domains
|
|
|
90b589 |
- linux_vserver
|
|
|
90b589 |
Linux VServer container
|
|
|
90b589 |
- lxc Linux LXC container
|
|
|
90b589 |
- kvm Linux Kernel Virtual Machine (KVM)
|
|
|
90b589 |
- lkvm LKVM / kvmtool
|
|
|
90b589 |
- openvz OpenVZ or Virtuozzo
|
|
|
90b589 |
- ovirt oVirt node
|
|
|
90b589 |
- parallels Parallels Virtual Platform
|
|
|
90b589 |
- powervm_lx86 IBM PowerVM Lx86 Linux/x86 emulator
|
|
|
90b589 |
- qemu QEMU (unaccelerated)
|
|
|
90b589 |
- rhev Red Hat Enterprise Virtualization
|
|
|
90b589 |
- uml User-Mode Linux (UML)
|
|
|
90b589 |
- virtage Hitachi Virtualization Manager (HVM) Virtage LPAR
|
|
|
90b589 |
- virtualbox VirtualBox
|
|
|
90b589 |
- virtualpc Microsoft VirtualPC
|
|
|
90b589 |
- vmm vmm OpenBSD hypervisor
|
|
|
90b589 |
- vmware VMware
|
|
|
90b589 |
- xen Xen
|
|
|
90b589 |
- xen-dom0 Xen dom0 (privileged domain)
|
|
|
90b589 |
- xen-domU Xen domU (paravirtualized guest domain)
|
|
|
90b589 |
- xen-hvm Xen guest fully virtualized (HVM)
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%prep
|
|
|
90b589 |
%autosetup -S git
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%build
|
|
|
90b589 |
# Patches touch Makefile.am:
|
|
|
90b589 |
autoreconf -i
|
|
|
90b589 |
%configure
|
|
|
90b589 |
make
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%install
|
|
|
90b589 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%check
|
|
|
90b589 |
if ! make check ; then
|
|
|
90b589 |
cat test-suite.log
|
|
|
90b589 |
exit 1
|
|
|
90b589 |
fi
|
|
|
90b589 |
|
|
|
90b589 |
%files
|
|
|
90b589 |
%doc README COPYING
|
|
|
90b589 |
%{_sbindir}/virt-what
|
|
|
90b589 |
%{_libexecdir}/virt-what-cpuid-helper
|
|
|
90b589 |
%{_mandir}/man1/*.1*
|
|
|
90b589 |
|
|
|
90b589 |
|
|
|
90b589 |
%changelog
|
|
|
90b589 |
* Wed Oct 31 2018 Richard W.M. Jones <rjones@redhat.com> - 1.18-6
|
|
|
90b589 |
- Add further patches to fix AWS support
|
|
|
90b589 |
resolves: rhbz#1644497
|
|
|
90b589 |
|
|
|
90b589 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-5
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-4
|
|
|
90b589 |
- Include upstream patches since 1.18 was released.
|
|
|
90b589 |
- dmidecode is also available on aarch64.
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Jul 31 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-1
|
|
|
90b589 |
- New upstream version 1.18.
|
|
|
90b589 |
- Update RPM description section with complete list of supported guests.
|
|
|
90b589 |
- If ‘make check’ fails, dump ‘test-suite.log’.
|
|
|
90b589 |
|
|
|
90b589 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-6
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-5
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Jun 14 2016 Richard W.M. Jones <rjones@redhat.com> - 1.15-4
|
|
|
90b589 |
- Require 'which' program.
|
|
|
90b589 |
|
|
|
90b589 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-3
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-2
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Apr 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.15-1
|
|
|
90b589 |
- New upstream version 1.15.
|
|
|
90b589 |
- Remove patches, now upstream.
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-5
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Oct 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-3
|
|
|
90b589 |
- Suppress warning message on Amazon EC2:
|
|
|
90b589 |
"grep: /proc/xen/capabilities: No such file or directory"
|
|
|
90b589 |
|
|
|
90b589 |
* Wed Sep 11 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-2
|
|
|
90b589 |
- Include two upstream patches for detecting Xen and Linux VServer better
|
|
|
90b589 |
(RHBZ#973663).
|
|
|
90b589 |
- Modernize the spec file.
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-1
|
|
|
90b589 |
- New upstream version 1.13.
|
|
|
90b589 |
|
|
|
90b589 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Sat Mar 17 2012 Richard W.M. Jones <rjones@redhat.com> - 1.12-1
|
|
|
90b589 |
- New upstream version 1.12.
|
|
|
90b589 |
|
|
|
90b589 |
* Wed Feb 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.11-3
|
|
|
90b589 |
- Remove ExclusiveArch, but don't require dmidecode except on
|
|
|
90b589 |
i?86 and x86-64 (RHBZ#791370).
|
|
|
90b589 |
|
|
|
90b589 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Fri May 27 2011 Richard W.M. Jones <rjones@redhat.com> - 1.11-1
|
|
|
90b589 |
- New upstream version 1.11.
|
|
|
90b589 |
|
|
|
90b589 |
* Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 1.10-1
|
|
|
90b589 |
- New upstream version 1.10.
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Mar 8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.9-1
|
|
|
90b589 |
- New upstream version 1.9.
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
|
|
|
90b589 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
90b589 |
|
|
|
90b589 |
* Mon Jan 31 2011 Richard W.M. Jones <rjones@redhat.com> - 1.8-1
|
|
|
90b589 |
- New upstream version 1.8.
|
|
|
90b589 |
|
|
|
90b589 |
* Thu Jan 20 2011 Richard W.M. Jones <rjones@redhat.com> - 1.7-1
|
|
|
90b589 |
- New upstream version 1.7.
|
|
|
90b589 |
|
|
|
90b589 |
* Wed Jan 19 2011 Richard W.M. Jones <rjones@redhat.com> - 1.6-2
|
|
|
90b589 |
- New upstream version 1.6.
|
|
|
90b589 |
- BuildRequires 'getopt' from util-linux-ng.
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
|
|
|
90b589 |
- New upstream version 1.5.
|
|
|
90b589 |
- Add 'make check' section.
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
|
|
90b589 |
- New upstream version 1.4.
|
|
|
90b589 |
- More hypervisor types detected.
|
|
|
90b589 |
|
|
|
90b589 |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-4
|
|
|
90b589 |
- Move configure into build (not prep).
|
|
|
90b589 |
|
|
|
90b589 |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-3
|
|
|
90b589 |
- Initial import into Fedora.
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-2
|
|
|
90b589 |
- Make changes suggested by reviewer (RHBZ#644259).
|
|
|
90b589 |
|
|
|
90b589 |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-1
|
|
|
90b589 |
- Initial release.
|