CmdID

CmdID / Commands

systemd-detect-virt

Detect execution in a virtualized environment. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

List detectable virtualization technologies

systemd-detect-virt --listIdentify

Detect virtualization, print the result, and return a zero status code when running in a VM or a container, and a non-zero code otherwise

systemd-detect-virtIdentify

Silently check without printing anything

systemd-detect-virt --quietIdentify

Only detect container virtualization

systemd-detect-virt --containerIdentify

Only detect hardware virtualization

systemd-detect-virt --vmIdentify

Detect whether in a chroot environment

systemd-detect-virt --chrootIdentify