|
|
a25d24 |
Name: virt-what
|
|
|
a25d24 |
Version: 1.18
|
|
|
a25d24 |
Release: 4%{?dist}
|
|
|
a25d24 |
Summary: Detect if we are running in a virtual machine
|
|
|
a25d24 |
License: GPLv2+
|
|
|
a25d24 |
|
|
|
a25d24 |
URL: http://people.redhat.com/~rjones/virt-what/
|
|
|
a25d24 |
Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
|
|
|
a25d24 |
|
|
|
a25d24 |
# Patches from upstream since 1.18 was released.
|
|
|
a25d24 |
Patch0001: 0001-Missing-have_cpuinfo-check.patch
|
|
|
a25d24 |
Patch0002: 0002-Remove-bashisms.patch
|
|
|
a25d24 |
Patch0003: 0003-As-xen-pv-guest-can-access-cpuid-from-Intel-CPUs-sta.patch
|
|
|
a25d24 |
Patch0004: 0004-Recognize-ppc64le-little-endian-virtualization-RHBZ-.patch
|
|
|
a25d24 |
|
|
|
a25d24 |
# This is provided by the build root, but we make it explicit
|
|
|
a25d24 |
# anyway in case this was dropped from the build root in future.
|
|
|
a25d24 |
BuildRequires: /usr/bin/pod2man
|
|
|
a25d24 |
|
|
|
a25d24 |
# Required at build time in order to do 'make check' (for getopt).
|
|
|
a25d24 |
BuildRequires: util-linux
|
|
|
a25d24 |
|
|
|
a25d24 |
# virt-what script uses dmidecode and getopt (from util-linux).
|
|
|
a25d24 |
# RPM cannot detect this so make the dependencies explicit here.
|
|
|
a25d24 |
%ifarch aarch64 %{ix86} x86_64
|
|
|
a25d24 |
Requires: dmidecode
|
|
|
a25d24 |
%endif
|
|
|
a25d24 |
Requires: util-linux
|
|
|
a25d24 |
|
|
|
a25d24 |
# Runs the 'which' program to find the helper.
|
|
|
a25d24 |
Requires: which
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%description
|
|
|
a25d24 |
virt-what is a shell script which can be used to detect if the program
|
|
|
a25d24 |
is running in a virtual machine.
|
|
|
a25d24 |
|
|
|
a25d24 |
The program prints out a list of "facts" about the virtual machine,
|
|
|
a25d24 |
derived from heuristics. One fact is printed per line.
|
|
|
a25d24 |
|
|
|
a25d24 |
If nothing is printed and the script exits with code 0 (no error),
|
|
|
a25d24 |
then it can mean either that the program is running on bare-metal or
|
|
|
a25d24 |
the program is running inside a type of virtual machine which we don't
|
|
|
a25d24 |
know about or can't detect.
|
|
|
a25d24 |
|
|
|
a25d24 |
Current types of virtualization detected:
|
|
|
a25d24 |
|
|
|
a25d24 |
- aws Amazon Web Services cloud guest
|
|
|
a25d24 |
- bhyve FreeBSD hypervisor
|
|
|
a25d24 |
- docker Docker container
|
|
|
a25d24 |
- hyperv Microsoft Hyper-V
|
|
|
a25d24 |
- ibm_power-kvm
|
|
|
a25d24 |
IBM POWER KVM
|
|
|
a25d24 |
- ibm_power-lpar_shared
|
|
|
a25d24 |
- ibm_power-lpar_dedicated
|
|
|
a25d24 |
IBM POWER LPAR (hardware partition)
|
|
|
a25d24 |
- ibm_systemz-*
|
|
|
a25d24 |
IBM SystemZ Direct / LPAR / z/VM / KVM
|
|
|
a25d24 |
- ldoms Oracle VM Server for SPARC Logical Domains
|
|
|
a25d24 |
- linux_vserver
|
|
|
a25d24 |
Linux VServer container
|
|
|
a25d24 |
- lxc Linux LXC container
|
|
|
a25d24 |
- kvm Linux Kernel Virtual Machine (KVM)
|
|
|
a25d24 |
- lkvm LKVM / kvmtool
|
|
|
a25d24 |
- openvz OpenVZ or Virtuozzo
|
|
|
a25d24 |
- ovirt oVirt node
|
|
|
a25d24 |
- parallels Parallels Virtual Platform
|
|
|
a25d24 |
- powervm_lx86 IBM PowerVM Lx86 Linux/x86 emulator
|
|
|
a25d24 |
- qemu QEMU (unaccelerated)
|
|
|
a25d24 |
- rhev Red Hat Enterprise Virtualization
|
|
|
a25d24 |
- uml User-Mode Linux (UML)
|
|
|
a25d24 |
- virtage Hitachi Virtualization Manager (HVM) Virtage LPAR
|
|
|
a25d24 |
- virtualbox VirtualBox
|
|
|
a25d24 |
- virtualpc Microsoft VirtualPC
|
|
|
a25d24 |
- vmm vmm OpenBSD hypervisor
|
|
|
a25d24 |
- vmware VMware
|
|
|
a25d24 |
- xen Xen
|
|
|
a25d24 |
- xen-dom0 Xen dom0 (privileged domain)
|
|
|
a25d24 |
- xen-domU Xen domU (paravirtualized guest domain)
|
|
|
a25d24 |
- xen-hvm Xen guest fully virtualized (HVM)
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%prep
|
|
|
a25d24 |
%setup -q
|
|
|
a25d24 |
%autopatch -p1
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%build
|
|
|
a25d24 |
%configure
|
|
|
a25d24 |
make
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%install
|
|
|
a25d24 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%check
|
|
|
a25d24 |
if ! make check ; then
|
|
|
a25d24 |
cat test-suite.log
|
|
|
a25d24 |
exit 1
|
|
|
a25d24 |
fi
|
|
|
a25d24 |
|
|
|
a25d24 |
%files
|
|
|
a25d24 |
%doc README COPYING
|
|
|
a25d24 |
%{_sbindir}/virt-what
|
|
|
a25d24 |
%{_libexecdir}/virt-what-cpuid-helper
|
|
|
a25d24 |
%{_mandir}/man1/*.1*
|
|
|
a25d24 |
|
|
|
a25d24 |
|
|
|
a25d24 |
%changelog
|
|
|
a25d24 |
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-4
|
|
|
a25d24 |
- Add patch to recognize ppc64le virtualization.
|
|
|
a25d24 |
resolves: rhbz#1147876
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Oct 17 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-2
|
|
|
a25d24 |
- Rebase to Fedora Rawhide / upstream version.
|
|
|
a25d24 |
- Include upstream patches since 1.18 was released.
|
|
|
a25d24 |
resolves: rhbz#1476878
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Mar 28 2017 Richard W.M. Jones <rjones@redhat.com> - 1.13-10
|
|
|
a25d24 |
- Require 'which' program
|
|
|
a25d24 |
resolves: rhbz#1433005
|
|
|
a25d24 |
|
|
|
a25d24 |
* Thu Feb 16 2017 Richard W.M. Jones <rjones@redhat.com> - 1.13-9
|
|
|
a25d24 |
- Detect RHEV/oVirt (second fix)
|
|
|
a25d24 |
resolves: rhbz#1249438
|
|
|
a25d24 |
|
|
|
a25d24 |
* Wed Jul 27 2016 Richard W.M. Jones <rjones@redhat.com> - 1.13-8
|
|
|
a25d24 |
- Depend on dmidecode on aarch64
|
|
|
a25d24 |
resolves: rhbz#1360699
|
|
|
a25d24 |
|
|
|
a25d24 |
* Mon Jun 20 2016 Richard W.M. Jones <rjones@redhat.com> - 1.13-7
|
|
|
a25d24 |
- Add support for detecting POWER KVM and LPAR
|
|
|
a25d24 |
resolves: rhbz#1147876
|
|
|
a25d24 |
- Detect RHEV/oVirt
|
|
|
a25d24 |
resolves: rhbz#1249438
|
|
|
a25d24 |
- Detect ACPI boot aarch64 guest
|
|
|
a25d24 |
resolves: rhbz#1275349
|
|
|
a25d24 |
- Fix typo in manual page
|
|
|
a25d24 |
resolves: rhbz#1099289
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Apr 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.13-6
|
|
|
a25d24 |
- Fix detection of aarch64
|
|
|
a25d24 |
resolves: rhbz#1201845
|
|
|
a25d24 |
Add all commits to version 1.15.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.13-5
|
|
|
a25d24 |
- Mass rebuild 2014-01-24
|
|
|
a25d24 |
|
|
|
a25d24 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.13-4
|
|
|
a25d24 |
- Mass rebuild 2013-12-27
|
|
|
a25d24 |
|
|
|
a25d24 |
* Mon Oct 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-3
|
|
|
a25d24 |
- Suppress warning message on Amazon EC2:
|
|
|
a25d24 |
"grep: /proc/xen/capabilities: No such file or directory"
|
|
|
a25d24 |
|
|
|
a25d24 |
* Wed Sep 11 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-2
|
|
|
a25d24 |
- Include two upstream patches for detecting Xen and Linux VServer better
|
|
|
a25d24 |
(RHBZ#973663).
|
|
|
a25d24 |
- Modernize the spec file.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-1
|
|
|
a25d24 |
- New upstream version 1.13.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
|
|
|
a25d24 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a25d24 |
|
|
|
a25d24 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
|
|
|
a25d24 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a25d24 |
|
|
|
a25d24 |
* Sat Mar 17 2012 Richard W.M. Jones <rjones@redhat.com> - 1.12-1
|
|
|
a25d24 |
- New upstream version 1.12.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Wed Feb 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.11-3
|
|
|
a25d24 |
- Remove ExclusiveArch, but don't require dmidecode except on
|
|
|
a25d24 |
i?86 and x86-64 (RHBZ#791370).
|
|
|
a25d24 |
|
|
|
a25d24 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
|
|
|
a25d24 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
a25d24 |
|
|
|
a25d24 |
* Fri May 27 2011 Richard W.M. Jones <rjones@redhat.com> - 1.11-1
|
|
|
a25d24 |
- New upstream version 1.11.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 1.10-1
|
|
|
a25d24 |
- New upstream version 1.10.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Mar 8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.9-1
|
|
|
a25d24 |
- New upstream version 1.9.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
|
|
|
a25d24 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a25d24 |
|
|
|
a25d24 |
* Mon Jan 31 2011 Richard W.M. Jones <rjones@redhat.com> - 1.8-1
|
|
|
a25d24 |
- New upstream version 1.8.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Thu Jan 20 2011 Richard W.M. Jones <rjones@redhat.com> - 1.7-1
|
|
|
a25d24 |
- New upstream version 1.7.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Wed Jan 19 2011 Richard W.M. Jones <rjones@redhat.com> - 1.6-2
|
|
|
a25d24 |
- New upstream version 1.6.
|
|
|
a25d24 |
- BuildRequires 'getopt' from util-linux-ng.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
|
|
|
a25d24 |
- New upstream version 1.5.
|
|
|
a25d24 |
- Add 'make check' section.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
|
|
a25d24 |
- New upstream version 1.4.
|
|
|
a25d24 |
- More hypervisor types detected.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-4
|
|
|
a25d24 |
- Move configure into build (not prep).
|
|
|
a25d24 |
|
|
|
a25d24 |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-3
|
|
|
a25d24 |
- Initial import into Fedora.
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-2
|
|
|
a25d24 |
- Make changes suggested by reviewer (RHBZ#644259).
|
|
|
a25d24 |
|
|
|
a25d24 |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-1
|
|
|
a25d24 |
- Initial release.
|