Subversion Repositories configs

Rev

Rev 192 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# Master libvirt daemon configuration file
2
#
3
 
4
#################################################################
5
#
6
# Network connectivity controls
7
#
8
 
9
# Flag listening for secure TLS connections on the public TCP/IP port.
10
# NB, must pass the --listen flag to the libvirtd process for this to
11
# have any effect.
12
#
13
# This setting is not required or honoured if using systemd socket
14
# activation.
15
#
16
# It is necessary to setup a CA and issue server certificates before
17
# using this capability.
18
#
19
# This is enabled by default, uncomment this to disable it
20
#listen_tls = 0
21
 
22
# Listen for unencrypted TCP connections on the public TCP/IP port.
23
# NB, must pass the --listen flag to the libvirtd process for this to
24
# have any effect.
25
#
26
# This setting is not required or honoured if using systemd socket
27
# activation.
28
#
29
# Using the TCP socket requires SASL authentication by default. Only
30
# SASL mechanisms which support data encryption are allowed. This is
31
# DIGEST_MD5 and GSSAPI (Kerberos5)
32
#
33
# This is disabled by default, uncomment this to enable it.
34
#listen_tcp = 1
35
 
36
 
37
 
38
# Override the port for accepting secure TLS connections
39
# This can be a port number, or service name
40
#
41
# This setting is not required or honoured if using systemd socket
42
# activation with systemd version >= 227
43
#
44
#tls_port = "16514"
45
 
46
# Override the port for accepting insecure TCP connections
47
# This can be a port number, or service name
48
#
49
# This setting is not required or honoured if using systemd socket
50
# activation with systemd version >= 227
51
#
52
#tcp_port = "16509"
53
 
54
 
55
# Override the default configuration which binds to all network
56
# interfaces. This can be a numeric IPv4/6 address, or hostname
57
#
58
# This setting is not required or honoured if using systemd socket
59
# activation.
60
#
61
# If the libvirtd service is started in parallel with network
62
# startup (e.g. with systemd), binding to addresses other than
63
# the wildcards (0.0.0.0/::) might not be available yet.
64
#
65
#listen_addr = "192.168.0.1"
66
 
67
 
68
#################################################################
69
#
70
# UNIX socket access controls
71
#
72
 
73
# Set the UNIX domain socket group ownership. This can be used to
74
# allow a 'trusted' set of users access to management capabilities
75
# without becoming root.
76
#
77
# This setting is not required or honoured if using systemd socket
78
# activation.
79
#
80
# This is restricted to 'root' by default.
81
#unix_sock_group = "libvirt"
82
 
83
# Set the UNIX socket permissions for the R/O socket. This is used
84
# for monitoring VM status only
85
#
86
# This setting is not required or honoured if using systemd socket
87
# activation.
88
#
89
# Default allows any user. If setting group ownership, you may want to
90
# restrict this too.
91
#unix_sock_ro_perms = "0777"
92
 
93
# Set the UNIX socket permissions for the R/W socket. This is used
94
# for full management of VMs
95
#
96
# This setting is not required or honoured if using systemd socket
97
# activation.
98
#
99
# Default allows only root. If PolicyKit is enabled on the socket,
100
# the default will change to allow everyone (eg, 0777)
101
#
102
# If not using PolicyKit and setting group ownership for access
103
# control, then you may want to relax this too.
104
#unix_sock_rw_perms = "0770"
105
 
106
# Set the UNIX socket permissions for the admin interface socket.
107
#
108
# This setting is not required or honoured if using systemd socket
109
# activation.
110
#
111
# Default allows only owner (root), do not change it unless you are
112
# sure to whom you are exposing the access to.
113
#unix_sock_admin_perms = "0700"
114
 
115
# Set the name of the directory in which sockets will be found/created.
116
#
117
# This setting is not required or honoured if using systemd socket
118
# activation with systemd version >= 227
119
#
120
#unix_sock_dir = "/run/libvirt"
121
 
122
 
123
 
124
#################################################################
125
#
126
# Authentication.
127
#
204 - 128
# There are the following choices available:
129
#
192 - 130
#  - none: do not perform auth checks. If you can connect to the
131
#          socket you are allowed. This is suitable if there are
132
#          restrictions on connecting to the socket (eg, UNIX
133
#          socket permissions), or if there is a lower layer in
134
#          the network providing auth (eg, TLS/x509 certificates)
135
#
136
#  - sasl: use SASL infrastructure. The actual auth scheme is then
137
#          controlled from /etc/sasl2/libvirt.conf. For the TCP
138
#          socket only GSSAPI & DIGEST-MD5 mechanisms will be used.
139
#          For non-TCP or TLS sockets, any scheme is allowed.
140
#
141
#  - polkit: use PolicyKit to authenticate. This is only suitable
142
#            for use on the UNIX sockets. The default policy will
143
#            require a user to supply their own password to gain
144
#            full read/write access (aka sudo like), while anyone
145
#            is allowed read/only access.
146
#
204 - 147
 
