]> git.proxmox.com Git - systemd.git/blame - man/systemd-detect-virt.1
Imported Upstream version 219
[systemd.git] / man / systemd-detect-virt.1
CommitLineData
14228c0d 1'\" t
e735f4d4 2.TH "SYSTEMD\-DETECT\-VIRT" "1" "" "systemd 219" "systemd-detect-virt"
14228c0d
MB
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.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10.ie \n(.g .ds Aq \(aq
11.el .ds Aq '
12.\" -----------------------------------------------------------------
13.\" * set default formatting
14.\" -----------------------------------------------------------------
15.\" disable hyphenation
16.nh
17.\" disable justification (adjust text to left margin only)
18.ad l
19.\" -----------------------------------------------------------------
20.\" * MAIN CONTENT STARTS HERE *
21.\" -----------------------------------------------------------------
22.SH "NAME"
23systemd-detect-virt \- Detect execution in a virtualized environment
24.SH "SYNOPSIS"
25.HP \w'\fBsystemd\-detect\-virt\ \fR\fB[OPTIONS...]\fR\ 'u
26\fBsystemd\-detect\-virt \fR\fB[OPTIONS...]\fR
27.SH "DESCRIPTION"
28.PP
29\fBsystemd\-detect\-virt\fR
30detects execution in a virtualized environment\&. It identifies the virtualization technology and can distinguish full VM virtualization from container virtualization\&.
5eef597e
MP
31systemd\-detect\-virt
32exits 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
33\fB\-\-container\fR
34and
35\fB\-\-vm\fR
36can be used to limit what types of virtualization are detected\&.
14228c0d
MB
37.PP
38When executed without
39\fB\-\-quiet\fR
40will print a short identifier for the detected virtualization technology\&. The following technologies are currently identified:
5eef597e
MP
41.sp
42.it 1 an-trap
43.nr an-no-space-flag 1
44.nr an-break-flag 1
45.br
46.B Table\ \&1.\ \&Known virtualization technologies (both VM, i.e. full hardware virtualization, and container, i.e. shared kernel virtualization)
47.TS
48allbox tab(:);
49lB lB lB.
50T{
51Type
52T}:T{
53ID
54T}:T{
55Product
56T}
57.T&
58l l l
59^ l l
60^ l l
61^ l l
62^ l l
63^ l l
64^ l l
65^ l l
66^ l l
67l l l
68^ l l
69^ l l
70^ l l
71^ l l
72^.
73T{
74VM
75T}:T{
76\fIqemu\fR
77T}:T{
78QEMU software virtualization
79T}
80:T{
81\fIkvm\fR
82T}:T{
83Linux KVM kernel virtual machine
84T}
85:T{
86\fIzvm\fR
87T}:T{
88s390 z/VM
89T}
90:T{
91\fIvmware\fR
92T}:T{
93VMware Workstation or Server, and related products
94T}
95:T{
96\fImicrosoft\fR
97T}:T{
98Hyper\-V, also known as Viridian or Windows Server Virtualization
99T}
100:T{
101\fIoracle\fR
102T}:T{
103Oracle VM VirtualBox (historically marketed by innotek and Sun Microsystems)
104T}
105:T{
106\fIxen\fR
107T}:T{
108Xen hypervisor (only domU, not dom0)
109T}
110:T{
111\fIbochs\fR
112T}:T{
113Bochs Emulator
114T}
115:T{
116\fIuml\fR
117T}:T{
118User\-mode Linux
119T}
120T{
121container
122T}:T{
123\fIopenvz\fR
124T}:T{
125OpenVZ/Virtuozzo
126T}
127:T{
128\fIlxc\fR
129T}:T{
130Linux container implementation by LXC
131T}
132:T{
133\fIlxc\-libvirt\fR
134T}:T{
135Linux container implementation by libvirt
136T}
137:T{
138\fIsystemd\-nspawn\fR
139T}:T{
140systemd\*(Aqs minimal container implementation, see \fBsystemd-nspawn\fR(1)
141T}
142:T{
143\fIdocker\fR
144T}:T{
145Docker container manager
146T}
147.TE
148.sp 1
14228c0d
MB
149.PP
150If 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
151\fB\-\-vm\fR
152is passed)\&.
153.SH "OPTIONS"
154.PP
155The following options are understood:
156.PP
14228c0d
MB
157\fB\-c\fR, \fB\-\-container\fR
158.RS 4
159Only detects container virtualization (i\&.e\&. shared kernel virtualization)\&.
160.RE
161.PP
162\fB\-v\fR, \fB\-\-vm\fR
163.RS 4
164Only detects VM virtualization (i\&.e\&. full hardware virtualization)\&.
165.RE
166.PP
167\fB\-q\fR, \fB\-\-quiet\fR
168.RS 4
169Suppress output of the virtualization technology identifier\&.
170.RE
60f067b4
JS
171.PP
172\fB\-h\fR, \fB\-\-help\fR
173.RS 4
174Print a short help text and exit\&.
175.RE
176.PP
177\fB\-\-version\fR
178.RS 4
179Print a short version string and exit\&.
180.RE
14228c0d
MB
181.SH "EXIT STATUS"
182.PP
183If a virtualization technology is detected, 0 is returned, a non\-zero code otherwise\&.
184.SH "SEE ALSO"
185.PP
5eef597e
MP
186\fBsystemd\fR(1),
187\fBsystemd-nspawn\fR(1)