|
|
01f8c2e |
Name: virt-what
|
|
|
f2bd887 |
Version: 1.18
|
|
|
f2bd887 |
Release: 1%{?dist}
|
|
|
01f8c2e |
Summary: Detect if we are running in a virtual machine
|
|
|
01f8c2e |
License: GPLv2+
|
|
|
94c289c |
|
|
|
01f8c2e |
URL: http://people.redhat.com/~rjones/virt-what/
|
|
|
01f8c2e |
Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
|
|
|
94c289c |
|
|
|
01f8c2e |
# This is provided by the build root, but we make it explicit
|
|
|
01f8c2e |
# anyway in case this was dropped from the build root in future.
|
|
|
01f8c2e |
BuildRequires: /usr/bin/pod2man
|
|
|
01f8c2e |
|
|
|
1850405 |
# Required at build time in order to do 'make check' (for getopt).
|
|
|
97a1686 |
BuildRequires: util-linux
|
|
|
1850405 |
|
|
|
97a1686 |
# virt-what script uses dmidecode and getopt (from util-linux).
|
|
|
01f8c2e |
# RPM cannot detect this so make the dependencies explicit here.
|
|
|
202a49b |
%ifarch %{ix86} x86_64
|
|
|
01f8c2e |
Requires: dmidecode
|
|
|
202a49b |
%endif
|
|
|
97a1686 |
Requires: util-linux
|
|
|
01f8c2e |
|
|
|
ec2397f |
# Runs the 'which' program to find the helper.
|
|
|
ec2397f |
Requires: which
|
|
|
ec2397f |
|
|
|
4f94663 |
|
|
|
01f8c2e |
%description
|
|
|
01f8c2e |
virt-what is a shell script which can be used to detect if the program
|
|
|
01f8c2e |
is running in a virtual machine.
|
|
|
01f8c2e |
|
|
|
01f8c2e |
The program prints out a list of "facts" about the virtual machine,
|
|
|
01f8c2e |
derived from heuristics. One fact is printed per line.
|
|
|
01f8c2e |
|
|
|
01f8c2e |
If nothing is printed and the script exits with code 0 (no error),
|
|
|
01f8c2e |
then it can mean either that the program is running on bare-metal or
|
|
|
01f8c2e |
the program is running inside a type of virtual machine which we don't
|
|
|
df47780 |
know about or can't detect.
|
|
|
01f8c2e |
|
|
|
01f8c2e |
Current types of virtualization detected:
|
|
|
af73084 |
|
|
|
f2bd887 |
- aws Amazon Web Services cloud guest
|
|
|
f2bd887 |
- bhyve FreeBSD hypervisor
|
|
|
f2bd887 |
- docker Docker container
|
|
|
af73084 |
- hyperv Microsoft Hyper-V
|
|
|
f2bd887 |
- ibm_power-kvm
|
|
|
f2bd887 |
IBM POWER KVM
|
|
|
f2bd887 |
- ibm_power-lpar_shared
|
|
|
f2bd887 |
- ibm_power-lpar_dedicated
|
|
|
f2bd887 |
IBM POWER LPAR (hardware partition)
|
|
|
f2bd887 |
- ibm_systemz-*
|
|
|
f2bd887 |
IBM SystemZ Direct / LPAR / z/VM / KVM
|
|
|
f2bd887 |
- ldoms Oracle VM Server for SPARC Logical Domains
|
|
|
f2bd887 |
- linux_vserver
|
|
|
f2bd887 |
Linux VServer container
|
|
|
f2bd887 |
- lxc Linux LXC container
|
|
|
af73084 |
- kvm Linux Kernel Virtual Machine (KVM)
|
|
|
f2bd887 |
- lkvm LKVM / kvmtool
|
|
|
af73084 |
- openvz OpenVZ or Virtuozzo
|
|
|
f2bd887 |
- ovirt oVirt node
|
|
|
f2bd887 |
- parallels Parallels Virtual Platform
|
|
|
af73084 |
- powervm_lx86 IBM PowerVM Lx86 Linux/x86 emulator
|
|
|
af73084 |
- qemu QEMU (unaccelerated)
|
|
|
f2bd887 |
- rhev Red Hat Enterprise Virtualization
|
|
|
af73084 |
- uml User-Mode Linux (UML)
|
|
|
af73084 |
- virtage Hitachi Virtualization Manager (HVM) Virtage LPAR
|
|
|
af73084 |
- virtualbox VirtualBox
|
|
|
af73084 |
- virtualpc Microsoft VirtualPC
|
|
|
f2bd887 |
- vmm vmm OpenBSD hypervisor
|
|
|
af73084 |
- vmware VMware
|
|
|
af73084 |
- xen Xen
|
|
|
af73084 |
- xen-dom0 Xen dom0 (privileged domain)
|
|
|
af73084 |
- xen-domU Xen domU (paravirtualized guest domain)
|
|
|
af73084 |
- xen-hvm Xen guest fully virtualized (HVM)
|
|
|
01f8c2e |
|
|
|
01f8c2e |
|
|
|
01f8c2e |
%prep
|
|
|
01f8c2e |
%setup -q
|
|
|
01f8c2e |
|
|
|
01f8c2e |
|
|
|
01f8c2e |
%build
|
|
|
4f94663 |
%configure
|
|
|
01f8c2e |
make
|
|
|
01f8c2e |
|
|
|
01f8c2e |
|
|
|
01f8c2e |
%install
|
|
|
01f8c2e |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
01f8c2e |
|
|
|
01f8c2e |
|
|
|
3c7c4fe |
%check
|
|
|
f2bd887 |
if ! make check ; then
|
|
|
f2bd887 |
cat test-suite.log
|
|
|
f2bd887 |
exit 1
|
|
|
f2bd887 |
fi
|
|
|
3c7c4fe |
|
|
|
01f8c2e |
%files
|
|
|
01f8c2e |
%doc README COPYING
|
|
|
01f8c2e |
%{_sbindir}/virt-what
|
|
|
01f8c2e |
%{_libexecdir}/virt-what-cpuid-helper
|
|
|
01f8c2e |
%{_mandir}/man1/*.1*
|
|
|
01f8c2e |
|
|
|
01f8c2e |
|
|
|
01f8c2e |
%changelog
|
|
|
f2bd887 |
* Mon Jul 31 2017 Richard W.M. Jones <rjones@redhat.com> - 1.18-1
|
|
|
f2bd887 |
- New upstream version 1.18.
|
|
|
f2bd887 |
- Update RPM description section with complete list of supported guests.
|
|
|
f2bd887 |
- If ‘make check’ fails, dump ‘test-suite.log’.
|
|
|
f2bd887 |
|
|
|
f2bd887 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-6
|
|
|
f2bd887 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
f2bd887 |
|
|
|
46d3d9b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-5
|
|
|
46d3d9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
46d3d9b |
|
|
|
ec2397f |
* Tue Jun 14 2016 Richard W.M. Jones <rjones@redhat.com> - 1.15-4
|
|
|
ec2397f |
- Require 'which' program.
|
|
|
ec2397f |
|
|
|
e934921 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-3
|
|
|
e934921 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e934921 |
|
|
|
180683a |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-2
|
|
|
180683a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
180683a |
|
|
|
32d59a0 |
* Tue Apr 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.15-1
|
|
|
2ef57b4 |
- New upstream version 1.15.
|
|
|
2ef57b4 |
- Remove patches, now upstream.
|
|
|
2ef57b4 |
|
|
|
15b295c |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-5
|
|
|
15b295c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
15b295c |
|
|
|
92f6ad3 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
|
|
|
92f6ad3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
92f6ad3 |
|
|
|
8318e19 |
* Mon Oct 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-3
|
|
|
ef2238c |
- Suppress warning message on Amazon EC2:
|
|
|
ef2238c |
"grep: /proc/xen/capabilities: No such file or directory"
|
|
|
ef2238c |
|
|
|
94c289c |
* Wed Sep 11 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-2
|
|
|
94c289c |
- Include two upstream patches for detecting Xen and Linux VServer better
|
|
|
94c289c |
(RHBZ#973663).
|
|
|
94c289c |
- Modernize the spec file.
|
|
|
94c289c |
|
|
|
df47780 |
* Mon Jul 29 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13-1
|
|
|
df47780 |
- New upstream version 1.13.
|
|
|
df47780 |
|
|
|
d068adb |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
|
|
|
d068adb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d068adb |
|
|
|
6b219de |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
|
|
|
6b219de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6b219de |
|
|
|
35571c4 |
* Sat Mar 17 2012 Richard W.M. Jones <rjones@redhat.com> - 1.12-1
|
|
|
35571c4 |
- New upstream version 1.12.
|
|
|
35571c4 |
|
|
|
202a49b |
* Wed Feb 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.11-3
|
|
|
202a49b |
- Remove ExclusiveArch, but don't require dmidecode except on
|
|
|
202a49b |
i?86 and x86-64 (RHBZ#791370).
|
|
|
202a49b |
|
|
|
050c5aa |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
|
|
|
050c5aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
050c5aa |
|
|
|
ec727dc |
* Fri May 27 2011 Richard W.M. Jones <rjones@redhat.com> - 1.11-1
|
|
|
ec727dc |
- New upstream version 1.11.
|
|
|
ec727dc |
|
|
|
e8d995f |
* Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 1.10-1
|
|
|
e8d995f |
- New upstream version 1.10.
|
|
|
e8d995f |
|
|
|
df47780 |
* Tue Mar 8 2011 Richard W.M. Jones <rjones@redhat.com> - 1.9-1
|
|
|
09d8d42 |
- New upstream version 1.9.
|
|
|
09d8d42 |
|
|
|
af1445d |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
|
|
|
af1445d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
af1445d |
|
|
|
1577fc0 |
* Mon Jan 31 2011 Richard W.M. Jones <rjones@redhat.com> - 1.8-1
|
|
|
1577fc0 |
- New upstream version 1.8.
|
|
|
1577fc0 |
|
|
|
7201da9 |
* Thu Jan 20 2011 Richard W.M. Jones <rjones@redhat.com> - 1.7-1
|
|
|
7201da9 |
- New upstream version 1.7.
|
|
|
7201da9 |
|
|
|
1850405 |
* Wed Jan 19 2011 Richard W.M. Jones <rjones@redhat.com> - 1.6-2
|
|
|
a5a09fc |
- New upstream version 1.6.
|
|
|
1850405 |
- BuildRequires 'getopt' from util-linux-ng.
|
|
|
a5a09fc |
|
|
|
3c7c4fe |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
|
|
|
3c7c4fe |
- New upstream version 1.5.
|
|
|
3c7c4fe |
- Add 'make check' section.
|
|
|
3c7c4fe |
|
|
|
af73084 |
* Tue Jan 18 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
|
|
af73084 |
- New upstream version 1.4.
|
|
|
af73084 |
- More hypervisor types detected.
|
|
|
af73084 |
|
|
|
4f94663 |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-4
|
|
|
4f94663 |
- Move configure into build (not prep).
|
|
|
4f94663 |
|
|
|
01f8c2e |
* Thu Oct 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-3
|
|
|
01f8c2e |
- Initial import into Fedora.
|
|
|
01f8c2e |
|
|
|
01f8c2e |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-2
|
|
|
01f8c2e |
- Make changes suggested by reviewer (RHBZ#644259).
|
|
|
01f8c2e |
|
|
|
01f8c2e |
* Tue Oct 19 2010 Richard W.M. Jones <rjones@redhat.com> - 1.3-1
|
|
|
01f8c2e |
- Initial release.
|