192 - 148
# Set an authentication scheme for UNIX read-only sockets
204 - 149
#
192 - 150
# By default socket permissions allow anyone to connect
151
#
204 - 152
# If libvirt was compiled without support for 'polkit', then
153
# no access control checks are done, but libvirt still only
154
# allows execution of APIs which don't change state.
155
#
156
# If libvirt was compiled with support for 'polkit', then
157
# the libvirt socket will perform a check with polkit after
158
# connections. The default policy still allows any local
159
# user access.
160
#
161
# To restrict monitoring of domains you may wish to either
162
# enable 'sasl' here, or change the polkit policy definition.
163
#auth_unix_ro = "polkit"
192 - 164
 
204 - 165
# Set an authentication scheme for UNIX read-write sockets.
192 - 166
#
204 - 167
# If libvirt was compiled without support for 'polkit', then
168
# the systemd .socket files will use SocketMode=0600 by default
169
# thus only allowing root user to connect, and 'auth_unix_rw'
170
# will default to 'none'.
171
#
172
# If libvirt was compiled with support for 'polkit', then
173
# the systemd .socket files will use SocketMode=0666 which
174
# allows any user to connect and 'auth_unix_rw' will default
175
# to 'polkit'. If you disable use of 'polkit' here, then it
176
# is essential to change the systemd SocketMode parameter
177
# back to 0600, to avoid an insecure configuration.
178
#
179
#auth_unix_rw = "polkit"
192 - 180
 
181
# Change the authentication scheme for TCP sockets.
182
#
183
# If you don't enable SASL, then all TCP traffic is cleartext.
184
# Don't do this outside of a dev/test scenario. For real world
185
# use, always enable SASL and use the GSSAPI or DIGEST-MD5
186
# mechanism in /etc/sasl2/libvirt.conf
187
#auth_tcp = "sasl"
188
 
189
# Change the authentication scheme for TLS sockets.
190
#
191
# TLS sockets already have encryption provided by the TLS
192
# layer, and limited authentication is done by certificates
193
#
194
# It is possible to make use of any SASL authentication
195
# mechanism as well, by using 'sasl' for this option
196
#auth_tls = "none"
197
 
198
 
199
# Change the API access control scheme
200
#
201
# By default an authenticated user is allowed access
202
# to all APIs. Access drivers can place restrictions
203
# on this. By default the 'nop' driver is enabled,
204
# meaning no access control checks are done once a
205
# client has authenticated with libvirtd
206
#
207
#access_drivers = [ "polkit" ]
208
 
209
#################################################################
210
#
211
# TLS x509 certificate configuration
212
#
213
 
214
# Use of TLS requires that x509 certificates be issued. The default locations
215
# for the certificate files is as follows:
216
#
217
#   /etc/pki/CA/cacert.pem - The CA master certificate
218
#   /etc/pki/libvirt/servercert.pem - The server certificate signed by cacert.pem
219
#   /etc/pki/libvirt/private/serverkey.pem - The server private key
220
#
221
# It is possible to override the default locations by altering the 'key_file',
222
# 'cert_file', and 'ca_file' values and uncommenting them below.
223
#
224
# NB, overriding the default of one location requires uncommenting and
225
# possibly additionally overriding the other settings.
226
#
227
 
228
# Override the default server key file path
229
#
230
#key_file = "/etc/pki/libvirt/private/serverkey.pem"
231
 
232
# Override the default server certificate file path
233
#
234
#cert_file = "/etc/pki/libvirt/servercert.pem"
235
 
236
# Override the default CA certificate path
237
#
238
#ca_file = "/etc/pki/CA/cacert.pem"
239
 
240
# Specify a certificate revocation list.
241
#
242
# Defaults to not using a CRL, uncomment to enable it
243
#crl_file = "/etc/pki/CA/crl.pem"
244
 
245
 
246
 
247
#################################################################
248
#
249
# Authorization controls
250
#
251
 
252
 
253
# Flag to disable verification of our own server certificates
254
#
255
# When libvirtd starts it performs some sanity checks against
256
# its own certificates.
257
#
258
# Default is to always run sanity checks. Uncommenting this
259
# will disable sanity checks which is not a good idea
260
#tls_no_sanity_certificate = 1
261
 
