2 .TH "SYSTEMD\-DETECT\-VIRT" "1" "" "systemd 217" "systemd-detect-virt"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
17 .\" disable justification (adjust text to left margin only)
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
23 systemd-detect-virt \- Detect execution in a virtualized environment
25 .HP \w'\fBsystemd\-detect\-virt\ \fR\fB[OPTIONS...]\fR\ 'u
26 \fBsystemd\-detect\-virt \fR\fB[OPTIONS...]\fR
29 \fBsystemd\-detect\-virt\fR
30 detects execution in a virtualized environment\&. It identifies the virtualization technology and can distinguish full VM virtualization from container virtualization\&.
32 exits with a return value of 0 (success) if a virtualization technology is detected, and non\-zero (error) otherwise\&. By default any type of virtualization is detected, and the options
36 can be used to limit what types of virtualization are detected\&.
40 will print a short identifier for the detected virtualization technology\&. The following technologies are currently identified:
43 .nr an-no-space-flag 1
46 .B Table\ \&1.\ \&Known virtualization technologies (both VM, i.e. full hardware virtualization, and container, i.e. shared kernel virtualization)
78 QEMU software virtualization
83 Linux KVM kernel virtual machine
93 VMware Workstation or Server, and related products
98 Hyper\-V, also known as Viridian or Windows Server Virtualization
103 Oracle VM VirtualBox (historically marketed by innotek and Sun Microsystems)
108 Xen hypervisor (only domU, not dom0)
130 Linux container implementation by LXC
135 Linux container implementation by libvirt
138 \fIsystemd\-nspawn\fR
140 systemd\*(Aqs minimal container implementation, see \fBsystemd-nspawn\fR(1)
145 Docker container manager
150 If multiple virtualization solutions are used, only the "innermost" is detected and identified\&. That means if both VM virtualization and container virtualization are used in conjunction, only the latter will be identified (unless
155 The following options are understood:
157 \fB\-c\fR, \fB\-\-container\fR
159 Only detects container virtualization (i\&.e\&. shared kernel virtualization)\&.
162 \fB\-v\fR, \fB\-\-vm\fR
164 Only detects VM virtualization (i\&.e\&. full hardware virtualization)\&.
167 \fB\-q\fR, \fB\-\-quiet\fR
169 Suppress output of the virtualization technology identifier\&.
172 \fB\-h\fR, \fB\-\-help\fR
174 Print a short help text and exit\&.
179 Print a short version string and exit\&.
183 If a virtualization technology is detected, 0 is returned, a non\-zero code otherwise\&.
187 \fBsystemd-nspawn\fR(1)