1LIBVIRTD(8)                 Virtualization Support                 LIBVIRTD(8)
2
3
4

NAME

6       libvirtd - libvirt management daemon
7

SYNOPSIS

9       libvirtd [OPTION]...
10

DESCRIPTION

12       The libvirtd program is the server side daemon component of the libvirt
13       virtualization management system.
14
15       This daemon runs on host servers and performs required management tasks
16       for  virtualized  guests.   This  includes activities such as starting,
17       stopping and migrating guests between  host  servers,  configuring  and
18       manipulating networking, and managing storage for use by guests.
19
20       The  libvirt  client  libraries and utilities connect to this daemon to
21       issue  tasks  and  collect  information  about  the  configuration  and
22       resources of the host system and guests.
23
24       By  default,  the  libvirtd daemon listens for requests on a local Unix
25       domain socket.  Using the -l | --listen command line option,  the  lib‐
26       virtd  daemon  can  be  instructed  to  additionally listen on a TCP/IP
27       socket.  The TCP/IP socket to use is defined in the libvirtd configura‐
28       tion file.
29
30       Restarting libvirtd does not impact running guests.  Guests continue to
31       operate and will be picked up automatically if their XML  configuration
32       has  been  defined.   Any  guests  whose XML configuration has not been
33       defined will be lost from the configuration.
34

SYSTEM SOCKET ACTIVATION

36       The libvirtd daemon is capable of starting in two modes.
37
38       In the traditional mode, it will create  and  listen  on  UNIX  sockets
39       itself.   If  the  --listen  parameter is given, it will also listen on
40       TCP/IP socket(s), according to the listen_tcp and listen_tls options in
41       /etc/libvirt/libvirtd.conf
42
43       In socket activation mode, it will rely on systemd to create and listen
44       on the UNIX, and optionally TCP/IP, sockets and pass them as pre-opened
45       file  descriptors. In this mode, it is not permitted to pass the --lis‐
46       ten parameter, and  most  of  the  socket  related  config  options  in
47       /etc/libvirt/libvirtd.conf  will  no  longer have any effect. To enable
48       TCP or TLS sockets use either
49
50          $ systemctl start libvirtd-tls.socket
51
52       Or
53
54          $ systemctl start libvirtd-tcp.socket
55
56       Socket activation mode is generally the default when running on a  host
57       OS that uses systemd. To revert to the traditional mode, all the socket
58       unit files must be masked:
59
60          $ systemctl mask libvirtd.socket libvirtd-ro.socket \
61             libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket
62

OPTIONS

64       -h, --help
65
66       Display command line help usage then exit.
67
68       -d, --daemon
69
70       Run as a daemon & write PID file.
71
72       -f, --config *FILE*
73
74       Use this configuration file, overriding the default value.
75
76       -l, --listen
77
78       Listen for TCP/IP connections. This should not be set if using  systemd
79       socket  activation.  Instead  activate  the libvirtd-tls.socket or lib‐
80       virtd-tcp.socket unit files.
81
82       -p, --pid-file *FILE*
83
84       Use this name for the PID file, overriding the default value.
85
86       -t, --timeout *SECONDS*
87
88       Exit after timeout period (in seconds), provided there are neither  any
89       client connections nor any running domains.
90
91       -v, --verbose
92
93       Enable output of verbose messages.
94
95       --version
96
97       Display version information then exit.
98

SIGNALS

100       On receipt of SIGHUP libvirtd will reload its configuration.
101

FILES

103   When run as root
104       · /etc/libvirt/libvirtd.conf
105
106       The  default  configuration file used by libvirtd, unless overridden on
107       the command line using the -f | --config option.
108
109       · /run/libvirt/libvirt-sock
110
111       · /run/libvirt/libvirt-sock-ro
112
113       The sockets libvirtd will use.
114
115       · /etc/pki/CA/cacert.pem
116
117       The TLS Certificate Authority certificate libvirtd will use.
118
119       · /etc/pki/libvirt/servercert.pem
120
121       The TLS Server certificate libvirtd will use.
122
123       · /etc/pki/libvirt/private/serverkey.pem
124
125       The TLS Server private key libvirtd will use.
126
127       · /run/libvirtd.pid
128
129       The PID file to use, unless overridden by the -p | --pid-file option.
130
131   When run as non-root
132       · $XDG_CONFIG_HOME/libvirt/libvirtd.conf
133
134       The default configuration file used by libvirtd, unless  overridden  on
135       the command line using the -f``|--config`` option.
136
137       · $XDG_RUNTIME_DIR/libvirt/libvirt-sock
138
139       The socket libvirtd will use.
140
141       · $HOME/.pki/libvirt/cacert.pem
142
143       The TLS Certificate Authority certificate libvirtd will use.
144
145       · $HOME/.pki/libvirt/servercert.pem
146
147       The TLS Server certificate libvirtd will use.
148
149       · $HOME/.pki/libvirt/serverkey.pem
150
151       The TLS Server private key libvirtd will use.
152
153       · $XDG_RUNTIME_DIR/libvirt/libvirtd.pid
154
155       The PID file to use, unless overridden by the -p``|--pid-file`` option.
156
157       If  $XDG_CONFIG_HOME  is not set in your environment, libvirtd will use
158       $HOME/.config
159
160       If $XDG_RUNTIME_DIR is not set in your environment, libvirtd  will  use
161       $HOME/.cache
162

EXAMPLES

164       To retrieve the version of libvirtd:
165
166          # libvirtd --version
167          libvirtd (libvirt) 0.8.2
168
169       To start libvirtd, instructing it to daemonize and create a PID file:
170
171          # libvirtd -d
172          # ls -la /run/libvirtd.pid
173          -rw-r--r-- 1 root root 6 Jul  9 02:40 /run/libvirtd.pid
174

BUGS

176       Please report all bugs you discover.  This should be done via either:
177
178       1. the mailing list
179
180          https://libvirt.org/contact.html
181
182       2. the bug tracker
183
184          https://libvirt.org/bugs.html
185
186       Alternatively,  you may report bugs to your software distributor / ven‐
187       dor.
188

AUTHORS

190       Please refer to the AUTHORS file distributed with libvirt.
191
193       Copyright (C) 2006-2012 Red Hat, Inc., and the authors  listed  in  the
194       libvirt AUTHORS file.
195

LICENSE

197       libvirtd is distributed under the terms of the GNU LGPL v2.1+.  This is
198       free software; see the source for copying conditions. There is NO  war‐
199       ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
200

SEE ALSO

202       virsh(1),     virt-install(1),    virt-xml-validate(1),    virt-top(1),
203       virt-df(1), https://www.libvirt.org/
204
205
206
207
208                                                                   LIBVIRTD(8)
Impressum