262
# Flag to disable verification of client certificates
263
#
264
# Client certificate verification is the primary authentication mechanism.
265
# Any client which does not present a certificate signed by the CA
266
# will be rejected.
267
#
268
# Default is to always verify. Uncommenting this will disable
204 - 269
# verification.
192 - 270
#tls_no_verify_certificate = 1
271
 
272
 
204 - 273
# An access control list of allowed x509 Distinguished Names
192 - 274
# This list may contain wildcards such as
275
#
276
#    "C=GB,ST=London,L=London,O=Red Hat,CN=*"
277
#
278
# See the g_pattern_match function for the format of the wildcards:
279
#
280
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
281
#
282
# NB If this is an empty list, no client can connect, so comment out
283
# entirely rather than using empty list to disable these checks
284
#
285
# By default, no DN's are checked
286
#tls_allowed_dn_list = ["DN1", "DN2"]
287
 
288
 
289
# Override the compile time default TLS priority string. The
290
# default is usually "NORMAL" unless overridden at build time.
291
# Only set this is it is desired for libvirt to deviate from
292
# the global default settings.
293
#
294
#tls_priority="NORMAL"
295
 
296
 
204 - 297
# An access control list of allowed SASL usernames. The format for username
192 - 298
# depends on the SASL authentication mechanism. Kerberos usernames
299
# look like username@REALM
300
#
301
# This list may contain wildcards such as
302
#
303
#    "*@EXAMPLE.COM"
304
#
305
# See the g_pattern_match function for the format of the wildcards.
306
#
307
# https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html
308
#
309
# NB If this is an empty list, no client can connect, so comment out
310
# entirely rather than using empty list to disable these checks
311
#
312
# By default, no Username's are checked
313
#sasl_allowed_username_list = ["joe@EXAMPLE.COM", "fred@EXAMPLE.COM" ]
314
 
315
 
316
#################################################################
317
#
318
# Processing controls
319
#
320
 
321
# The maximum number of concurrent client connections to allow
322
# over all sockets combined.
323
#max_clients = 5000
324
 
325
# The maximum length of queue of connections waiting to be
326
# accepted by the daemon. Note, that some protocols supporting
327
# retransmission may obey this so that a later reattempt at
328
# connection succeeds.
329
#max_queued_clients = 1000
330
 
331
# The maximum length of queue of accepted but not yet
332
# authenticated clients. The default value is 20. Set this to
333
# zero to turn this feature off.
334
#max_anonymous_clients = 20
335
 
336
# The minimum limit sets the number of workers to start up
337
# initially. If the number of active clients exceeds this,
338
# then more threads are spawned, up to max_workers limit.
339
# Typically you'd want max_workers to equal maximum number
340
# of clients allowed
341
#min_workers = 5
342
#max_workers = 20
343
 
344
 
345
# The number of priority workers. If all workers from above
346
# pool are stuck, some calls marked as high priority
347
# (notably domainDestroy) can be executed in this pool.
348
#prio_workers = 5
349
 
350
# Limit on concurrent requests from a single client
351
# connection. To avoid one client monopolizing the server
352
# this should be a small fraction of the global max_workers
353
# parameter.
354
#max_client_requests = 5
355
 
356
# Same processing controls, but this time for the admin interface.
357
# For description of each option, be so kind to scroll few lines
358
# upwards.
359
 
360
#admin_min_workers = 1
361
#admin_max_workers = 5
362
#admin_max_clients = 5
363
#admin_max_queued_clients = 5
364
#admin_max_client_requests = 5
365
 
366
#################################################################
367
#
368
# Logging controls
369
#
370
 
371
# Logging level: 4 errors, 3 warnings, 2 information, 1 debug
372
# basically 1 will log everything possible
373
#
374
# WARNING: USE OF THIS IS STRONGLY DISCOURAGED.
375
#
376
# WARNING: It outputs too much information to practically read.
377
# WARNING: The "log_filters" setting is recommended instead.
378
#
379
# WARNING: Journald applies rate limiting of messages and so libvirt
380
# WARNING: will limit "log_level" to only allow values 3 or 4 if
381
# WARNING: journald is the current output.
382
#
383
# WARNING: USE OF THIS IS STRONGLY DISCOURAGED.
384
#log_level = 3
385
 
