From 542435035abad985bc9767e00a0dc2f2b5506762 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 18 Sep 2023 05:35:30 +0200 Subject: [PATCH] systemd-detect-virt: add page (#10723) * systemd-detect-virt: add page * systemd-detect-virt: "0" => "zero" Co-authored-by: K.B.Dharun Krishna --------- Co-authored-by: K.B.Dharun Krishna --- pages/linux/systemd-detect-virt.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/systemd-detect-virt.md diff --git a/pages/linux/systemd-detect-virt.md b/pages/linux/systemd-detect-virt.md new file mode 100644 index 000000000..140e27a94 --- /dev/null +++ b/pages/linux/systemd-detect-virt.md @@ -0,0 +1,24 @@ +# systemd-detect-virt + +> Detect execution in a virtualized environment. +> More information: . + +- List detectable virtualization technologies: + +`systemd-detect-virt --list` + +- 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-virt` + +- Silently check without printing anything: + +`systemd-detect-virt --quiet` + +- Only detect container virtualization: + +`systemd-detect-virt --container` + +- Only detect hardware virtualization: + +`systemd-detect-virt --vm`