返回命令列表

Linux command

virt-what 命令

安全

May affect permissions or system state. Check the target first.

命令示例

Detect

sudo virt-what

Log

sudo virt-what > [path/to/file]

Example

virt-what --version

说明

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).

参数

--version
Display version information

FAQ

What is the virt-what command used for?

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).

How do I run a basic virt-what example?

Run `sudo virt-what` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --version do in virt-what?

Display version information