386
# Logging filters:
387
# A filter allows to select a different logging level for a given category
388
# of logs. The format for a filter is:
389
#
390
#    level:match
391
#
392
# where 'match' is a string which is matched against the category
393
# given in the VIR_LOG_INIT() at the top of each libvirt source
394
# file, e.g., "remote", "qemu", or "util.json". The 'match' in the
395
# filter matches using shell wildcard syntax (see 'man glob(7)').
396
# The 'match' is always treated as a substring match. IOW a match
397
# string 'foo' is equivalent to '*foo*'.
398
#
399
# 'level' is the minimal level where matching messages should
400
#  be logged:
401
#
402
#    1: DEBUG
403
#    2: INFO
404
#    3: WARNING
405
#    4: ERROR
406
#
407
# Multiple filters can be defined in a single @log_filters, they just need
408
# to be separated by spaces. Note that libvirt performs "first" match, i.e.
409
# if there are concurrent filters, the first one that matches will be applied,
410
# given the order in @log_filters.
411
#
412
# A typical need is to capture information from a hypervisor driver,
413
# public API entrypoints and some of the utility code. Some utility
414
# code is very verbose and is generally not desired. Taking the QEMU
415
# hypervisor as an example, a suitable filter string for debugging
416
# might be to turn off object, json & event logging, but enable the
417
# rest of the util code:
418
#
419
#log_filters="1:qemu 1:libvirt 4:object 4:json 4:event 1:util"
420
 
421
# Logging outputs:
422
# An output is one of the places to save logging information
423
# The format for an output can be:
424
#    level:stderr
425
#      output goes to stderr
426
#    level:syslog:name
427
#      use syslog for the output and use the given name as the ident
428
#    level:file:file_path
429
#      output to a file, with the given filepath
430
#    level:journald
431
#      output to journald logging system
432
# In all cases 'level' is the minimal priority, acting as a filter
433
#    1: DEBUG
434
#    2: INFO
435
#    3: WARNING
436
#    4: ERROR
437
#
438
# Multiple outputs can be defined, they just need to be separated by spaces.
439
# e.g. to log all warnings and errors to syslog under the libvirtd ident:
440
#log_outputs="3:syslog:libvirtd"
441
 
442
 
443
##################################################################
444
#
445
# Auditing
446
#
447
# This setting allows usage of the auditing subsystem to be altered:
448
#
449
#   audit_level == 0  -> disable all auditing
450
#   audit_level == 1  -> enable auditing, only if enabled on host (default)
451
#   audit_level == 2  -> enable auditing, and exit if disabled on host
452
#
453
#audit_level = 2
454
#
455
# If set to 1, then audit messages will also be sent
456
# via libvirt logging infrastructure. Defaults to 0
457
#
458
#audit_logging = 1
459
 
460
###################################################################
461
# UUID of the host:
462
# Host UUID is read from one of the sources specified in host_uuid_source.
463
#
464
# - 'smbios': fetch the UUID from 'dmidecode -s system-uuid'
465
# - 'machine-id': fetch the UUID from /etc/machine-id
466
#
467
# The host_uuid_source default is 'smbios'. If 'dmidecode' does not provide
468
# a valid UUID a temporary UUID will be generated.
469
#
470
# Another option is to specify host UUID in host_uuid.
471
#
472
# Keep the format of the example UUID below. UUID must not have all digits
473
# be the same.
474
 
475
# NB This default all-zeros UUID will not work. Replace
476
# it with the output of the 'uuidgen' command and then
477
# uncomment this entry
478
#host_uuid = "00000000-0000-0000-0000-000000000000"
479
#host_uuid_source = "smbios"
480
 
481
###################################################################
482
# Keepalive protocol:
483
# This allows libvirtd to detect broken client connections or even
484
# dead clients.  A keepalive message is sent to a client after
485
# keepalive_interval seconds of inactivity to check if the client is
486
# still responding; keepalive_count is a maximum number of keepalive
487
# messages that are allowed to be sent to the client without getting
488
# any response before the connection is considered broken.  In other
489
# words, the connection is automatically closed approximately after
490
# keepalive_interval * (keepalive_count + 1) seconds since the last
491
# message received from the client.  If keepalive_interval is set to
492
# -1, libvirtd will never send keepalive requests; however clients
493
# can still send them and the daemon will send responses.  When
494
# keepalive_count is set to 0, connections will be automatically
495
# closed after keepalive_interval seconds of inactivity without
496
# sending any keepalive messages.
497
#
498
#keepalive_interval = 5
499
#keepalive_count = 5
500
 
501
#
502
# These configuration options are no longer used.  There is no way to
503
# restrict such clients from connecting since they first need to
504
# connect in order to ask for keepalive.
505
#
506
#keepalive_required = 1
507
#admin_keepalive_required = 1
508
 
509
# Keepalive settings for the admin interface
510
#admin_keepalive_interval = 5
511
#admin_keepalive_count = 5
512
 
513
###################################################################
514
# Open vSwitch:
515
# This allows to specify a timeout for openvswitch calls made by
516
# libvirt. The ovs-vsctl utility is used for the configuration and
517
# its timeout option is set by default to 5 seconds to avoid
518
# potential infinite waits blocking libvirt.
519
#
520
#ovs_timeout = 5