From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1662732385; cv=none; d=zohomail.com; s=zohoarc; b=hdPD+BBEBhmYJ+15UZUQq/9KaYjLb8+pJTMU5bgSg42LvJcqlJY9+muLVYpsoThLyAkKrZfDc7gKHxMw+skw2/GVecCt7+1JzmAZg38Ozu9+r3suJr4sb1dfpzWadCdG4Fi+6f2Tv+1LB9nTPy8VDFGJPi/PETsviGBjBSWC2rU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732385; 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=21ogZA+2MLkcxqr8gKBOO7Y7oqfmDFnat5sQ1xURu4A=; b=KbwFBIdiTSFv5CmBgm70x4y3g6TDmit+YGgafpusMRQ1A5tyf1jR5EHRpaAFruAj70BIRmz/OCEhH7Lu9fKRciOfibxftKDoAExffeQoT1Nj30uIDwFTbJaXxXfkNa4OnG0iJamKawV396R64eSPzCrTtR8i63w6N4sP4A4jgS0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1662732385396942.1210742193383; Fri, 9 Sep 2022 07:06:25 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-306-HSVDHouqP96YVdbRw_ASfQ-1; Fri, 09 Sep 2022 10:06:20 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 065611C05AC0; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA7A3492C3B; Fri, 9 Sep 2022 14:06:17 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1A9CD1946A65; Fri, 9 Sep 2022 14:06:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 8AB8E1946A41 for ; Fri, 9 Sep 2022 14:06:15 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6FA21112131B; Fri, 9 Sep 2022 14:06:15 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB3551121315 for ; Fri, 9 Sep 2022 14:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732384; 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=21ogZA+2MLkcxqr8gKBOO7Y7oqfmDFnat5sQ1xURu4A=; b=LUDwCZ/PuCEe/sZ1w5oz6wCgIUZ9pAMPbew4eLPRQKYP80Ks15iQkX1VF+oZmB0KGJeeDm ix9QxV9xI/TBebNF6oYzlDy5o5yTZHGiOkYkuvTNVIKT2v3RBKka2APvbf1+5bYHmtKegi lYom3iRlqq2APLFn1RpVtu3oln/AnZk= X-MC-Unique: HSVDHouqP96YVdbRw_ASfQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 1/6] docs: compiling: Add a paragraph suggesting installation from repository Date: Fri, 9 Sep 2022 16:06:07 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732386687100001 Content-Type: text/plain; charset="utf-8" Users should be encouraged to install libvirt from the distro's repos in the first place. Also encourage distro-specific ways to get newer versions, rather than building from source manually. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/compiling.rst b/docs/compiling.rst index 7746f20bed..25dd0f4265 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -4,6 +4,26 @@ libvirt Installation .. contents:: +Installing from distribution repositories +----------------------------------------- + +This is the recommended option to install libvirt. Libvirt is present in t= he +package repositories of all major distributions. Installing a package from= the +package manager ensures that it's properly compiled, installed, and updated +during the lifecycle of the distribution. + +For users who wish to use the most recent version, certain distributions a= lso +allow installing the most recent versions of virtualization packages: + + **Fedora** + + Refer to https://fedoraproject.org/wiki/Virtualization_Preview_Reposit= ory + + **Gentoo** + + The ``app-emulation/libvirt`` is regularly updated, but newest versions= are + usually marked as testing by the ``~*`` keyword. + Compiling a release tarball --------------------------- --=20 2.37.1 From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1662732432; cv=none; d=zohomail.com; s=zohoarc; b=bxkGvqOw9PoUCwG/sYm7HpjUc6Za9WoBsyAY5JiB2IWy7S4I1AzYxLpLNQYuuq8bcYgp3fFzJujJQTKxkpbeZ1kNOYaI6+eJlZiREvMJmVUBZe6DJe8OX+D0+PY3tOjklCfSgNdJq54H0BwertogDSFWNuNqVt3EdL385TlMiTU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732432; 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=7TkQB9GEJ+RyYoPHjlRrtE5PA8FvKJhamW3VxYrsrqU=; b=n60W15P3OFhf4S9JklS9QAsTT5ltGI7l8pjkInuzeReAv5jAfGDPiomBjl//vAglBvb8rSc01xWaJlIh5bHSMYyjwV68KVbtzfx5JI/6nkV5IqQhpbh26T14PfeTatn3Ms+eJETl3ValNQGTSTsaX3hpT3aGvYmUBLq8Fb0veyk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1662732432135172.78458016366062; Fri, 9 Sep 2022 07:07:12 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-442-592DxOCKPGOAT6VJtQRfeg-1; Fri, 09 Sep 2022 10:06:29 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4546C1C05ACF; Fri, 9 Sep 2022 14:06:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2DAD04011A3E; Fri, 9 Sep 2022 14:06:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 996361946A62; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 74D961946A41 for ; Fri, 9 Sep 2022 14:06:16 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 57175112131B; Fri, 9 Sep 2022 14:06:16 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id C3A381121315 for ; Fri, 9 Sep 2022 14:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732430; 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=7TkQB9GEJ+RyYoPHjlRrtE5PA8FvKJhamW3VxYrsrqU=; b=gtINEasQ0cwCRLnM5NDXHvydpCX8xlbl4pg/vFsIR60sv/lvQTQ1wGNhCwaQvPaAzFQINb cuC+iPrEkdyNaE/pZQSKu7zhKyT0oF/KKTMUDl0pZDBp91bIjEtkrmPYpOjBiKBI3hFeNF mRs5ZFUBBbWzKtA5IpD4xtw9tDy26kQ= X-MC-Unique: 592DxOCKPGOAT6VJtQRfeg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/6] docs: compiling: Section off block on how to run from build directory Date: Fri, 9 Sep 2022 16:06:08 +0200 Message-Id: <73687bf7d3525ea22dc13553d23951fd0a1bee63.1662732168.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732433632100001 Content-Type: text/plain; charset="utf-8" Running from build directory isn't strictly tied to the git-checkout build so make a new section for it. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/compiling.rst b/docs/compiling.rst index 25dd0f4265..fc5556738d 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -98,10 +98,12 @@ normal OS vendor prefixes, use $ ninja -C build -When doing this for day-to-day development purposes, it is recommended -not to install over the OS vendor provided binaries. Instead simply run -libvirt directly from the source tree. For example to run a privileged -libvirtd instance +Running compiled binaries from build directory +---------------------------------------------- + +For testing or development purposes it's usually not necessary to install = the +built binaries into your system. Instead simply run libvirt directly from = the +source tree. For example to run a privileged libvirtd instance :: --=20 2.37.1 From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1662732387; cv=none; d=zohomail.com; s=zohoarc; b=W44jzg57aQ15HDxkbG5JmCU0g3KQ8Wxz24NqMxx5Oe+nm5SZ67jthzC0LMGS0x8aak/gHaSmI8YB+f+JWYYptjPVAuT0PDQcSVguSKrwHFTYNU5zpkoucw2zWiMUKD06h+1OtXODrJiuhr9pD9qo63o7mEe91zX0FgnbCU2E1fM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732387; 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=AKxlZy4HfZBbPIvKOJ4Gus2sh1aexMPPp9iXwm23Gp0=; b=cporsvkxyZb2bVCRKr+4hZY4fPjEN7tHv4KfOo+nkHWyBS0bXRzf+x0eqNjw/eF6gGnPW3itL57VAMELIllwAOxfZJiQk4NdLHSGr4q539NXBxFH0Y+Wd/cbUHClWJ7bBBGPP14x5uh/DQSprM9vkPc+iCaKzpvGUNAX/SuxF58= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1662732387068278.7322730325128; Fri, 9 Sep 2022 07:06:27 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-578-ILQufEOfNR2DY9SWJyUMFg-1; Fri, 09 Sep 2022 10:06:21 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9C2E880A0C2; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 77285C15BB3; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 585791946A48; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5858B1946A53 for ; Fri, 9 Sep 2022 14:06:17 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 4B5E1112131E; Fri, 9 Sep 2022 14:06:17 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id B7E091121315 for ; Fri, 9 Sep 2022 14:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732385; 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=AKxlZy4HfZBbPIvKOJ4Gus2sh1aexMPPp9iXwm23Gp0=; b=SHmvEkU0JeqcI/lpD++IgEXVR7d660d0+m1w5GGmc7Qgcg7hupv+aRCvvx8qiBY9z9DOlK 4F9Pw6x8SAvJRI0GOy7yeJD7vYhPEHv2d+XFuXOGewaCqIDdYV7frqB9I7mXxr4MqUC/CL Lccp4MNEVCHXNGpXAGxr8+i/zUjXo7I= X-MC-Unique: ILQufEOfNR2DY9SWJyUMFg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 3/6] docs: compiling: Separate information on how to install libvirt and add disclaimer Date: Fri, 9 Sep 2022 16:06:09 +0200 Message-Id: <475a1713ce86c5784b9d4130dcd2031341322bae.1662732168.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732388762100003 Content-Type: text/plain; charset="utf-8" Create a section for instructions on how to install the built binaries rather than mentioning it multiple times. Add a note that installing over your distro-provided packages will most likely break your instalation. Signed-off-by: Peter Krempa Reviewed-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/docs/compiling.rst b/docs/compiling.rst index fc5556738d..c167fd238f 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -52,23 +52,12 @@ To get the complete list of the options run the followi= ng command: When you have determined which options you want to use (if any), continue the process. -Note the use of **sudo** with the *ninja install* command below. Using -sudo is only required when installing to a location your user does not -have write access to. Installing to a system location is a good example -of this. - -If you are installing to a location that your user *does* have write -access to, then you can instead run the *ninja install* command without -putting **sudo** before it. - :: $ meson build [possible options] $ ninja -C build - $ sudo ninja -C build install -At this point you **may** have to run ldconfig or a similar utility to -update your list of installed shared libs. +The ``build`` directory now contains the built binaries. Building from a GIT checkout ---------------------------- @@ -85,7 +74,6 @@ can be run: $ meson build --prefix=3D$HOME/usr $ ninja -C build - $ sudo ninja -C build install Be aware though, that binaries built with a custom prefix will not interoperate with OS vendor provided binaries, since the UNIX socket @@ -97,6 +85,7 @@ normal OS vendor prefixes, use $ meson build -Dsystem=3Dtrue $ ninja -C build +The ``build`` directory now contains the built binaries. Running compiled binaries from build directory ---------------------------------------------- @@ -120,3 +109,32 @@ It is also possible to run virsh directly from the bui= ld tree using the $ pwd /home/to/your/checkout/build $ ./run ./tools/virsh .... + +Installing compiled binaries +---------------------------- + +**Important:** Manual installation of libvirt is generally not recommended= and +you should prefer installation from package repository or from manually bu= ild +packages which are then installed using the package manager. Overwriting an +installation of libvirt from the package manager by a manually compilled +installation may not work properly. + +Installing of the compiled binaries into the appropriate location (based on +how the build was configured) is done by the following command: + +:: + + $ sudo ninja -C build install + +Note the use of **sudo** with the *ninja install* comman. Using +sudo is only required when installing to a location your user does not +have write access to. Installing to a system location is a good example +of this. + +If you are installing to a location that your user *does* have write +access to, then you can instead run the *ninja install* command without +putting **sudo** before it. + +After installation you you **may** have to run ``ldconfig`` or a similar +utility to update your list of installed shared libs, or adjust the paths = where +the system looks for binaries and shared libraries. --=20 2.37.1 From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1662732426; cv=none; d=zohomail.com; s=zohoarc; b=NGPdELCeMsMvm8gqI6sGkGacJZjI64C+1pXU9/Gav8Kjl4+LZaT4QqvOIZ65mOEYE49yJBnoxsafbu6RZMr6vaxuRGQQStF41yOY+mb4GFxpoRhb5wxWi2KGvW4X/hRAKKvq2ylOTsJcddD+n9qDYQvGWF5dy0hRAD3TMuo5frY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732426; 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=TTVcXDiLKiKXjcHfmbwbWtF1e3+F3CBu3ODatTe3ry4=; b=Mn3pVjYQHvSFgWrOI17zIjCBhY1iNhGO1lkjcLCe39glyeeIKI6rxoSoDpSUSVCAJtaedxscD57m4MZx9aYeYjGlxAECipZBglgCZePTSvgYOJxrwl0I66cF9KicoJ7j3mStS7Iv3j9NQxrik5b4lsc3bQIQcNbGlQner2wnbfo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1662732426417607.0883075915388; Fri, 9 Sep 2022 07:07:06 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-zL-6BRlrOlqUZyKKIWmVlw-1; Fri, 09 Sep 2022 10:06:32 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D07C7823F18; Fri, 9 Sep 2022 14:06:24 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB9D62026D4C; Fri, 9 Sep 2022 14:06:24 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id AF2251946A42; Fri, 9 Sep 2022 14:06:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 4FCFD1946A41 for ; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 33722112131E; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id A0B89112131B for ; Fri, 9 Sep 2022 14:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732425; 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=TTVcXDiLKiKXjcHfmbwbWtF1e3+F3CBu3ODatTe3ry4=; b=E2L4DRDMkIuUeCM6FmBOBmUjIztVQaib5ka7snto3UwVfbL6Hms2Ik4O7o3YvOULfx0y6d HsltQ3WX5+w0mbmcR4Eq+iZLOxAchGn/9LaiNGXwIao5DKB7//oD/7UYGiwkvkCMNCXfMu rXM+Q8xw5udPZWBP+vtuI41KcpbChHs= X-MC-Unique: zL-6BRlrOlqUZyKKIWmVlw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 4/6] docs: compiling: Separate 'prepare', 'configure', and 'build' steps Date: Fri, 9 Sep 2022 16:06:10 +0200 Message-Id: <835279c5015ef8fa31d6ef6f459e497f6eb319b3.1662732168.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732427650100001 Content-Type: text/plain; charset="utf-8" Only the preparation of sources differs between a build from a git checkout vs a build from tarball. Restructure the docs to outline the difference and combine information on how to configure libvirt. Most notably the suggestion to use '-Dsystem=3Dtrue' was present only for the steps to build a git checkout. Suggest also running the testsuite as part of the build step. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 86 +++++++++++++++++++++++++++++----------------- 1 file changed, 54 insertions(+), 32 deletions(-) diff --git a/docs/compiling.rst b/docs/compiling.rst index c167fd238f..1969b9b0b0 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -24,24 +24,47 @@ allow installing the most recent versions of virtualiza= tion packages: The ``app-emulation/libvirt`` is regularly updated, but newest versions= are usually marked as testing by the ``~*`` keyword. -Compiling a release tarball ---------------------------- +Preparing sources +----------------- -libvirt uses the standard setup/build/install steps and mandates that -the build directory is different from the source directory: +Libvirt can be built both from release tarballs and from a git checkout us= ing +the same steps once the source code is prepared. Note that the build system +requires that the build directory is separate from the top level source +directory. + +By default further steps will build libvirt inside a subdirectory of the s= ource +tree named ``build``. + +Refer to the `downloads page `__ for official tarballs and= the +git repository. + +Unpacking a source tarball +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Download a source tarball of the version you want to compile and unpack it +using the following commands: :: $ xz -dc libvirt-x.x.x.tar.xz | tar xvf - $ cd libvirt-x.x.x - $ meson build -The *meson* script can be given options to change its default behaviour. +Git checkout +~~~~~~~~~~~~ -**Note:** Please ensure that you have the appropriate minimal ``meson`` ve= rsion -installed in your build environment. The minimal version for a specific pa= ckage -can be checked in the top level ``meson.build`` file in the ``meson_versio= n`` -field. +A git checkout/clone is already in correct state for next steps. Just chan= ge +your working directory to the checkout. + +Configuring the project +----------------------- + +The libvirt build process uses the **Meson** build system. To configure fo= r a +build use the following command. Note that the ``build`` argument is the n= ame +of the build directory which will be created. + +:: + + $ meson build [options] To get the complete list of the options run the following command: @@ -49,43 +72,42 @@ To get the complete list of the options run the followi= ng command: $ meson configure -When you have determined which options you want to use (if any), -continue the process. +Be aware that by default the build is configured with a local ``prefix`` p= ath +which will not interoperate with OS vendor provided binaries, since the UN= IX +socket paths will all be different. To produce a build that is compatible = with +normal OS vendor prefixes, use :: - $ meson build [possible options] - $ ninja -C build + $ meson build -Dsystem=3Dtrue -The ``build`` directory now contains the built binaries. +By default when the ``meson`` is run from within a GIT checkout, it will t= urn +on -Werror for builds. This can be disabled with --werror=3Dfalse, but thi= s is +not recommended. + +**Note:** Please ensure that you have the appropriate minimal ``meson`` ve= rsion +installed in your build environment. The minimal version for a specific pa= ckage +can be checked in the top level ``meson.build`` file in the ``meson_versio= n`` +field. -Building from a GIT checkout ----------------------------- -The libvirt build process uses Meson build system. By default when the -``meson`` is run from within a GIT checkout, it will turn on -Werror for -builds. This can be disabled with --werror=3Dfalse, but this is not -recommended. +Compiling the sources +--------------------- -To build & install libvirt to your home directory the following commands -can be run: +To build the configured project run (note that ``-C build`` is a path to t= he +build directory): :: - $ meson build --prefix=3D$HOME/usr $ ninja -C build -Be aware though, that binaries built with a custom prefix will not -interoperate with OS vendor provided binaries, since the UNIX socket -paths will all be different. To produce a build that is compatible with -normal OS vendor prefixes, use +The ``build`` directory now contains the built binaries. -:: +Additionally you can also run the test suite: - $ meson build -Dsystem=3Dtrue - $ ninja -C build +:: -The ``build`` directory now contains the built binaries. + $ ninja -C build test Running compiled binaries from build directory ---------------------------------------------- --=20 2.37.1 From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1662732397; cv=none; d=zohomail.com; s=zohoarc; b=T+fA2ThAfNub1FOs4H2S/auFkQZOgvymtfdjLxHSlOsLOaC3GcxktlqI3B8+mFBVWYCe889I76DskkAFwI5OPsDSZxPoDIyqFeHBR30AH1LX4EdO4nYzhzgFjDGRKTX+L+5ubQyvC7alRrQT16ZjGGWQ8TxBcw1vxYyayXdp2jQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732397; 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=8tgDaaCXuz7lalc7Si5T7PNamsdvWypB2RIqG47SFgA=; b=AWGfQruFvdwH2leOmU0cPZyS1Ij6R6of3ABO2dmUldUwzS8yHtVQ1QCJc/Ct+N/ILQIFqxXjGYuT5wNZ+DB84eNLEb4njq3jU+iUPNjsWrMJUVY9YaHoai9rKvUg34UKlMgRTsk++a28nwAAuq/oXZrpwXima3FTMPbI2lo6UP0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1662732397556981.0431380737782; Fri, 9 Sep 2022 07:06:37 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-621-A7ufdWepMXmPWaaT1dGHxA-1; Fri, 09 Sep 2022 10:06:34 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2822A1818340; Fri, 9 Sep 2022 14:06:30 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1386B14152E0; Fri, 9 Sep 2022 14:06:30 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F0FEE1946A44; Fri, 9 Sep 2022 14:06:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 26BA71946A56 for ; Fri, 9 Sep 2022 14:06:19 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 176611121315; Fri, 9 Sep 2022 14:06:19 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 88B73112131B for ; Fri, 9 Sep 2022 14:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732396; 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=8tgDaaCXuz7lalc7Si5T7PNamsdvWypB2RIqG47SFgA=; b=TBLC8giTzGQvfjITAyXiq+dI1HQXeKeUI1hhmL3VgJE8JriuyIK7uvZtCtvc+DQ5dSiO+n fPY58x+5p9+h8ypIZGyMFdmYBVrJB/pNqWyqavNwTGXI5dt8YyCn01ySoEGUEOZJ6pVS2b RhnKVxSdbGe9HDlnVmAPRarSwH+tmhk= X-MC-Unique: A7ufdWepMXmPWaaT1dGHxA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 5/6] docs: compiling: Encourage force-enabling required functionality Date: Fri, 9 Sep 2022 16:06:11 +0200 Message-Id: <9c60648b28a4347ff19e7c4d82f0d1c3b79e78e2.1662732168.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732398909100001 Content-Type: text/plain; charset="utf-8" To prevent surprises when a build doesn't in fact contain the required functionality suggest that users force-enable required modules. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/compiling.rst b/docs/compiling.rst index 1969b9b0b0..1d06136ca6 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -81,11 +81,30 @@ normal OS vendor prefixes, use $ meson build -Dsystem=3Dtrue +Explicitly enabling required functionality +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +By default each module of functionality of libvirtd is optionally enabled, +meaning it will be enabled if the build environment contains the required +dependencies. + +To ensure that your build contains the required functionality it's recomme= nded +to explicitly enable given modules, in which case the configure step will = end +with an error if dependencies are not present. **Example:** to build the +libvirt project with support for the **qemu** driver use the following opt= ions: + +:: + + $ meson build -Dsystem=3Dtrue -Ddriver_qemu=3Denabled + +Notes: +~~~~~~ + By default when the ``meson`` is run from within a GIT checkout, it will t= urn on -Werror for builds. This can be disabled with --werror=3Dfalse, but thi= s is not recommended. -**Note:** Please ensure that you have the appropriate minimal ``meson`` ve= rsion +Please also ensure that you have the appropriate minimal ``meson`` version installed in your build environment. The minimal version for a specific pa= ckage can be checked in the top level ``meson.build`` file in the ``meson_versio= n`` field. --=20 2.37.1 From nobody Sun May 19 05:22:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1662732394; cv=none; d=zohomail.com; s=zohoarc; b=oKzgbXVPQEV/RMzfITxRmjglIGNd0PHydQXl2zVOzjF14kUFNpcivo8X/irgdXt81YHok6qM3agzEKwmOdeXB0nhmlkH7BbE89V6gPUo2aem4ZxZOy9WYdNDqwrbW9HAyG3nKt8os1fvxtZjj2kvbUAfT2h0GQFdKvXmdiMthwA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662732394; 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=cdgvV7KNcspZ6J6T52xG31MjGwpb0qlXPJv+mgG5xG0=; b=YS+j2nPNBizXD06OTnCnts/OuZu+ppRe5cXqojYNsqFSyeY6QGOG4jU+LiUaFRoaZat+WgLxQfJc5fzoER8eoZ75l4MzSPhMp0mzPwBgwIxd5Z6cV69PUoxkHljSIgx0rY0lofFyueRt6jrLIwGPZeE/aRx3Z8sOtU8GxIHkrkw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1662732394655681.2310719011451; Fri, 9 Sep 2022 07:06:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-122-DSBU2ZY0PrudP52iH1EmRQ-1; Fri, 09 Sep 2022 10:06:29 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0A753C1104C; Fri, 9 Sep 2022 14:06:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CECD492CA6; Fri, 9 Sep 2022 14:06:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id DFD1E1946A56; Fri, 9 Sep 2022 14:06:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0B3E91946A56 for ; Fri, 9 Sep 2022 14:06:20 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EF7631121315; Fri, 9 Sep 2022 14:06:19 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B448112131B for ; Fri, 9 Sep 2022 14:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732393; 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=cdgvV7KNcspZ6J6T52xG31MjGwpb0qlXPJv+mgG5xG0=; b=bLs/vDyo3WxZIWvbndQ2nRr8grDFzoRv2fPfngGCFnH8EQaybd4og5jkksGVlcQjOK+Mgm 3cFSR0UuqULOWiuLF3WlTBsDT/nXt4+79csUSNfusXkzPYbsKoXoDoqFo2blu8ZI5H9lgk MkkNnDQu8Ltx28Bip8k2U3jD4AHHYDk= X-MC-Unique: DSBU2ZY0PrudP52iH1EmRQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 6/6] docs: compiling: Add notes on starting compiled libvirt daemons Date: Fri, 9 Sep 2022 16:06:12 +0200 Message-Id: <0d668d7af9a086b2a01b94b0ab15769926bac75e.1662732168.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662732396802100001 Content-Type: text/plain; charset="utf-8" In the basic configuration with monolithic libvirtd users are required to also start virtlogd. Add a general note with a specific example hinting that this is needed. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/compiling.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/compiling.rst b/docs/compiling.rst index 1d06136ca6..0b8e2b328d 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -9,8 +9,8 @@ Installing from distribution repositories This is the recommended option to install libvirt. Libvirt is present in t= he package repositories of all major distributions. Installing a package from= the -package manager ensures that it's properly compiled, installed, and updated -during the lifecycle of the distribution. +package manager ensures that it's properly compiled, installed, started, a= nd +updated during the lifecycle of the distribution. For users who wish to use the most recent version, certain distributions a= lso allow installing the most recent versions of virtualization packages: @@ -151,6 +151,10 @@ It is also possible to run virsh directly from the bui= ld tree using the /home/to/your/checkout/build $ ./run ./tools/virsh .... +**Note:** The libvirt project provides `multiple daemons `__= and +the above steps may replace only some of them with the custom compiled ins= tances. +In most cases this should work but keep that fact in mind. + Installing compiled binaries ---------------------------- @@ -179,3 +183,8 @@ putting **sudo** before it. After installation you you **may** have to run ``ldconfig`` or a similar utility to update your list of installed shared libs, or adjust the paths = where the system looks for binaries and shared libraries. + +The libvirt project provides `multiple daemons `__ based on = your +configuration. You have to ensure that you start the appropriate processes= for +the freshly installed libvirt to be usable (e.g. even monolithic ``libvirt= d`` +requires in most configurations that ``virtlogd`` is started). --=20 2.37.1