virt-what - Detect if we are running in a virtual machine

Property Value
Distribution CentOS 7
Repository CentOS x86_64
Package name virt-what
Package version 1.18
Package release 4.el7
Package architecture x86_64
Package type rpm
Installed size 44.65 KB
Download size 29.29 KB
Official Mirror
virt-what is a shell script which can be used to detect if the program
is running in a virtual machine.
The program prints out a list of "facts" about the virtual machine,
derived from heuristics.  One fact is printed per line.
If nothing is printed and the script exits with code 0 (no error),
then it can mean either that the program is running on bare-metal or
the program is running inside a type of virtual machine which we don't
know about or can't detect.
Current types of virtualization detected:
- aws          Amazon Web Services cloud guest
- bhyve        FreeBSD hypervisor
- docker       Docker container
- hyperv       Microsoft Hyper-V
- ibm_power-kvm
- ibm_power-lpar_shared
- ibm_power-lpar_dedicated
IBM POWER LPAR (hardware partition)
- ibm_systemz-*
IBM SystemZ Direct / LPAR / z/VM / KVM
- ldoms        Oracle VM Server for SPARC Logical Domains
- linux_vserver
Linux VServer container
- lxc          Linux LXC container
- kvm          Linux Kernel Virtual Machine (KVM)
- lkvm         LKVM / kvmtool
- openvz       OpenVZ or Virtuozzo
- ovirt        oVirt node
- parallels    Parallels Virtual Platform
- powervm_lx86 IBM PowerVM Lx86 Linux/x86 emulator
- qemu         QEMU (unaccelerated)
- rhev         Red Hat Enterprise Virtualization
- uml          User-Mode Linux (UML)
- virtage      Hitachi Virtualization Manager (HVM) Virtage LPAR
- virtualbox   VirtualBox
- virtualpc    Microsoft VirtualPC
- vmm          vmm OpenBSD hypervisor
- vmware       VMware
- xen          Xen
- xen-dom0     Xen dom0 (privileged domain)
- xen-domU     Xen domU (paravirtualized guest domain)
- xen-hvm      Xen guest fully virtualized (HVM)


Package Version Architecture Repository
virt-what - - -


Name Value
dmidecode - -
rtld(GNU_HASH) -
util-linux -
which -


Name Value
virt-what = 1.18-4.el7
virt-what(x86-64) = 1.18-4.el7


Type URL
Binary Package virt-what-1.18-4.el7.x86_64.rpm
Source Package virt-what-1.18-4.el7.src.rpm

Install Howto

Install virt-what rpm package:

# yum install virt-what




2017-10-17 - Richard W.M. Jones <> - 1.18-4
- Add patch to recognize ppc64le virtualization.
resolves: rhbz#1147876
2017-10-17 - Richard W.M. Jones <> - 1.18-2
- Rebase to Fedora Rawhide / upstream version.
- Include upstream patches since 1.18 was released.
resolves: rhbz#1476878
2017-03-28 - Richard W.M. Jones <> - 1.13-10
- Require 'which' program
resolves: rhbz#1433005
2017-02-16 - Richard W.M. Jones <> - 1.13-9
- Detect RHEV/oVirt (second fix)
resolves: rhbz#1249438
2016-07-27 - Richard W.M. Jones <> - 1.13-8
- Depend on dmidecode on aarch64
resolves: rhbz#1360699
2016-06-20 - Richard W.M. Jones <> - 1.13-7
- Add support for detecting POWER KVM and LPAR
resolves: rhbz#1147876
- Detect RHEV/oVirt
resolves: rhbz#1249438
- Detect ACPI boot aarch64 guest
resolves: rhbz#1275349
- Fix typo in manual page
resolves: rhbz#1099289
2015-04-21 - Richard W.M. Jones <> - 1.13-6
- Fix detection of aarch64
resolves: rhbz#1201845
Add all commits to version 1.15.
2014-01-24 - Daniel Mach <> - 1.13-5
- Mass rebuild 2014-01-24
2013-12-27 - Daniel Mach <> - 1.13-4
- Mass rebuild 2013-12-27
2013-10-28 - Richard W.M. Jones <> - 1.13-3
- Suppress warning message on Amazon EC2:
"grep: /proc/xen/capabilities: No such file or directory"

See Also

Package Description
virt-who-0.22.5-1.el7.noarch.rpm Agent for reporting virtual guest IDs to subscription-manager
virtuoso-opensource-6.1.6-6.el7.x86_64.rpm A high-performance object-relational SQL database
virtuoso-opensource-utils-6.1.6-6.el7.x86_64.rpm Utilities
vlgothic-fonts-20130607-2.el7.noarch.rpm Japanese TrueType font
vlgothic-p-fonts-20130607-2.el7.noarch.rpm Proportional Japanese TrueType font
voikko-tools-3.6-5.el7.x86_64.rpm Test tools for libvoikko
volume_key-0.3.9-8.el7.x86_64.rpm An utility for manipulating storage encryption keys and passphrases
volume_key-devel-0.3.9-8.el7.i686.rpm A library for manipulating storage encryption keys and passphrases
volume_key-devel-0.3.9-8.el7.x86_64.rpm A library for manipulating storage encryption keys and passphrases
volume_key-libs-0.3.9-8.el7.i686.rpm A library for manipulating storage encryption keys and passphrases
volume_key-libs-0.3.9-8.el7.x86_64.rpm A library for manipulating storage encryption keys and passphrases
vorbis-tools-1.4.0-13.el7.x86_64.rpm The Vorbis General Audio Compression Codec tools
vsftpd-3.0.2-25.el7.x86_64.rpm Very Secure Ftp Daemon
vsftpd-sysvinit-3.0.2-25.el7.x86_64.rpm SysV initscript for vsftpd daemon
vte-profile-0.52.2-2.el7.x86_64.rpm Profile script for VTE terminal emulator library