LinuxCommandLibrary

virt-what

Detect virtualization technology

TLDR

Detect virtual machine

$ virt-what
copy
Log output to file
$ 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 outputs specific codes identifying the virtualization technology if detected.
The tool can detect various hypervisors including KVM, Xen, VMware, VirtualBox, Hyper-V, and others. Empty output means running on bare metal.

PARAMETERS

--version

Display version information

CAVEATS

Detection may not be 100% accurate in all cases. Some nested virtualization scenarios may produce unexpected results. Requires root for some detection methods.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community