Another method to find out if the OS is running in virtual environment

Fedora, Red Hat Enterprise Linux, and CentOS have a tool called 'virt-what' that detects if the operating system is running in a virtual environment.

It can detect the following environments:


hyperv: Microsoft Hyper-V hypervisor
ibm_systemz: IBM SystemZ (or other S/390)
ibm_systemz-direct: IBM SystemZ hardware partitioning system
ibm_systemz-lpar: LPAR on an IBM SystemZ hardware partitioning system
ibm_systemz-zvm: z/VM guest running in an LPAR on an IBM SystemZ hardware partitioning system
linux_vserver: Linux VServer container
kvm: KVM hypervisor using hardware acceleration
openvz: OpenVZ or Virtuozzo container
parallels: Parallels Virtual Platform (Parallels Desktop, Parallels Server)
powervm_lx86: IBM PowerVM Lx86 Linux/x86 emulator
qemu: QEMU hypervisor using software emulation
uml: User-Mode Linux (UML) guest
virt: Some sort of generic virtualization
virtage: Hitachi Virtualization Manager (HVM) Virtage hardware partitioning system
virtualbox: VirtualBox guest
virtualpc: Microsoft VirtualPC
vmware: VMware hypervisor
xen: Xen hypervisor
xen-dom0: Xen domU (paravirtualized guest domain)
xen-hvm: Xen guest fully virtualized (HVM)


To install it run:

yum install virt-what

Usage is as simple as running it without any options.



Did you find this article useful and interesting? If so, please consider subscribing to email updates and RSS feed for more articles like this.
Man Versus Technology

0 comments:

Post a Comment