From nobody Sun Feb 8 22:50:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615537483; cv=none; d=zohomail.com; s=zohoarc; b=IgKKGB9iA+I+UTK/PKyUAnsNgcPvORI0CkTHkhtJHzvwW9dKMkzyHONH/fQ2SLmt9Da2GF0QaRA7Ztfv9iTC8ToHMXeKH8GBHhVfRngfXbUPwV8ptgpSjTzJgVkyAJIYSVGKIYbKFegZhsEJ03njC3OMBL6axTqPOcwXYGPsJKE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615537483; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=w2Z0nhjXguN39V2pnt/GT0WT8umhrf35bR7ywK3Ebt0=; b=gLFgRmMWO+VYaPHt/0CQ3Y9lDWqH2iDmLuM24E4EvbUYGiczWkJnmNiYu0/2KyRAS1uyCH6+MHN0xuSdgtZyx75Oa2FOKECWGsEGb4FnqodqgQwrwRnfUgeu9bn2dOiMRKhuH9xrd7j6xXvz7B3Ae1mBUPF2paHUDNyoHE/0YBk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1615537483053394.69939504836054; Fri, 12 Mar 2021 00:24:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-453-5MYpfj_sMvaj65qtonPCqg-1; Fri, 12 Mar 2021 03:24:39 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E2000100C62A; Fri, 12 Mar 2021 08:24:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B235B60C5F; Fri, 12 Mar 2021 08:24:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 708E457DC2; Fri, 12 Mar 2021 08:24:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12C8OVjc006475 for ; Fri, 12 Mar 2021 03:24:31 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6B88B5D6BA; Fri, 12 Mar 2021 08:24:31 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id E3F8C5D6D7 for ; Fri, 12 Mar 2021 08:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615537481; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=w2Z0nhjXguN39V2pnt/GT0WT8umhrf35bR7ywK3Ebt0=; b=dQSu9NVVW0naung9+98u9X7CDus4+TlGPaOMVqro2IFHJ3/Rl86qY7l2Wg3RfzbkHW+ilV 9+Uf3vqEWyQBF7U8bEVz3OSNeQpActreki+ws/zaMcW1MSpH4TZnUc1GMEtW3Yng2cz2Yn tHFjpfZsea9t6uA6TUpLtlLqmqtUO4I= X-MC-Unique: 5MYpfj_sMvaj65qtonPCqg-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 3/5] docs: Document lxc.conf location Date: Fri, 12 Mar 2021 09:24:17 +0100 Message-Id: <326337555502d38cf7bcac685a41d157948295e5.1615537399.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This is similar to my earlier commit which documented qemu.conf locations. Luckily, the LXC driver has only the system connection and not session or embed one. Signed-off-by: Michal Privoznik --- docs/drvlxc.html.in | 10 ++++++++++ docs/manpages/libvirtd.rst | 16 +++++++++------- docs/manpages/virtlxcd.rst | 9 +++++++++ 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index b8a99272e6..23aae991a2 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -281,6 +281,16 @@ causes libvirt to activate the user namespace feature.

=20 =20 +

Location of configuration files

+ +

+The LXC driver comes with sane default values. However, during its +initialization it reads a configuration file which offers system +administrator to override some of that default. The file is located +under /etc/libvirt/lxc.conf +

+ +

Systemd Socket Activation Integration

=20

diff --git a/docs/manpages/libvirtd.rst b/docs/manpages/libvirtd.rst index 6545dc58d3..6466be3b8d 100644 --- a/docs/manpages/libvirtd.rst +++ b/docs/manpages/libvirtd.rst @@ -136,15 +136,17 @@ When run as *root* The default configuration file used by ``libvirtd``, unless overridden on = the command line using the ``-f`` | ``--config`` option. =20 -If QEMU driver is installed, then the following file is also read: +Depending on what driver is installed, then the following files are also r= ead: =20 -* ``@SYSCONFDIR@/libvirt/qemu.conf`` +* ``@SYSCONFDIR@/libvirt/qemu.conf`` for the QEMU driver +* ``@SYSCONFDIR@/libvirt/lxc.conf`` for the LXC driver =20 -This file contains various knobs and default values for virtual machines -created within QEMU driver, and offers a way to override the built in defa= ults, -for instance (but not limited to): paths to various supplementary binaries= , TLS -certificates location, graphical consoles configuration and others. Locati= on of -this file can't be overridden by any command line switch. +These files contain various knobs and default values for virtual machines +created within their respective drivers, and offer a way to override the b= uilt +in defaults, for instance (but not limited to): paths to various supplemen= tary +binaries, TLS certificates location, graphical consoles configuration and +others. Location of neither of these files can be overridden by any command +line switch. =20 * ``@RUNSTATEDIR@/libvirt/libvirt-sock`` * ``@RUNSTATEDIR@/libvirt/libvirt-sock-ro`` diff --git a/docs/manpages/virtlxcd.rst b/docs/manpages/virtlxcd.rst index b9aca6c857..2e9d8fd14b 100644 --- a/docs/manpages/virtlxcd.rst +++ b/docs/manpages/virtlxcd.rst @@ -111,6 +111,15 @@ a different user results in error. The default configuration file used by ``virtlxcd``, unless overridden on = the command line using the ``-f`` | ``--config`` option. =20 +In addition to the default configuration file, ``virtlxcd`` reads +configuration for the LXC driver from: + +* ``@SYSCONFDIR@/libvirt/lxc.conf`` + +This file contains various knobs and default values for virtual machines +created within LXC driver, and offers a way to override the built in defau= lts, +Location of this file can't be overridden by any command line switch. + * ``@RUNSTATEDIR@/libvirt/virtlxcd-sock`` * ``@RUNSTATEDIR@/libvirt/virtlxcd-sock-ro`` * ``@RUNSTATEDIR@/libvirt/virtlxcd-admin-sock`` --=20 2.26.2