LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

virt-what

Detect virtualization technology

TLDR

Detect virtualization technology (requires root)
$ sudo virt-what
copy
Log output to file
$ sudo virt-what > [path/to/file]
copy
Display version
$ virt-what --version
copy

SYNOPSIS

virt-what [OPTIONS]

DESCRIPTION

virt-what is a shell script that detects if you are running inside a virtual machine. It prints one or more lines identifying the virtualization technology. If nothing is printed, the system is running on bare metal.The tool can detect various hypervisors including KVM, QEMU, Xen (HVM and PV), VMware, VirtualBox, Hyper-V, Docker, LXC, OpenVZ, Podman, and others. Multiple lines may be printed for nested virtualization (e.g., both "kvm" and "hyperv" when running KVM inside Hyper-V).

PARAMETERS

--version

Display version information

OUTPUT VALUES

Common output values include: kvm, qemu, xen, xen-hvm, xen-pv, vmware, virtualbox, hyperv, docker, lxc, openvz, podman, parallels, bhyve, uml (User-Mode Linux).

INSTALL

sudo apt install virt-what
copy
sudo dnf install virt-what
copy
sudo pacman -S virt-what
copy
sudo apk add virt-what
copy
sudo zypper install virt-what
copy
nix profile install nixpkgs#virt-what
copy

CAVEATS

Requires root privileges for reliable detection. Some detection methods read DMI data or kernel modules that are only accessible as root. Nested virtualization may produce multiple lines of output. Container detection (Docker, LXC, Podman) is also supported.

HISTORY

virt-what was created by Richard W.M. Jones at Red Hat. It is distributed as part of the virt-what package and is commonly used in provisioning scripts to detect the runtime environment.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid