From nobody Sat May 18 09:48:26 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=1650630225; cv=none; d=zohomail.com; s=zohoarc; b=G5uZbKZIU7UIOK3wX6b3r0GGJuVvVgjMxBOp3M9xtbeNHtA+fMUx5vJB8eYexz/ORUdNyUIrmQKSh7PCNLJB6bA1Sgw4eLKRCtFDOVn1hOCV13cDvAzlLBN8FahrDVRKUjtNteewr6LCJR5VuW+HJR7GH8pPxFxgqEq5aGIHnIg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630225; 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=yhgqUL6wXqdxys0HKyxUGSltO7efi1uxxrPlyP2H8b4=; b=QIsZDqDjSJEbqlcmMEOjjXsCL5ooSPEDDdmDvScbNaIrW5Xr/s2cI4vzLvMnZEa4SeuCiANju4Lv4e/xic3jjvveMHQo0bSV851EJZVxoi0VMciy/xDOe7bwG8a0Ypo7an6YdfT5tMyurxF1Pm+Z6tOy9Bg/wQBlj+ymYNmVSYw= 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 1650630225244512.9138525558816; Fri, 22 Apr 2022 05:23:45 -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-88-dmyzAMPcOhi5kv5ys_bE3g-1; Fri, 22 Apr 2022 08:23:41 -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 853E71014A68; Fri, 22 Apr 2022 12:23:37 +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 6D5414087D96; Fri, 22 Apr 2022 12:23:37 +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 1D1671940360; Fri, 22 Apr 2022 12:23:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id DBE0A1940355 for ; Fri, 22 Apr 2022 12:23:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id CB1B1416361; Fri, 22 Apr 2022 12:23:33 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4C113416171 for ; Fri, 22 Apr 2022 12:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630224; 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=yhgqUL6wXqdxys0HKyxUGSltO7efi1uxxrPlyP2H8b4=; b=VUOPSB5JhaRC6x6/dsSwC4SSHGrYIcUj8a9SgzGrYeFOS7AwZqkr879MDZaa33j2jtCDdy 3yWqt6J7PSLVLO0bkVeR7sQU1srlQqVl3Uy3nHLADl4j/7ybWqhM9TB3rOAsj+aYR5qEP4 M+R1Z9pJjsOLYsnzSQTYqRNee4Yc9ZU= X-MC-Unique: dmyzAMPcOhi5kv5ys_bE3g-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 01/15] docs: formatsecret: Correct link to storage volume XML definition Date: Fri, 22 Apr 2022 14:23:17 +0200 Message-Id: <2dd194c5c62091abd884a2960645554793e6cf8b.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630225912100001 Content-Type: text/plain; charset="utf-8" The anchor name was not fixed when the 'formatstorage' document was converted to rst. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/formatsecret.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/formatsecret.rst b/docs/formatsecret.rst index bb2217041a..03c2836843 100644 --- a/docs/formatsecret.rst +++ b/docs/formatsecret.rst @@ -63,10 +63,10 @@ See `Setting secret values in virsh`_ on how to set the= value of the secret using ``virsh secret-set-value``. The volume type secret can be supplied either in volume XML during creatio= n of a -`storage volume `__ in order to provide the -passphrase to encrypt the volume or in domain XML `disk -device `__ in order to provide the passph= rase -to decrypt the volume, :since:`since 2.1.0` . An example follows: +`storage volume `__ in order to pro= vide +the passphrase to encrypt the volume or in domain XML +`disk device `__ in order to provide the +passphrase to decrypt the volume, :since:`since 2.1.0` . An example follow= s: :: --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630227; cv=none; d=zohomail.com; s=zohoarc; b=LGcL7IA/GK+a+uGWGOsuktyg4nB0M94n2Oko/nV4UpoOdsFshou6eKaTlwT1biQ9/3//TX2D9fxDl7NTKnEWYSITUMX7aN2IAlWje6v56+ISutDTbVg7TFTx+2c2XCKF305KygPuCH16hKNWyQ4C24Lji+7aQ+D7sJbJcjpl+DI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630227; 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=8l0OT+Xy/2uoYRiVgrM5u6gj/5mj2Sv/DsuHuTTuGgM=; b=c77owuLCiWIssVSqQaixC5HwQ263MBjz2il0gPkAWTra9WrrHsBKxQDvMJqV5egUAkVuJuGCO2SpCfciSNru2+8irD6kuDtEZRWWKvcVCrk/zs9yPwNv2clMTR+VolRaxGkOKV0Wb9sf8JDiOhm4Rm/7l3tPGtsD/6LDC4Y4GTk= 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 1650630227670746.9588840495728; Fri, 22 Apr 2022 05:23:47 -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-15-7tpskncPNSSjJtoUFVqqfg-1; Fri, 22 Apr 2022 08:23:42 -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 3147283395E; Fri, 22 Apr 2022 12:23:38 +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 191B354CE44; Fri, 22 Apr 2022 12:23:38 +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 F059C194036E; Fri, 22 Apr 2022 12:23:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E7599194035F for ; Fri, 22 Apr 2022 12:23:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B911E416361; Fri, 22 Apr 2022 12:23:34 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3395D416171 for ; Fri, 22 Apr 2022 12:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630226; 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=8l0OT+Xy/2uoYRiVgrM5u6gj/5mj2Sv/DsuHuTTuGgM=; b=NveISr0dAZ41i7MoBuAlwRxq9CHRbmq2Jrt0OcEYhK7JSDUVrvzou0sbndT7+DKCDCanOT u6uNgWeayOqIYz2EgNoxxj7VxY8XU26DIjxcgW15E7wNRORodJMlUjY1hTD7WWZJ2KWDRR g9D0ffDLgEe/FzlOO0aNdPl87JioJJ0= X-MC-Unique: 7tpskncPNSSjJtoUFVqqfg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 02/15] Correct links to TLS certificate setup page Date: Fri, 22 Apr 2022 14:23:18 +0200 Message-Id: <49708a910a2ef44d2691dbe17320444403c23da0.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630227897100004 Content-Type: text/plain; charset="utf-8" When the setup of TLS certs was originally split out of 'docs/remote.html' ( df99aa311a33e87d4 ) links refering to it were not fixed. Adjust them to point to the correct document. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/drvesx.rst | 5 ++--- tools/virt-pki-validate.in | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/drvesx.rst b/docs/drvesx.rst index 9ef6b74161..81625d6f10 100644 --- a/docs/drvesx.rst +++ b/docs/drvesx.rst @@ -231,9 +231,8 @@ There are also other causes for connection problems tha= n those related to error: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No suc= h file or directory Don't let this error message confuse you. Setting up certificates as - described on the `remote transport - mechanism `__ page does not help, as t= his is - not a certificate related problem. + described on the `tls certificates `__ page does n= ot + help, as this is not a certificate related problem. To fix this problem you need to update your libvirt to 0.7.0 or newer. = You may also see this error when you use a libvirt version that contains th= e ESX diff --git a/tools/virt-pki-validate.in b/tools/virt-pki-validate.in index 2f7404bd94..7100eafb63 100644 --- a/tools/virt-pki-validate.in +++ b/tools/virt-pki-validate.in @@ -2,7 +2,7 @@ # # This shell script checks the TLS certificates and options needed # for the secure client/server support of libvirt as documented at -# https://libvirt.org/remote.html#Remote_certificates +# https://libvirt.org/kbase/tlscerts.html # # Copyright (C) 2009-2013 Red Hat, Inc. # @@ -166,7 +166,7 @@ if [ ! -f "$CA/cacert.pem" ] then echo the CA certificate $CA/cacert.pem is missing while it echo should be installed on both client and servers - echo "see https://libvirt.org/remote.html#Remote_TLS_CA" + echo "see https://libvirt.org/kbase/tlscerts.html#setting-up-a-certifi= cate-authority-ca" echo on how to install it exit 1 fi @@ -186,7 +186,7 @@ if [ "$ORG" =3D "" ] then echo the CA certificate $CA/cacert.pem does not define the organization echo it should probably regenerated - echo "see https://libvirt.org/remote.html#Remote_TLS_CA" + echo "see https://libvirt.org/kbase/tlscerts.html#setting-up-a-certifi= cate-authority-ca" echo on how to regenerate it exit 1 fi @@ -234,7 +234,7 @@ then else echo Did not find "$LIBVIRT/clientcert.pem" client certificate echo The machine cannot act as a client - echo "see https://libvirt.org/remote.html#Remote_TLS_client_certificat= es" + echo "see https://libvirt.org/kbase/tlscerts.html#issuing-client-certi= ficates" echo on how to regenerate it CLIENT=3D0 fi @@ -287,7 +287,7 @@ then else echo Did not find $LIBVIRT/servercert.pem server certificate echo The machine cannot act as a server - echo "see https://libvirt.org/remote.html#Remote_TLS_server_certificat= es" + echo "see https://libvirt.org/kbase/tlscerts.html#issuing-server-certi= ficates" echo on how to regenerate it SERVER=3D0 fi --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630246; cv=none; d=zohomail.com; s=zohoarc; b=b+ddoXLszlvBQbyNZ5X5ZSIWSDpY7dbLMg7cZA/NNTrFjGiyTUDboKg15/Fzhkb+TJghEPDm4u4tEb1LM8DjtMYCslwthtlBZMaIjS8xScJ6dCLzlLoNFCqQuPAEjCA8pTe6+gLwVQkIoV35+Djlc9zCSN1k9RLu10dDpsBP61U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630246; 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=/I6Jfm6DjPAknqpBhurQdiadzBYQqwOu1Wihnayn/Ds=; b=kld5x0S5p44TorHNWjiBZ3jpjv4Su1wHegXQpmpx8Spd4WWrgX9RRPDeIzLLlFpITLGJnF1u9dFrWXRFj67B7CtfIP9ZRujRwXs4x2vbWm323WvcKYNEuoJbzsB9ybJ7LvQlTCG4rBzJx4mEHfS4yOMPOjSuijcg62hfvekYiqE= 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 165063024639769.73681246981721; Fri, 22 Apr 2022 05:24: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-15-9xezwRdNMI6HgmjR-MiCGw-1; Fri, 22 Apr 2022 08:23:44 -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 D0FC31801DB0; Fri, 22 Apr 2022 12:23:38 +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 881BA15230A2; Fri, 22 Apr 2022 12:23:38 +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 47D631940356; Fri, 22 Apr 2022 12:23:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D3FA2194036D for ; Fri, 22 Apr 2022 12:23:35 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B110841617F; Fri, 22 Apr 2022 12:23:35 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 245D4572328 for ; Fri, 22 Apr 2022 12:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630245; 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=/I6Jfm6DjPAknqpBhurQdiadzBYQqwOu1Wihnayn/Ds=; b=SHOjqrxVuYcE8Wl05bVlOUTbK02QS9e94oWhZgt0Ofi5+Jk7ud3eQINfSz8aiiLYnQ+p2n dM1HLagoAa4TTqiS3B4EXZMd11b//TTQRSTpiLtxArqvvFwXojkgmNXPKIMeUTTaOVy9gT OD1jPSz7Pdyj5xaaMA7Uh95SR+2DdoY= X-MC-Unique: 9xezwRdNMI6HgmjR-MiCGw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 03/15] docs: storage: rename headers to remove duplicate names Date: Fri, 22 Apr 2022 14:23:19 +0200 Message-Id: <962f4d6a4c43902ffba2b72407b38a89b167af5c.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630248032100005 Content-Type: text/plain; charset="utf-8" From: Pavel Hrdina Signed-off-by: Pavel Hrdina Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/storage.html.in | 96 ++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/docs/storage.html.in b/docs/storage.html.in index b2cf343933..8fb2cec9bd 100644 --- a/docs/storage.html.in +++ b/docs/storage.html.in @@ -96,7 +96,7 @@ operation can be used to create it.

-

Example pool input definition

+

Example directory pool input definition

 <pool type=3D"dir">
   <name>virtimages</name>
@@ -105,12 +105,12 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid directory pool format types

The directory pool does not use the pool format type element.

-

Valid volume format types

+

Valid directory volume format types

One of the following options:

@@ -148,7 +148,7 @@ required.

-

Example pool input

+

Example filesystem pool input

 <pool type=3D"fs">
   <name>virtimages</name>
@@ -160,7 +160,7 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid filesystem pool format types

The filesystem pool supports the following formats:

@@ -207,7 +207,7 @@ -

Valid volume format types

+

Valid filesystem volume format types

The valid volume types are the same as for the directory pool type. @@ -224,7 +224,7 @@ protocol, which generally tries a mount via NFS first.

-

Example pool input

+

Example network filesystem pool input

 <pool type=3D"netfs">
   <name>virtimages</name>
@@ -238,7 +238,7 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid network filesystem pool format types

The network filesystem pool supports the following formats:

@@ -261,7 +261,7 @@ -

Valid volume format types

+

Valid network filesystem volume format types

The valid volume types are the same as for the directory pool type. @@ -278,7 +278,7 @@ of storage from the volume group.

-

Example pool input

+

Example logical pool input

 <pool type=3D"logical">
   <name>HostVG</name>
@@ -292,14 +292,14 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid logical pool format types

The logical volume pool supports only the lvm2 format, although not supplying a format value will result in automatic selection of thelvm2 format.

-

Valid volume format types

+

Valid logical volume format types

The logical volume pool does not use the volume format type element.

@@ -315,7 +315,7 @@ It will default to using dos as the pool source format.

-

Example pool input

+

Example disk pool input

 <pool type=3D"disk">
   <name>sda</name>
@@ -327,7 +327,7 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid disk pool format types

The disk volume pool accepts the following pool format types, repres= enting the common partition table types: @@ -374,7 +374,7 @@ in parted.

-

Valid volume format types

+

Valid disk volume format types

The disk volume pool accepts the following volume format types, repr= esenting the common partition entry types: @@ -423,7 +423,7 @@ on the same host will fail the duplicate source pool checks.

-

Example pool input

+

Example iSCSI pool input

 <pool type=3D"iscsi">
   <name>virtimages</name>
@@ -436,12 +436,12 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid iSCSI pool format types

The iSCSI volume pool does not use the pool format type element.

-

Valid volume format types

+

Valid iSCSI volume format types

The iSCSI volume pool does not use the volume format type element.

@@ -453,7 +453,7 @@ It requires a host, a path which is the target IQN, and an initiator= IQN.

-

Example pool input

+

Example iSCSI direct pool input

 <pool type=3D"iscsi-direct">
   <name>virtimages</name>
@@ -466,12 +466,12 @@
   </source>
 </pool>
-

Valid pool format types

+

Valid iSCSI direct pool format types

The iSCSI direct volume pool does not use the pool format type eleme= nt.

-

Valid volume format types

+

Valid iSCSI direct volume format types

The iSCSI direct volume pool does not use the volume format type ele= ment.

@@ -486,7 +486,7 @@ Since 0.6.2

-

Example pool input

+

Example SCSI pool input

 <pool type=3D"scsi">
   <name>virtimages</name>
@@ -498,12 +498,12 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid SCSI pool format types

The SCSI volume pool does not use the pool format type element.

-

Valid volume format types

+

Valid SCSI volume format types

The SCSI volume pool does not use the volume format type element.

@@ -522,7 +522,7 @@ Since 0.7.1

-

Example pool input

+

Example multipath pool input

 <pool type=3D"mpath">
   <name>virtimages</name>
@@ -531,12 +531,12 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid multipath pool format types

The Multipath volume pool does not use the pool format type element.

-

Valid volume format types

+

Valid multipath volume format types

The Multipath volume pool does not use the volume format type elemen= t.

@@ -562,7 +562,7 @@ Since 0.9.13

-

Example pool input

+

Example RBD pool input

 <pool type=3D"rbd">
   <name>myrbdpool</name>
@@ -577,7 +577,7 @@
   </source>
 </pool>
-

Example volume output

+

Example RBD volume output

 <volume>
   <name>myvol</name>
@@ -597,19 +597,19 @@
   </target>
 </volume>
-

Example disk attachment

+

Example RBD disk attachment

RBD images can be attached to QEMU guests when QEMU is built with RBD support. Information about attaching a RBD image to a guest can be found at format domain page.

-

Valid pool format types

+

Valid RBD pool format types

The RBD pool does not use the pool format type element.

-

Valid volume format types

+

Valid RBD volume format types

Only raw volumes are supported.

@@ -626,7 +626,7 @@ Since 0.9.13

-

Example pool input

+

Example Sheepdog pool input

 <pool type=3D"sheepdog">
   <name>mysheeppool</name>
@@ -636,7 +636,7 @@
   </source>
 </pool>
-

Example volume output

+

Example Sheepdog volume output

 <volume>
   <name>myvol</name>
@@ -656,19 +656,19 @@
   </target>
 </volume>
-

Example disk attachment

+

Example Sheepdog disk attachment

Sheepdog images can be attached to QEMU guests. Information about attaching a Sheepdog image to a guest can be found at the format domain page.

-

Valid pool format types

+

Valid Sheepdog pool format types

The Sheepdog pool does not use the pool format type element.

-

Valid volume format types

+

Valid Sheepdog volume format types

The Sheepdog pool does not use the volume format type element.

@@ -696,7 +696,7 @@ Since 1.2.0

-

Example pool input

+

Example Gluster pool input

A gluster volume corresponds to a libvirt storage pool. If a gluster volume could be mounted as mount -t glusterfs localhost:/volname /some/path, then the following example @@ -722,7 +722,7 @@ </source> </pool> -

Example volume output

+

Example Gluster volume output

Libvirt storage volumes associated with a gluster pool correspond to the files that can be found when mounting the gluster volume. The name is the path relative to @@ -741,19 +741,19 @@ <allocation unit=3D'bytes'>53687091200</allocation> </volume> -

Example disk attachment

+

Example Gluster disk attachment

Files within a gluster volume can be attached to QEMU guests. Information about attaching a Gluster image to a guest can be found at the format domain page.

-

Valid pool format types

+

Valid Gluster pool format types

The Gluster pool does not use the pool format type element.

-

Valid volume format types

+

Valid Gluster volume format types

The valid volume types are the same as for the directory pool type. @@ -777,7 +777,7 @@

Since 1.2.8

. -

Example pool input

+

Example ZFS pool input

 <pool type=3D"zfs">
   <name>myzfspool</name>
@@ -788,12 +788,12 @@
   </source>
 </pool>
-

Valid pool format types

+

Valid ZFS pool format types

The ZFS volume pool does not use the pool format type element.

-

Valid volume format types

+

Valid ZFS volume format types

The ZFS volume pool does not use the volume format type element.

@@ -808,7 +808,7 @@

Please refer to the Virtuozzo Storage documentation for details on storage management and usage.

-

Example pool input

+

Example vstorage pool input

In order to create storage pool with Virtuozzo Storage backend you have to provide cluster name and be authorized within the cluster.

@@ -822,12 +822,12 @@
   </target>
 </pool>
-

Valid pool format types

+

Valid vstorage pool format types

The Vstorage volume pool does not use the pool format type element.

-

Valid volume format types

+

Valid vstorage volume format types

The valid volume types are the same as for the directory pool.

--=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630230; cv=none; d=zohomail.com; s=zohoarc; b=iTF634Tjl1rAq80iLXDw8xHl41iedAVAK6WQHE5Gigp+ROyLxA+LZvsNakPKpD7DfiNdcEDzvbNfAABj5XRLin0J28Kj/NZ0LujCjPdQ3bZv9kLcS7Vi3FLarsXwEoFOx2jktB3GhQ+m/6AKqZ03tHXAIIRJatHKmcqhu0Rfm70= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630230; 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=ttvrMW1FIQGjZmnMq1Khqlru8YAJTkLoow/oxVyXnFg=; b=VWZRLZkwMKmgchr5NOwv9zO/trMQ6Ys03iLoC+Oln5yIm5lT0WNtc11JYNwY0H6TrrB9HN1AQULyr0F01d2bXLYoaa5SdOxwkdOaaKf+3i155U9WQ7JBWM7Bzy4I+lF4p2E6R5G2oxCD+0RHd0jadkWaXeZCZfguoLhgXHOyoCo= 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 1650630230317434.08577916814943; Fri, 22 Apr 2022 05:23:50 -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-576-6ArmY754M26l65hl2z7quw-1; Fri, 22 Apr 2022 08:23:44 -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 B95A5811E80; Fri, 22 Apr 2022 12:23:39 +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 9D19F40D0179; Fri, 22 Apr 2022 12:23:39 +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 6E1641940361; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3A5BD1940351 for ; Fri, 22 Apr 2022 12:23:37 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 10D1B41617F; Fri, 22 Apr 2022 12:23:37 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 16174416363 for ; Fri, 22 Apr 2022 12:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630228; 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=ttvrMW1FIQGjZmnMq1Khqlru8YAJTkLoow/oxVyXnFg=; b=Zpc9DtYFlS6JCWEixCACrjVHGj+za6iqhjQfofu5XXiyzr8i0z8SY+ERED5mLrEoSmG407 qxg2H9Ep3uwzpAoLR7b4BpSJBe4NjBUL8PY98H2cxMpzo55ugcSc2n5FbxLDN6hxGvt8qY KgUyYJhRRdCqXltvt9gnSNH0LH7jhFY= X-MC-Unique: 6ArmY754M26l65hl2z7quw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 04/15] docs: Convert 'storage' page to rst Date: Fri, 22 Apr 2022 14:23:20 +0200 Message-Id: <3f8b2ee8ad767b990d2040418deb81ce0c756d4f.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630231991100011 Content-Type: text/plain; charset="utf-8" From: Pavel Hrdina Signed-off-by: Pavel Hrdina Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/meson.build | 2 +- docs/storage.html.in | 833 ------------------------------------------- docs/storage.rst | 790 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 791 insertions(+), 834 deletions(-) delete mode 100644 docs/storage.html.in create mode 100644 docs/storage.rst diff --git a/docs/meson.build b/docs/meson.build index eff3813cd6..a18def58a4 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -20,7 +20,6 @@ docs_assets =3D [ docs_html_in_files =3D [ 'index', 'remote', - 'storage', 'uri', ] @@ -99,6 +98,7 @@ docs_rst_files =3D [ 'programming-languages', 'python', 'securityprocess', + 'storage', 'strategy', 'styleguide', 'submitting-patches', diff --git a/docs/storage.html.in b/docs/storage.html.in deleted file mode 100644 index 8fb2cec9bd..0000000000 --- a/docs/storage.html.in +++ /dev/null @@ -1,833 +0,0 @@ - - - - -

Storage Management

-

- Libvirt provides storage management on the physical host through - storage pools and volumes. -

-

- A storage pool is a quantity of storage set aside by an - administrator, often a dedicated storage administrator, for use - by virtual machines. Storage pools are divided into storage - volumes either by the storage administrator or the system - administrator, and the volumes are assigned to VMs as block - devices. -

-

- For example, the storage administrator responsible for an NFS - server creates a share to store virtual machines' data. The - system administrator defines a pool on the virtualization host - with the details of the share - (e.g. nfs.example.com:/path/to/share should be mounted on - /vm_data). When the pool is started, libvirt mounts the share - on the specified directory, just as if the system administrator - logged in and executed 'mount nfs.example.com:/path/to/share - /vmdata'. If the pool is configured to autostart, libvirt - ensures that the NFS share is mounted on the directory specified - when libvirt is started. -

-

- Once the pool is started, the files in the NFS share are - reported as volumes, and the storage volumes' paths may be - queried using the libvirt APIs. The volumes' paths can then be - copied into the section of a VM's XML definition describing the - source storage for the VM's block devices. In the case of NFS, - an application using the libvirt APIs can create and delete - volumes in the pool (files in the NFS share) up to the limit of - the size of the pool (the storage capacity of the share). Not - all pool types support creating and deleting volumes. Stopping - the pool (somewhat unfortunately referred to by virsh and the - API as "pool-destroy") undoes the start operation, in this case, - unmounting the NFS share. The data on the share is not modified - by the destroy operation, despite the name. See man virsh for - more details. -

-

- A second example is an iSCSI pool. A storage administrator - provisions an iSCSI target to present a set of LUNs to the host - running the VMs. When libvirt is configured to manage that - iSCSI target as a pool, libvirt will ensure that the host logs - into the iSCSI target and libvirt can then report the available - LUNs as storage volumes. The volumes' paths can be queried and - used in VM's XML definitions as in the NFS example. In this - case, the LUNs are defined on the iSCSI server, and libvirt - cannot create and delete volumes. -

-

- Storage pools and volumes are not required for the proper - operation of VMs. Pools and volumes provide a way for libvirt - to ensure that a particular piece of storage will be available - for a VM, but some administrators will prefer to manage their - own storage and VMs will operate properly without any pools or - volumes defined. On systems that do not use pools, system - administrators must ensure the availability of the VMs' storage - using whatever tools they prefer, for example, adding the NFS - share to the host's fstab so that the share is mounted at boot - time. -

-

- If at this point the value of pools and volumes over traditional - system administration tools is unclear, note that one of the - features of libvirt is its remote protocol, so it's possible to - manage all aspects of a virtual machine's lifecycle as well as - the configuration of the resources required by the VM. These - operations can be performed on a remote host entirely within the - libvirt API. In other words, a management application using - libvirt can enable a user to perform all the required tasks for - configuring the host for a VM: allocating resources, running the - VM, shutting it down and deallocating the resources, without - requiring shell access or any other control channel. -

-

- Libvirt supports the following storage pool types: -

-
    - -

    Directory pool

    -

    - A pool with a type of dir provides the means to manage - files within a directory. The files can be fully allocated raw files, - sparsely allocated raw files, or one of the special disk formats - such as qcow2, vmdk, etc as supported - by the qemu-img program. If the directory does not exist - at the time the pool is defined, the build - operation can be used to create it. -

    - -

    Example directory pool input definition

    -
    -<pool type=3D"dir">
    -  <name>virtimages</name>
    -  <target>
    -    <path>/var/lib/virt/images</path>
    -  </target>
    -</pool>
    - -

    Valid directory pool format types

    -

    - The directory pool does not use the pool format type element. -

    - -

    Valid directory volume format types

    -

    - One of the following options: -

    -
      -
    • raw: a plain file
    • -
    • bochs: Bochs disk image format
    • -
    • cloop: compressed loopback disk image format
    • -
    • cow: User Mode Linux disk image format
    • -
    • dmg: Mac disk image format
    • -
    • iso: CDROM disk image format
    • -
    • qcow: QEMU v1 disk image format
    • -
    • qcow2: QEMU v2 disk image format
    • -
    • qed: QEMU Enhanced Disk image format
    • -
    • vmdk: VMware disk image format
    • -
    • vpc: VirtualPC disk image format
    • -
    -

    - When listing existing volumes all these formats are supported - natively. When creating new volumes, only a subset may be - available. The raw type is guaranteed always - available. The qcow2 type can be created if - the qemu-img tool is present. The others are - dependent on support of the qemu-img tool. - -

    - -

    Filesystem pool

    -

    - This is a variant of the directory pool. Instead of creating a - directory on an existing mounted filesystem though, it expects - a source block device to be named. This block device will be - mounted and files managed in the directory of its mount point. - It will default to allowing the kernel to automatically discover - the filesystem type, though it can be specified manually if - required. -

    - -

    Example filesystem pool input

    -
    -<pool type=3D"fs">
    -  <name>virtimages</name>
    -  <source>
    -    <device path=3D"/dev/VolGroup00/VirtImages"/>
    -  </source>
    -  <target>
    -    <path>/var/lib/virt/images</path>
    -  </target>
    -</pool>
    - -

    Valid filesystem pool format types

    -

    - The filesystem pool supports the following formats: -

    -
      -
    • auto - automatically determine format
    • -
    • - ext2 -
    • -
    • - ext3 -
    • -
    • - ext4 -
    • -
    • - ufs -
    • -
    • - iso9660 -
    • -
    • - udf -
    • -
    • - gfs -
    • -
    • - gfs2 -
    • -
    • - vfat -
    • -
    • - hfs+ -
    • -
    • - xfs -
    • -
    • - ocfs2 -
    • -
    • - vmfs -
    • -
    - -

    Valid filesystem volume format types

    -

    - The valid volume types are the same as for the directory - pool type. -

    - - -

    Network filesystem pool

    -

    - This is a variant of the filesystem pool. Instead of requiring - a local block device as the source, it requires the name of a - host and path of an exported directory. It will mount this network - filesystem and manage files within the directory of its mount - point. It will default to using auto as the - protocol, which generally tries a mount via NFS first. -

    - -

    Example network filesystem pool input

    -
    -<pool type=3D"netfs">
    -  <name>virtimages</name>
    -  <source>
    -    <host name=3D"nfs.example.com"/>
    -    <dir path=3D"/var/lib/virt/images"/>
    -    <format type=3D'nfs'/>
    -  </source>
    -  <target>
    -    <path>/var/lib/virt/images</path>
    -  </target>
    -</pool>
    - -

    Valid network filesystem pool format types

    -

    - The network filesystem pool supports the following formats: -

    -
      -
    • auto - automatically determine format
    • -
    • - nfs -
    • -
    • - glusterfs - use the glusterfs FUSE file system. - For now, the dir specified as the source can only - be a gluster volume name, as gluster does not provide a way to - directly mount subdirectories within a volume. (To bypass the - file system completely, see - the gluster pool.) -
    • -
    • - cifs - use the SMB (samba) or CIFS file system. - The mount will use "-o guest" to mount the directory anonymously. -
    • -
    - -

    Valid network filesystem volume format types

    -

    - The valid volume types are the same as for the directory - pool type. -

    - - -

    Logical volume pool

    -

    - This provides a pool based on an LVM volume group. For a - pre-defined LVM volume group, simply providing the group - name is sufficient, while to build a new group requires - providing a list of source devices to serve as physical - volumes. Volumes will be allocated by carving out chunks - of storage from the volume group. -

    - -

    Example logical pool input

    -
    -<pool type=3D"logical">
    -  <name>HostVG</name>
    -  <source>
    -    <device path=3D"/dev/sda1"/>
    -    <device path=3D"/dev/sdb1"/>
    -    <device path=3D"/dev/sdc1"/>
    -  </source>
    -  <target>
    -    <path>/dev/HostVG</path>
    -  </target>
    -</pool>
    - -

    Valid logical pool format types

    -

    - The logical volume pool supports only the lvm2 format, - although not supplying a format value will result in automatic - selection of thelvm2 format. -

    - -

    Valid logical volume format types

    -

    - The logical volume pool does not use the volume format type element. -

    - - -

    Disk pool

    -

    - This provides a pool based on a physical disk. Volumes are created - by adding partitions to the disk. Disk pools have constraints - on the size and placement of volumes. The 'free extents' - information will detail the regions which are available for creating - new volumes. A volume cannot span across two different free extents. - It will default to using dos as the pool source format. -

    - -

    Example disk pool input

    -
    -<pool type=3D"disk">
    -  <name>sda</name>
    -  <source>
    -    <device path=3D'/dev/sda'/>
    -  </source>
    -  <target>
    -    <path>/dev</path>
    -  </target>
    -</pool>
    - -

    Valid disk pool format types

    -

    - The disk volume pool accepts the following pool format types, repres= enting - the common partition table types: -

    -
      -
    • - dos -
    • -
    • - dvh -
    • -
    • - gpt -
    • -
    • - mac -
    • -
    • - bsd -
    • -
    • - pc98 -
    • -
    • - sun -
    • -
    • - lvm2 -
    • -
    -

    - The formats dos ("msdos" in parted terminology, - good for BIOS systems) or gpt (good for UEFI - systems) are recommended for best portability - the latter is - needed for disks larger than 2TB. Note that the lvm2 - format refers to the physical volume format (i.e. the whole - disk is a physical volume - not the usual usage of LVM where - physical volumes are partitions). This is not really - a partition table and such pool cannot be built by libvirt, - only detected. -

    -

    - Building a pool of a certain format depends on its availability - in parted. -

    - -

    Valid disk volume format types

    -

    - The disk volume pool accepts the following volume format types, repr= esenting - the common partition entry types: -

    -
      -
    • - none -
    • -
    • - linux -
    • -
    • - fat16 -
    • -
    • - fat32 -
    • -
    • - linux-swap -
    • -
    • - linux-lvm -
    • -
    • - linux-raid -
    • -
    • - extended -
    • -
    - - -

    iSCSI pool

    -

    - This provides a pool based on an iSCSI target. Volumes must be - pre-allocated on the iSCSI server, and cannot be created via - the libvirt APIs. Since /dev/XXX names may change each time libvirt - logs into the iSCSI target, it is recommended to configure the pool - to use /dev/disk/by-path or /dev/disk/by-id - for the target path. These provide persistent stable naming for LUNs -

    -

    - The libvirt iSCSI storage backend does not resolve the provided - host name or IP address when finding the available target IQN's - on the host; therefore, defining two pools to use the same IQN - on the same host will fail the duplicate source pool checks. -

    - -

    Example iSCSI pool input

    -
    -<pool type=3D"iscsi">
    -  <name>virtimages</name>
    -  <source>
    -    <host name=3D"iscsi.example.com"/>
    -    <device path=3D"iqn.2013-06.com.example:iscsi-pool"/>
    -  </source>
    -  <target>
    -    <path>/dev/disk/by-path</path>
    -  </target>
    -</pool>
    - -

    Valid iSCSI pool format types

    -

    - The iSCSI volume pool does not use the pool format type element. -

    - -

    Valid iSCSI volume format types

    -

    - The iSCSI volume pool does not use the volume format type element. -

    - -

    iSCSI direct pool

    -

    - This is a variant of the iSCSI pool. Instead of using iscsiadm, it u= ses - libiscsi. - It requires a host, a path which is the target IQN, and an initiator= IQN. -

    - -

    Example iSCSI direct pool input

    -
    -<pool type=3D"iscsi-direct">
    -  <name>virtimages</name>
    -  <source>
    -    <host name=3D"iscsi.example.com"/>
    -    <device path=3D"iqn.2013-06.com.example:iscsi-pool"/>
    -    <initiator>
    -      <iqn name=3D"iqn.2013-06.com.example:iscsi-initiator"/>
    -    </initiator>
    -  </source>
    -</pool>
    - -

    Valid iSCSI direct pool format types

    -

    - The iSCSI direct volume pool does not use the pool format type eleme= nt. -

    - -

    Valid iSCSI direct volume format types

    -

    - The iSCSI direct volume pool does not use the volume format type ele= ment. -

    - -

    SCSI pool

    -

    - This provides a pool based on a SCSI HBA. Volumes are preexisting SC= SI - LUNs, and cannot be created via the libvirt APIs. Since /dev/XXX nam= es - aren't generally stable, it is recommended to configure the pool - to use /dev/disk/by-path or /dev/disk/by-id - for the target path. These provide persistent stable naming for LUNs - Since 0.6.2 -

    - -

    Example SCSI pool input

    -
    -<pool type=3D"scsi">
    -  <name>virtimages</name>
    -  <source>
    -    <adapter name=3D"host0"/>
    -  </source>
    -  <target>
    -    <path>/dev/disk/by-path</path>
    -  </target>
    -</pool>
    - -

    Valid SCSI pool format types

    -

    - The SCSI volume pool does not use the pool format type element. -

    - -

    Valid SCSI volume format types

    -

    - The SCSI volume pool does not use the volume format type element. -

    - -

    Multipath pool

    -

    - This provides a pool that contains all the multipath devices on the - host. Therefore, only one Multipath pool may be configured per host. - Volume creating is not supported via the libvirt APIs. - The target element is actually ignored, but one is required to appea= se - the libvirt XML parser.
    -
    - Configuring multipathing is not currently supported, this just covers - the case where users want to discover all the available multipath - devices, and assign them to guests. - Since 0.7.1 -

    - -

    Example multipath pool input

    -
    -<pool type=3D"mpath">
    -  <name>virtimages</name>
    -  <target>
    -    <path>/dev/mapper</path>
    -  </target>
    -</pool>
    - -

    Valid multipath pool format types

    -

    - The Multipath volume pool does not use the pool format type element. -

    - -

    Valid multipath volume format types

    -

    - The Multipath volume pool does not use the volume format type elemen= t. -

    - -

    RBD pool

    -

    - This storage driver provides a pool which contains all RBD - images in a RADOS pool. RBD (RADOS Block Device) is part - of the Ceph distributed storage project.
    - This backend only supports QEMU with RBD support. Kernel RBD - which exposes RBD devices as block devices in /dev is not - supported. RBD images created with this storage backend - can be accessed through kernel RBD if configured manually, but - this backend does not provide mapping for these images.
    - Images created with this backend can be attached to QEMU guests - when QEMU is build with RBD support (Since QEMU 0.14.0). The - backend supports cephx authentication for communication with the - Ceph cluster. Storing the cephx authentication key is done with - the libvirt secret mechanism. The UUID in the example pool input - refers to the UUID of the stored secret.
    - The port attribute for a Ceph monitor does not have to be provided. - If not provided librados will use the default Ceph monitor port. - Since 0.9.13 -

    - -

    Example RBD pool input

    -
    -<pool type=3D"rbd">
    -  <name>myrbdpool</name>
    -  <source>
    -    <name>rbdpool</name>
    -    <host name=3D'1.2.3.4'/>
    -    <host name=3D'my.ceph.monitor'/>
    -    <host name=3D'third.ceph.monitor' port=3D'6789'/>
    -    <auth username=3D'admin' type=3D'ceph'>
    -      <secret uuid=3D'2ec115d7-3a88-3ceb-bc12-0ac909a6fd87'/>
    -    </auth>
    -  </source>
    -</pool>
    - -

    Example RBD volume output

    -
    -<volume>
    -  <name>myvol</name>
    -  <key>rbd/myvol</key>
    -  <source>
    -  </source>
    -  <capacity unit=3D'bytes'>53687091200</capacity>
    -  <allocation unit=3D'bytes'>53687091200</allocation>
    -  <target>
    -    <path>rbd:rbd/myvol</path>
    -    <format type=3D'unknown'/>
    -    <permissions>
    -      <mode>00</mode>
    -      <owner>0</owner>
    -      <group>0</group>
    -    </permissions>
    -  </target>
    -</volume>
    - -

    Example RBD disk attachment

    -

    RBD images can be attached to QEMU guests when QEMU is built - with RBD support. Information about attaching a RBD image to a - guest can be found - at format domain - page.

    - -

    Valid RBD pool format types

    -

    - The RBD pool does not use the pool format type element. -

    - -

    Valid RBD volume format types

    -

    - Only raw volumes are supported. -

    - -

    Sheepdog pool

    -

    - This provides a pool based on a Sheepdog Cluster. - Sheepdog is a distributed storage system for QEMU/KVM. - It provides highly available block level storage volumes that - can be attached to QEMU/KVM virtual machines. - - The cluster must already be formatted. - - Since 0.9.13 -

    - -

    Example Sheepdog pool input

    -
    -<pool type=3D"sheepdog">
    -  <name>mysheeppool</name>
    -  <source>
    -    <name>mysheeppool</name>
    -    <host name=3D'localhost' port=3D'7000'/>
    -  </source>
    -</pool>
    - -

    Example Sheepdog volume output

    -
    -<volume>
    -  <name>myvol</name>
    -  <key>sheep/myvol</key>
    -  <source>
    -  </source>
    -  <capacity unit=3D'bytes'>53687091200</capacity>
    -  <allocation unit=3D'bytes'>53687091200</allocation>
    -  <target>
    -    <path>sheepdog:myvol</path>
    -    <format type=3D'unknown'/>
    -    <permissions>
    -      <mode>00</mode>
    -      <owner>0</owner>
    -      <group>0</group>
    -    </permissions>
    -  </target>
    -</volume>
    - -

    Example Sheepdog disk attachment

    -

    Sheepdog images can be attached to QEMU guests. - Information about attaching a Sheepdog image to a - guest can be found - at the format domain - page.

    - -

    Valid Sheepdog pool format types

    -

    - The Sheepdog pool does not use the pool format type element. -

    - -

    Valid Sheepdog volume format types

    -

    - The Sheepdog pool does not use the volume format type element. -

    - -

    Gluster pool

    -

    - This provides a pool based on native Gluster access. Gluster is - a distributed file system that can be exposed to the user via - FUSE, NFS or SMB (see the netfs - pool for that usage); but for minimal overhead, the ideal access - is via native access (only possible for QEMU/KVM compiled with - libgfapi support). - - The cluster and storage volume must already be running, and it - is recommended that the volume be configured with gluster - volume set $volname storage.owner-uid=3D$uid - and gluster volume set $volname - storage.owner-gid=3D$gid for the uid and gid that qemu will - be run as. It may also be necessary to - set rpc-auth-allow-insecure on for the glusterd - service, as well as gluster set $volname - server.allow-insecure on, to allow access to the gluster - volume. - - Since 1.2.0 -

    - -

    Example Gluster pool input

    -

    A gluster volume corresponds to a libvirt storage pool. If a - gluster volume could be mounted as mount -t glusterfs - localhost:/volname /some/path, then the following example - will describe the same pool without having to create a local - mount point. Remember that with gluster, the mount point can be - through any machine in the cluster, and gluster will - automatically pick the ideal transport to the actual bricks - backing the gluster volume, even if on a different host than the - one named in the host designation. - The <name> element is always the volume name - (no slash). The pool source also supports an - optional <dir> element with - a path attribute that lists the absolute name of a - subdirectory relative to the gluster volume to use instead of - the top-level directory of the volume.

    -
    -<pool type=3D"gluster">
    -  <name>myglusterpool</name>
    -  <source>
    -    <name>volname</name>
    -    <host name=3D'localhost'/>
    -    <dir path=3D'/'/>
    -  </source>
    -</pool>
    - -

    Example Gluster volume output

    -

    Libvirt storage volumes associated with a gluster pool - correspond to the files that can be found when mounting the - gluster volume. The name is the path relative to - the effective mount specified for the pool; and - the key is a string that identifies a single volume - uniquely. Currently the key attribute consists of the - URI of the volume but it may be changed to a UUID of the volume - in the future.

    -
    -<volume>
    -  <name>myfile</name>
    -  <key>gluster://localhost/volname/myfile</key>
    -  <source>
    -  </source>
    -  <capacity unit=3D'bytes'>53687091200</capacity>
    -  <allocation unit=3D'bytes'>53687091200</allocation>
    -</volume>
    - -

    Example Gluster disk attachment

    -

    Files within a gluster volume can be attached to QEMU guests. - Information about attaching a Gluster image to a - guest can be found - at the format domain - page.

    - -

    Valid Gluster pool format types

    -

    - The Gluster pool does not use the pool format type element. -

    - -

    Valid Gluster volume format types

    -

    - The valid volume types are the same as for the directory - pool type. -

    - -

    ZFS pool

    -

    - This provides a pool based on the ZFS filesystem. Initially it was d= eveloped - for FreeBSD, and since 1.3.2 experiment= al support - for ZFS on Linux version 0.6= .4 or newer - is available. -

    - -

    A pool could either be created manually using the zpool creat= e - command and its name specified in the source section or - since 1.2.9 source devices could be specified to create a poo= l using - libvirt. -

    - -

    Please refer to the ZFS documentation for details on a pool creatio= n.

    - -

    Since 1.2.8

    . - -

    Example ZFS pool input

    -
    -<pool type=3D"zfs">
    -  <name>myzfspool</name>
    -  <source>
    -    <name>zpoolname</name>
    -    <device path=3D"/dev/ada1"/>
    -    <device path=3D"/dev/ada2"/>
    -  </source>
    -</pool>
    - -

    Valid ZFS pool format types

    -

    - The ZFS volume pool does not use the pool format type element. -

    - -

    Valid ZFS volume format types

    -

    - The ZFS volume pool does not use the volume format type element. -

    -

    Vstorage pool

    -

    - This provides a pool based on Virtuozzo storage. Virtuozzo Storage is - a highly available distributed software-defined storage with built-in - replication and disaster recovery. More detailed information about - Virtuozzo storage and its management can be found here: - - Virtuozzo Storage). -

    -

    Please refer to the Virtuozzo Storage documentation for details - on storage management and usage.

    -

    Example vstorage pool input

    -

    In order to create storage pool with Virtuozzo Storage backend you - have to provide cluster name and be authorized within the cluster.

    -
    -<pool type=3D"vstorage">
    -  <name>myvstoragepool</name>
    -  <source>
    -    <name>clustername</name>
    -  </source>
    -  <target>
    -    <path>/mnt/clustername</path>
    -  </target>
    -</pool>
    - -

    Valid vstorage pool format types

    -

    - The Vstorage volume pool does not use the pool format type element. -

    - -

    Valid vstorage volume format types

    -

    The valid volume types are the same as for the directory pool.

    - - diff --git a/docs/storage.rst b/docs/storage.rst new file mode 100644 index 0000000000..b860648628 --- /dev/null +++ b/docs/storage.rst @@ -0,0 +1,790 @@ +.. role:: since + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Storage Management +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Libvirt provides storage management on the physical host through storage p= ools +and volumes. + +A storage pool is a quantity of storage set aside by an administrator, oft= en a +dedicated storage administrator, for use by virtual machines. Storage pool= s are +divided into storage volumes either by the storage administrator or the sy= stem +administrator, and the volumes are assigned to VMs as block devices. + +For example, the storage administrator responsible for an NFS server creat= es a +share to store virtual machines' data. The system administrator defines a = pool +on the virtualization host with the details of the share (e.g. +nfs.example.com:/path/to/share should be mounted on /vm_data). When the po= ol is +started, libvirt mounts the share on the specified directory, just as if t= he +system administrator logged in and executed 'mount +nfs.example.com:/path/to/share /vmdata'. If the pool is configured to auto= start, +libvirt ensures that the NFS share is mounted on the directory specified w= hen +libvirt is started. + +Once the pool is started, the files in the NFS share are reported as volum= es, +and the storage volumes' paths may be queried using the libvirt APIs. The +volumes' paths can then be copied into the section of a VM's XML definition +describing the source storage for the VM's block devices. In the case of N= FS, an +application using the libvirt APIs can create and delete volumes in the po= ol +(files in the NFS share) up to the limit of the size of the pool (the stor= age +capacity of the share). Not all pool types support creating and deleting +volumes. Stopping the pool (somewhat unfortunately referred to by virsh an= d the +API as "pool-destroy") undoes the start operation, in this case, unmountin= g the +NFS share. The data on the share is not modified by the destroy operation, +despite the name. See man virsh for more details. + +A second example is an iSCSI pool. A storage administrator provisions an i= SCSI +target to present a set of LUNs to the host running the VMs. When libvirt = is +configured to manage that iSCSI target as a pool, libvirt will ensure that= the +host logs into the iSCSI target and libvirt can then report the available = LUNs +as storage volumes. The volumes' paths can be queried and used in VM's XML +definitions as in the NFS example. In this case, the LUNs are defined on t= he +iSCSI server, and libvirt cannot create and delete volumes. + +Storage pools and volumes are not required for the proper operation of VMs. +Pools and volumes provide a way for libvirt to ensure that a particular pi= ece of +storage will be available for a VM, but some administrators will prefer to +manage their own storage and VMs will operate properly without any pools or +volumes defined. On systems that do not use pools, system administrators m= ust +ensure the availability of the VMs' storage using whatever tools they pref= er, +for example, adding the NFS share to the host's fstab so that the share is +mounted at boot time. + +If at this point the value of pools and volumes over traditional system +administration tools is unclear, note that one of the features of libvirt = is its +remote protocol, so it's possible to manage all aspects of a virtual machi= ne's +lifecycle as well as the configuration of the resources required by the VM. +These operations can be performed on a remote host entirely within the lib= virt +API. In other words, a management application using libvirt can enable a u= ser to +perform all the required tasks for configuring the host for a VM: allocati= ng +resources, running the VM, shutting it down and deallocating the resources, +without requiring shell access or any other control channel. + +Libvirt supports the following storage pool types: + +.. contents:: + +Directory pool +-------------- + +A pool with a type of ``dir`` provides the means to manage files within a +directory. The files can be fully allocated raw files, sparsely allocated = raw +files, or one of the special disk formats such as ``qcow2``, ``vmdk``, etc= as +supported by the ``qemu-img`` program. If the directory does not exist at = the +time the pool is defined, the ``build`` operation can be used to create it. + +Example directory pool input definition +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + /var/lib/virt/images + + + +Valid directory pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The directory pool does not use the pool format type element. + +Valid directory volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +One of the following options: + +- ``raw``: a plain file + +- ``bochs``: Bochs disk image format + +- ``cloop``: compressed loopback disk image format + +- ``cow``: User Mode Linux disk image format + +- ``dmg``: Mac disk image format + +- ``iso``: CDROM disk image format + +- ``qcow``: QEMU v1 disk image format + +- ``qcow2``: QEMU v2 disk image format + +- ``qed``: QEMU Enhanced Disk image format + +- ``vmdk``: VMware disk image format + +- ``vpc``: VirtualPC disk image format + +When listing existing volumes all these formats are supported natively. Wh= en +creating new volumes, only a subset may be available. The ``raw`` type is +guaranteed always available. The ``qcow2`` type can be created if the +``qemu-img`` tool is present. The others are dependent on support of the +``qemu-img`` tool. + +Filesystem pool +--------------- + +This is a variant of the directory pool. Instead of creating a directory o= n an +existing mounted filesystem though, it expects a source block device to be +named. This block device will be mounted and files managed in the director= y of +its mount point. It will default to allowing the kernel to automatically +discover the filesystem type, though it can be specified manually if requi= red. + +Example filesystem pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + + + + /var/lib/virt/images + + + +Valid filesystem pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The filesystem pool supports the following formats: + +- ``auto`` - automatically determine format + +- ``ext2`` + +- ``ext3`` + +- ``ext4`` + +- ``ufs`` + +- ``iso9660`` + +- ``udf`` + +- ``gfs`` + +- ``gfs2`` + +- ``vfat`` + +- ``hfs+`` + +- ``xfs`` + +- ``ocfs2`` + +- ``vmfs`` + +Valid filesystem volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The valid volume types are the same as for the ``directory`` pool type. + +Network filesystem pool +----------------------- + +This is a variant of the filesystem pool. Instead of requiring a local blo= ck +device as the source, it requires the name of a host and path of an export= ed +directory. It will mount this network filesystem and manage files within t= he +directory of its mount point. It will default to using ``auto`` as the pro= tocol, +which generally tries a mount via NFS first. + +Example network filesystem pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + +
    + + + + /var/lib/virt/images + + + +Valid network filesystem pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The network filesystem pool supports the following formats: + +- ``auto`` - automatically determine format + +- ``nfs`` + +- ``glusterfs`` - use the glusterfs FUSE file system. For now, the ``dir`` + specified as the source can only be a gluster volume name, as gluster d= oes + not provide a way to directly mount subdirectories within a volume. (To + bypass the file system completely, see the `Gluster pool`_). + +- ``cifs`` - use the SMB (samba) or CIFS file system. The mount will use = "-o + guest" to mount the directory anonymously. + +Valid network filesystem volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The valid volume types are the same as for the ``directory`` pool type. + +Logical volume pool +------------------- + +This provides a pool based on an LVM volume group. For a pre-defined LVM v= olume +group, simply providing the group name is sufficient, while to build a new= group +requires providing a list of source devices to serve as physical volumes. +Volumes will be allocated by carving out chunks of storage from the volume +group. + +Example logical pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + HostVG + + + + + + + /dev/HostVG + + + +Valid logical pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The logical volume pool supports only the ``lvm2`` format, although not +supplying a format value will result in automatic selection of the\ ``lvm2= `` +format. + +Valid logical volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The logical volume pool does not use the volume format type element. + +Disk pool +--------- + +This provides a pool based on a physical disk. Volumes are created by addi= ng +partitions to the disk. Disk pools have constraints on the size and placem= ent of +volumes. The 'free extents' information will detail the regions which are +available for creating new volumes. A volume cannot span across two differ= ent +free extents. It will default to using ``dos`` as the pool source format. + +Example disk pool input +~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + sda + + + + + /dev + + + +Valid disk pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The disk volume pool accepts the following pool format types, representing= the +common partition table types: + +- ``dos`` + +- ``dvh`` + +- ``gpt`` + +- ``mac`` + +- ``bsd`` + +- ``pc98`` + +- ``sun`` + +- ``lvm2`` + +The formats ``dos`` ("msdos" in parted terminology, good for BIOS systems)= or +``gpt`` (good for UEFI systems) are recommended for best portability - the +latter is needed for disks larger than 2TB. Note that the ``lvm2`` format = refers +to the physical volume format (i.e. the whole disk is a physical volume - = not +the usual usage of LVM where physical volumes are partitions). This is not +really a partition table and such pool cannot be built by libvirt, only +detected. + +Building a pool of a certain format depends on its availability in ``parte= d``. + +Valid disk volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The disk volume pool accepts the following volume format types, representi= ng the +common partition entry types: + +- ``none`` + +- ``linux`` + +- ``fat16`` + +- ``fat32`` + +- ``linux-swap`` + +- ``linux-lvm`` + +- ``linux-raid`` + +- ``extended`` + +iSCSI pool +---------- + +This provides a pool based on an iSCSI target. Volumes must be pre-allocat= ed on +the iSCSI server, and cannot be created via the libvirt APIs. Since /dev/X= XX +names may change each time libvirt logs into the iSCSI target, it is recom= mended +to configure the pool to use ``/dev/disk/by-path`` or ``/dev/disk/by-id`` = for +the target path. These provide persistent stable naming for LUNs + +The libvirt iSCSI storage backend does not resolve the provided host name = or IP +address when finding the available target IQN's on the host; therefore, de= fining +two pools to use the same IQN on the same host will fail the duplicate sou= rce +pool checks. + +Example iSCSI pool input +~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + + + + + /dev/disk/by-path + + + +Valid iSCSI pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The iSCSI volume pool does not use the pool format type element. + +Valid iSCSI volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The iSCSI volume pool does not use the volume format type element. + +iSCSI direct pool +----------------- + +This is a variant of the iSCSI pool. Instead of using iscsiadm, it uses +libiscsi. It requires a host, a path which is the target IQN, and an initi= ator +IQN. + +Example iSCSI direct pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + + + + + + + + +Valid iSCSI direct pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The iSCSI direct volume pool does not use the pool format type element. + +Valid iSCSI direct volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The iSCSI direct volume pool does not use the volume format type element. + +SCSI pool +--------- + +This provides a pool based on a SCSI HBA. Volumes are preexisting SCSI LUN= s, and +cannot be created via the libvirt APIs. Since /dev/XXX names aren't genera= lly +stable, it is recommended to configure the pool to use ``/dev/disk/by-path= `` or +``/dev/disk/by-id`` for the target path. These provide persistent stable n= aming +for LUNs :since:`Since 0.6.2` + +Example SCSI pool input +~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + + + + /dev/disk/by-path + + + +Valid SCSI pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The SCSI volume pool does not use the pool format type element. + +Valid SCSI volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The SCSI volume pool does not use the volume format type element. + +Multipath pool +-------------- + +This provides a pool that contains all the multipath devices on the host. +Therefore, only one Multipath pool may be configured per host. Volume crea= ting +is not supported via the libvirt APIs. The target element is actually igno= red, +but one is required to appease the libvirt XML parser. + +Configuring multipathing is not currently supported, this just covers the = case +where users want to discover all the available multipath devices, and assi= gn +them to guests. :since:`Since 0.7.1` + +Example multipath pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + virtimages + + /dev/mapper + + + +Valid multipath pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Multipath volume pool does not use the pool format type element. + +Valid multipath volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Multipath volume pool does not use the volume format type element. + +RBD pool +-------- + +This storage driver provides a pool which contains all RBD images in a RAD= OS +pool. RBD (RADOS Block Device) is part of the Ceph distributed storage pro= ject. + +This backend *only* supports QEMU with RBD support. Kernel RBD which expos= es RBD +devices as block devices in /dev is *not* supported. RBD images created wi= th +this storage backend can be accessed through kernel RBD if configured manu= ally, +but this backend does not provide mapping for these images. + +Images created with this backend can be attached to QEMU guests when QEMU = is +build with RBD support (Since QEMU 0.14.0). The backend supports cephx +authentication for communication with the Ceph cluster. Storing the cephx +authentication key is done with the libvirt secret mechanism. The UUID in = the +example pool input refers to the UUID of the stored secret. + +The port attribute for a Ceph monitor does not have to be provided. If not +provided librados will use the default Ceph monitor port. :since:`Since 0.= 9.13` + +Example RBD pool input +~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + myrbdpool + + rbdpool + + + + + + + + + +Example RBD volume output +~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + myvol + rbd/myvol + + + 53687091200 + 53687091200 + + rbd:rbd/myvol + + + 00 + 0 + 0 + + + + +Example RBD disk attachment +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +RBD images can be attached to QEMU guests when QEMU is built with RBD supp= ort. +Information about attaching a RBD image to a guest can be found at `format +domain `__ page. + +Valid RBD pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The RBD pool does not use the pool format type element. + +Valid RBD volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Only raw volumes are supported. + +Sheepdog pool +------------- + +This provides a pool based on a Sheepdog Cluster. Sheepdog is a distributed +storage system for QEMU/KVM. It provides highly available block level stor= age +volumes that can be attached to QEMU/KVM virtual machines. The cluster must +already be formatted. :since:`Since 0.9.13` + +Example Sheepdog pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + mysheeppool + + mysheeppool + + + + +Example Sheepdog volume output +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + myvol + sheep/myvol + + + 53687091200 + 53687091200 + + sheepdog:myvol + + + 00 + 0 + 0 + + + + +Example Sheepdog disk attachment +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Sheepdog images can be attached to QEMU guests. Information about attachin= g a +Sheepdog image to a guest can be found at the `format +domain `__ page. + +Valid Sheepdog pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Sheepdog pool does not use the pool format type element. + +Valid Sheepdog volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Sheepdog pool does not use the volume format type element. + +Gluster pool +------------ + +This provides a pool based on native Gluster access. Gluster is a distribu= ted +file system that can be exposed to the user via FUSE, NFS or SMB (see the +`Network filesystem pool`_ for that usage); but for minimal overhead, +the ideal access is via native access (only possible for QEMU/KVM compiled= with +libgfapi support). The cluster and storage volume must already be running,= and +it is recommended that the volume be configured with +``gluster volume set $volname storage.owner-uid=3D$uid`` and +``gluster volume set $volname storage.owner-gid=3D$gid`` for the uid= and gid +that qemu will be run as. It may also be necessary to set +``rpc-auth-allow-insecure on`` for the glusterd service, as well as +``gluster set $volname server.allow-insecure on``, to allow access t= o the +gluster volume. :since:`Since 1.2.0` + +Example Gluster pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +A gluster volume corresponds to a libvirt storage pool. If a gluster volume +could be mounted as ``mount -t glusterfs localhost:/volname /some/pa= th``, +then the following example will describe the same pool without having to c= reate +a local mount point. Remember that with gluster, the mount point can be th= rough +any machine in the cluster, and gluster will automatically pick the ideal +transport to the actual bricks backing the gluster volume, even if on a +different host than the one named in the ``host`` designation. The ```` +element is always the volume name (no slash). The pool source also support= s an +optional ```` element with a ``path`` attribute that lists the absolu= te +name of a subdirectory relative to the gluster volume to use instead of the +top-level directory of the volume. + +:: + + + myglusterpool + + volname + + + + + +Example Gluster volume output +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Libvirt storage volumes associated with a gluster pool correspond to the f= iles +that can be found when mounting the gluster volume. The ``name`` is the pa= th +relative to the effective mount specified for the pool; and the ``key`` is= a +string that identifies a single volume uniquely. Currently the ``key`` att= ribute +consists of the URI of the volume but it may be changed to a UUID of the v= olume +in the future. + +:: + + + myfile + gluster://localhost/volname/myfile + + + 53687091200 + 53687091200 + + +Example Gluster disk attachment +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Files within a gluster volume can be attached to QEMU guests. Information = about +attaching a Gluster image to a guest can be found at the `format +domain `__ page. + +Valid Gluster pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Gluster pool does not use the pool format type element. + +Valid Gluster volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The valid volume types are the same as for the ``directory`` pool type. + +ZFS pool +-------- + +This provides a pool based on the ZFS filesystem. Initially it was develop= ed for +FreeBSD, and :since:`since 1.3.2` experimental support for `ZFS on +Linux `__ version 0.6.4 or newer is available. + +A pool could either be created manually using the ``zpool create`` command= and +its name specified in the source section or :since:` since 1.2.9` source d= evices +could be specified to create a pool using libvirt. + +Please refer to the ZFS documentation for details on a pool creation. + +:since:`Since 1.2.8` + +Example ZFS pool input +~~~~~~~~~~~~~~~~~~~~~~ + +:: + + + myzfspool + + zpoolname + + + + + +Valid ZFS pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The ZFS volume pool does not use the pool format type element. + +Valid ZFS volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The ZFS volume pool does not use the volume format type element. + +Vstorage pool +------------- + +This provides a pool based on Virtuozzo storage. Virtuozzo Storage is a hi= ghly +available distributed software-defined storage with built-in replication a= nd +disaster recovery. More detailed information about Virtuozzo storage and i= ts +management can be found here: `Virtuozzo +Storage `__). + +Please refer to the Virtuozzo Storage documentation for details on storage +management and usage. + +Example vstorage pool input +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +In order to create storage pool with Virtuozzo Storage backend you have to +provide cluster name and be authorized within the cluster. + +:: + + + myvstoragepool + + clustername + + + /mnt/clustername + + + +Valid vstorage pool format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The Vstorage volume pool does not use the pool format type element. + +Valid vstorage volume format types +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The valid volume types are the same as for the directory pool. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630283; cv=none; d=zohomail.com; s=zohoarc; b=cF2/S0UKk2hAdaJ5rCt7yOk3W31hOeMRdaWyHDV+tAt5tG9XFzAJiFbauMSZef4y1xeeeOsNbS4uu5KDYtIoL02lKcCa6p41hDxeWQYKeZNTONu105eeNWcS6xNDhP+4C7vpuTc0sHEtitXCXeTSz12uogB28frjl3vx2z202TU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630283; 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=2ZgSty3lo49O1A4HwFw44e2/+FX+ZGGpTOx19pPhmgg=; b=Sp5n2miOhKeGrmwfWaiDqdiScztZihRcKpnkyQBmHFjwKGkK+/sT1W9AYcZKYcZQtI8ZWFSg/1AWLt0d3OM61owkDAhPS7gOSYMg3NkenaoJFgXt0gNNwByAe+7ViAWwM9SyUAKcIaHVOD0MKnQB/n2Fu1W0aYa0bc7mqAXiFBc= 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 1650630283903653.2274323141705; Fri, 22 Apr 2022 05:24:43 -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-450-UBPYvvRdMoy358FVyQ495A-1; Fri, 22 Apr 2022 08:23:45 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 74CE01C00AD9; Fri, 22 Apr 2022 12:23:40 +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 25C7040885A8; Fri, 22 Apr 2022 12:23:40 +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 BFDA31940370; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 07B921940361 for ; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EC827416364; Fri, 22 Apr 2022 12:23:37 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6854741617F for ; Fri, 22 Apr 2022 12:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630282; 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=2ZgSty3lo49O1A4HwFw44e2/+FX+ZGGpTOx19pPhmgg=; b=AbDekPxRxSaCOJKk054xZIeX72H0Zq2O0hLaoccdqjRgTn1LdZDamzu8vkwSGpFDFQ2SCn A/Eiig5IlVTTviZkp80q+Ubur6VVdHXhZ34dcyAMRFhPE/2m14k1BPC85RKyHnxf9hQIUs wEG3hidDkULgl7XvP/ua3jKBacBMnro= X-MC-Unique: UBPYvvRdMoy358FVyQ495A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 05/15] docs: Convert 'remote' page to rst Date: Fri, 22 Apr 2022 14:23:21 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.2 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) X-ZM-MESSAGEID: 1650630284163100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/kbase/tlscerts.rst | 4 +- docs/meson.build | 2 +- docs/remote.html.in | 297 ---------------------------------------- docs/remote.rst | 219 +++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+), 300 deletions(-) delete mode 100644 docs/remote.html.in create mode 100644 docs/remote.rst diff --git a/docs/kbase/tlscerts.rst b/docs/kbase/tlscerts.rst index c6636770e6..962253e853 100644 --- a/docs/kbase/tlscerts.rst +++ b/docs/kbase/tlscerts.rst @@ -89,7 +89,7 @@ clients. There are two distinct checks involved: - The server should know that only permitted clients are connecting. This= can be done based on client's IP address, or on client's IP address and cli= ent's certificate. Checking done by the server. May be enabled and disabled i= n the - `libvirtd.conf file `__. + `libvirtd.conf file `__. For full certificate checking you will need to have certificates issued by= a recognised `Certificate Authority @@ -99,7 +99,7 @@ CA, you can set up your own CA and tell your server(s) an= d clients to trust certificates issues by your own CA. Follow the instructions in the next se= ction. Be aware that the `default configuration for -libvirtd `__ allows any client = to +libvirtd `__ allows any client to connect provided they have a valid certificate issued by the CA for their = own IP address. You may want to change this to make it less (or more) permissive, depending on your needs. diff --git a/docs/meson.build b/docs/meson.build index a18def58a4..aa866bec51 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -19,7 +19,6 @@ docs_assets =3D [ docs_html_in_files =3D [ 'index', - 'remote', 'uri', ] @@ -97,6 +96,7 @@ docs_rst_files =3D [ 'platforms', 'programming-languages', 'python', + 'remote', 'securityprocess', 'storage', 'strategy', diff --git a/docs/remote.html.in b/docs/remote.html.in deleted file mode 100644 index 3a5258a0d5..0000000000 --- a/docs/remote.html.in +++ /dev/null @@ -1,297 +0,0 @@ - - - - -

    Remote support

    -

    -Libvirt allows you to access hypervisors running on remote -machines through authenticated and encrypted connections. -

    -
      - -

      - Basic usage -

      -

      -On the remote machine, libvirtd should be running in general. -See the section -on configuring libvirtd for more information. -

      -

      - Not all hypervisors supported by libvirt require a running - libvirtd. If you want to connect to a VMware ESX/ESXi or - GSX server then libvirtd is not necessary. See the - VMware ESX page for details. -

      -

      -To tell libvirt that you want to access a remote resource, -you should supply a hostname in the normal URI th= at is passed -to virConnectOpen (or virsh -c ...). -For example, if you normally use qemu:///system -to access the system-wide QEMU daemon, then to access -the system-wide QEMU daemon on a remote machine called -compute1.libvirt.org you would use -qemu://compute1.libvirt.org/system. -

      -

      -The section on remote URIs -describes in more detail these remote URIs. -

      -

      -From an API point of view, apart from the change in URI, the -API should behave the same. For example, ordinary calls -are routed over the remote connection transparently, and -values or errors from the remote side are returned to you -as if they happened locally. Some differences you may notice: -

      -
        -
      • Additional errors can be generated, specifically ones -relating to failures in the remote transport itself.
      • -
      • Remote calls are handled synchronously, so they will be -much slower than, say, direct hypervisor calls.
      • -
      -

      - Transports -

      -

      -Remote libvirt supports a range of transports: -

      -
      -
      tls
      -
      TLS - 1.0 (SSL 3.1) authenticated and encrypted TCP/IP socket, usually - listening on a public port number. To use this you will need to - gen= erate client and - server certificates. - The standard port is 16514. -
      -
      unix
      -
      Unix domain socket. Since this is only accessible on the - local machine, it is not encrypted, and uses Unix permissions or - SELinux for authentication. - The standard socket names are - /var/run/libvirt/libvirt-sock and - /var/run/libvirt/libvirt-sock-ro (the latter - for read-only connections). -
      -
      ssh
      -
      Transported over an ordinary - ssh - (secure shell) connection. - Requires Netcat (nc) - installed and libvirtd should be running - on the remote machine. You should use some sort of - ssh key management (eg. - ssh-agent) - otherwise programs which use - this transport will stop to ask for a password.
      -
      ext
      -
      Any external program which can make a connection to the - remote machine by means outside the scope of libvirt.
      -
      tcp
      -
      Unencrypted TCP/IP socket. Not recommended for production - use, this is normally disabled, but an administrator can enable - it for testing or use over a trusted network. - The standard port is 16509.
      -
      libssh2
      -
      Transport over the SSH protocol using - libssh2<= /a> instead -of the OpenSSH binary. This transport uses the libvirt authentication call= back for -all ssh authentication calls and therefore supports keyboard-interactive a= uthentication -even with graphical management applications. As with the classic ssh trans= port -netcat is required on the remote side.
      -
      libssh
      -
      Transport over the SSH protocol using - libssh= instead -of the OpenSSH binary. This transport uses the libvirt authentication call= back for -all ssh authentication calls and therefore supports keyboard-interactive a= uthentication -even with graphical management applications. As with the classic ssh trans= port -netcat is required on the remote side.
      -
      -

      - The choice of transport is determined by the URI scheme, - with tls as the default if no explicit transport is req= uested. -

      -

      - libvirtd configuration file<= /a> -

      -

      -Libvirtd (the remote daemon) is configured from a file called -/etc/libvirt/libvirtd.conf, or specified on -the command line using -f filename or ---config filename. -

      -

      -This file should contain lines of the form below. -Blank lines and comments beginning with # are ignored. -

      -
      setting =3D value
      -

      The following settings, values and default are:

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Line Default Meaning
      listen_tls [0|1] 1 (on) - Listen for secure TLS connections on the public TCP/IP port. - Note: it is also necessary to start the server in listening mode - by running it with --listen or adding a LIBVIRTD_ARGS=3D"--listen" - line to /etc/sysconfig/libvirtd. -
      listen_tcp [0|1] 0 (off) - Listen for unencrypted TCP connections on the public TCP/IP port. - Note: it is also necessary to start the server in listening mode. -
      tls_port "service" "16514" - The port number or service name to listen on for secure TLS connections. -
      tcp_port "service" "16509" - The port number or service name to listen on for unencrypted TCP connect= ions. -
      unix_sock_group "groupname" "root" - The UNIX group to own the UNIX domain socket. If the socket permissions = allow - group access, then applications running under matching group can access = the - socket. Only valid if running as root -
      unix_sock_ro_perms "octal-perms" "0777" - The permissions for the UNIX domain socket for read-only client connecti= ons. - The default allows any user to monitor domains. -
      unix_sock_rw_perms "octal-perms" "0700" - The permissions for the UNIX domain socket for read-write client connect= ions. - The default allows only root to manage domains. -
      tls_no_verify_certificate [0|1] 0 (certificates are verified) - If set to 1 then if a client certificate check fails, it is not an error. -
      tls_no_verify_address [0|1] 0 (addresses are verified) - If set to 1 then if a client IP address check fails, it is not an error. -
      key_file "filename" "/etc/pki/libvirt/ private/serverkey.pem" - Change the path used to find the server's private key. - If you set this to an empty string, then no private key is loaded. -
      cert_file "filename" "/etc/pki/libvirt/ servercert.pem" - Change the path used to find the server's certificate. - If you set this to an empty string, then no certificate is loaded. -
      ca_file "filename" "/etc/pki/CA/cacert.pem" - Change the path used to find the trusted CA certificate. - If you set this to an empty string, then no trusted CA certificate is lo= aded. -
      crl_file "filename" (no CRL file is used) - Change the path used to find the CA certificate revocation list (CRL) fi= le. - If you set this to an empty string, then no CRL is loaded. -
      tls_allowed_dn_list ["DN1", "DN2"] (none - DNs are not checked) -

      - Enable an access control list of client certificate Distinguished - Names (DNs) which can connect to the TLS port on this server. -

      -

      - The default is that DNs are not checked. -

      -

      - This list may contain wildcards such as "C=3DGB,ST=3DLondon,L=3DLo= ndon,O=3DLibvirt Project,CN=3D*" - Any * matches in the string matches any number of consecutive characters, - like a simplified glob(7). -

      -

      - Note that if this is an empty list, no client can connect. -

      -

      - Note also that GnuTLS returns DNs without spaces - after commas between the fields (and this is what we check against), - but the openssl x509 tool shows spaces. -

      - To make it easy to see the order of the fields in the DN a helper execut= able - virt-pki-query-dn is provided for this particular use case. -

      -

      -
      -

      - IPv6 support -

      -

      -The libvirtd service and libvirt remote client driver both use the -getaddrinfo() functions for name resolution and are -thus fully IPv6 enabled. ie, if a server has IPv6 address configured -the daemon will listen for incoming connections on both IPv4 and IPv6 -protocols. If a client has an IPv6 address configured and the DNS -address resolved for a service is reachable over IPv6, then an IPv6 -connection will be made, otherwise IPv4 will be used. In summary it -should just 'do the right thing(tm)'. -

      -

      - Limitations -

      -
        -
      • Fine-grained authentication: libvirt in general, -but in particular the remote case should support more -fine-grained authentication for operations, rather than -just read-write/read-only as at present. -
      • -
      -

      -Please come and discuss these issues and more on t= he mailing list. -

      - - diff --git a/docs/remote.rst b/docs/remote.rst new file mode 100644 index 0000000000..100df95e1f --- /dev/null +++ b/docs/remote.rst @@ -0,0 +1,219 @@ +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Remote support +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Libvirt allows you to access hypervisors running on remote machines through +authenticated and encrypted connections. + +.. contents:: + +Basic usage +----------- + +On the remote machine, ``libvirtd`` should be running in general. See +`libvirtd configuration file`_ section on how to configure ``libvirtd``. + +Not all hypervisors supported by libvirt require a running ``libvirtd``. I= f you +want to connect to a VMware ESX/ESXi or GSX server then ``libvirtd`` is not +necessary. See the `VMware ESX page `__ for details. + +To tell libvirt that you want to access a remote resource, you should supp= ly a +hostname in the normal `URI `__ that is passed to ``virConnectOp= en`` +(or ``virsh -c ...``). For example, if you normally use ``qemu:///system``= to +access the system-wide QEMU daemon, then to access the system-wide QEMU da= emon +on a remote machine called ``compute1.libvirt.org`` you would use +``qemu://compute1.libvirt.org/system``. + +The `section on remote URIs `__ describes in more det= ail +these remote URIs. + +From an API point of view, apart from the change in URI, the API should be= have +the same. For example, ordinary calls are routed over the remote connection +transparently, and values or errors from the remote side are returned to y= ou as +if they happened locally. Some differences you may notice: + +- Additional errors can be generated, specifically ones relating to failu= res in + the remote transport itself. +- Remote calls are handled synchronously, so they will be much slower tha= n, + say, direct hypervisor calls. + +Transports +---------- + +Remote libvirt supports a range of transports: + +``tls`` + `TLS `__ 1.0 (S= SL + 3.1) authenticated and encrypted TCP/IP socket, usually listening on a = public + port number. To use this you will need to `generate client and server + certificates `__. The standard port is 16514. +``unix`` + Unix domain socket. Since this is only accessible on the local machine,= it is + not encrypted, and uses Unix permissions or SELinux for authentication.= The + standard socket names are ``/var/run/libvirt/libvirt-sock`` and + ``/var/run/libvirt/libvirt-sock-ro`` (the latter for read-only connecti= ons). +``ssh`` + Transported over an ordinary `ssh (secure + shell) `__ connection. Requires `Netcat + (nc) `__ installed and libvirtd should = be + running on the remote machine. You should use some sort of ssh key mana= gement + (eg. `ssh-agent `__) otherwise progr= ams + which use this transport will stop to ask for a password. +``ext`` + Any external program which can make a connection to the remote machine = by + means outside the scope of libvirt. +``tcp`` + Unencrypted TCP/IP socket. Not recommended for production use, this is + normally disabled, but an administrator can enable it for testing or us= e over + a trusted network. The standard port is 16509. +``libssh2`` + Transport over the SSH protocol using `libssh2 `__ + instead of the OpenSSH binary. This transport uses the libvirt authenti= cation + callback for all ssh authentication calls and therefore supports + keyboard-interactive authentication even with graphical management + applications. As with the classic ssh transport netcat is required on t= he + remote side. +``libssh`` + Transport over the SSH protocol using `libssh `__ + instead of the OpenSSH binary. This transport uses the libvirt authenti= cation + callback for all ssh authentication calls and therefore supports + keyboard-interactive authentication even with graphical management + applications. As with the classic ssh transport netcat is required on t= he + remote side. + +The choice of transport is determined by the `URI +scheme `__, with ``tls`` as the default if no explicit +transport is requested. + +libvirtd configuration file +--------------------------- + +Libvirtd (the remote daemon) is configured from a file called +``/etc/libvirt/libvirtd.conf``, or specified on the command line using +``-f filename`` or ``--config filename``. + +This file should contain lines of the form below. Blank lines and comments +beginning with ``#`` are ignored. + +:: + + setting =3D value + +The following settings, values and default are: + +.. list-table:: + :header-rows: 1 + + * - Line + - Default + - Meaning + + * - listen_tls *[0|1]* + - 1 (on) + - Listen for secure TLS connections on the public TCP/IP port. + Note: it is also necessary to start the server in listening mode + by running it with --listen or adding a LIBVIRTD_ARGS=3D"--listen" = line to + /etc/sysconfig/libvirtd. + + * - listen_tcp *[0|1]* + - 0 (off) + - Listen for unencrypted TCP connections on the public TCP/IP port. N= ote: + it is also necessary to start the server in listening mode. + + * - tls_port *"service"* + - "16514" + - The port number or service name to listen on for secure TLS connect= ions. + + * - tcp_port *"service"* + - "16509" + - The port number or service name to listen on for unencrypted TCP + connections. + + * - unix_sock_group *"groupname"* + - "root" + - The UNIX group to own the UNIX domain socket. If the socket permiss= ions + allow group access, then applications running under matching group = can + access the socket. Only valid if running as root + + * - unix_sock_ro_perms *"octal-perms"* + - "0777" + - The permissions for the UNIX domain socket for read-only client + connections. The default allows any user to monitor domains. + + * - unix_sock_rw_perms *"octal-perms"* + - "0700" + - The permissions for the UNIX domain socket for read-write client + connections. The default allows only root to manage domains. + + * - tls_no_verify_certificate *[0|1]* + - 0 (certificates are verified) + - If set to 1 then if a client certificate check fails, it is not an + error. + + * - tls_no_verify_address *[0|1]* + - 0 (addresses are verified) + - If set to 1 then if a client IP address check fails, it is not an + error. + + * - key_file *"filename"* + - "/etc/pki/libvirt/private/serverkey.pem" + - Change the path used to find the server's private key. If you set t= his + to an empty string, then no private key is loaded. + + * - cert_file *"filename"* + - "/etc/pki/libvirt/servercert.pem" + - Change the path used to find the server's certificate. If you set t= his + to an empty string, then no certificate is loaded. + + * - ca_file *"filename"* + - "/etc/pki/CA/cacert.pem" + - Change the path used to find the trusted CA certificate. If you set= this + to an empty string, then no trusted CA certificate is loaded. + + * - crl_file *"filename"* + - (no CRL file is used) + - Change the path used to find the CA certificate revocation list (CR= L) + file. If you set this to an empty string, then no CRL is loaded. + + * - tls_allowed_dn_list ["DN1", "DN2"] + - (none - DNs are not checked) + - Enable an access control list of client certificate Distinguished N= ames + (DNs) which can connect to the TLS port on this server. + + The default is that DNs are not checked. + + This list may contain wildcards such as + ``"C=3DGB,ST=3DLondon,L=3DLondon,O=3DLibvirt Project,CN=3D*"`` + Any * matches in the string matches any number of consecutive chara= cters, + like a simplified ``glob(7)``. + + Note that if this is an empty list, *no client can connect*. + + Note also that GnuTLS returns DNs without spaces after commas betwe= en + the fields (and this is what we check against), but the ``openssl x= 509`` + tool shows spaces. + + To make it easy to see the order of the fields in the DN a helper + executable ``virt-pki-query-dn`` is provided for this particular use + case. + +IPv6 support +------------ + +The libvirtd service and libvirt remote client driver both use the +``getaddrinfo()`` functions for name resolution and are thus fully IPv6 en= abled. +ie, if a server has IPv6 address configured the daemon will listen for inc= oming +connections on both IPv4 and IPv6 protocols. If a client has an IPv6 addre= ss +configured and the DNS address resolved for a service is reachable over IP= v6, +then an IPv6 connection will be made, otherwise IPv4 will be used. In summ= ary it +should just 'do the right thing(tm)'. + +Limitations +----------- + +- Fine-grained authentication: libvirt in general, but in particular the = remote + case should support more fine-grained authentication for operations, ra= ther + than just read-write/read-only as at present. + +Please come and discuss these issues and more on `the mailing +list `__. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630230; cv=none; d=zohomail.com; s=zohoarc; b=MIGRwr4GqtZqtKK1q6JsMYouef5Z2xQOWkh1eKPpy0ViNU6PKjWW5j+ZXc6+mLReL3G5XB6Rs+hRBF9Y5NcPSKPTORZMOw8OfVPIRRFmjSWHo3fKAE6LtALnT7BKiRgglU4MyGzrWvk4pQUxGDMhJQJG+ztGW8RouOxHpd/7PuU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630230; 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=q9TcqlvdvCjso8zZjsDSr0cIOI9yG1PlPYdnumhdIcs=; b=MgGArcHoGau6yTUpuhtv0X8eDPGoV/ur1vPqsVQ93lnUvEGhoVs/NqhtNHW2aWLc87qblMCRA9LS1hvEvDt3qmVM6mAAiFHyVxz+IJZJmz8Uv/tcO6Uqm6QS5bU3/DR/bIP8bj56VrZyUZBvvHF4s1TYd59T07YTEd6eea76reA= 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 1650630230879379.71579313368693; Fri, 22 Apr 2022 05:23:50 -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-507-Bd6CqTpIM3WeC-4tyZm4nw-1; Fri, 22 Apr 2022 08:23:46 -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 E9D633820F7E; Fri, 22 Apr 2022 12:23:40 +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 D5D3F15230A0; Fri, 22 Apr 2022 12:23:40 +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 35F5D194035F; Fri, 22 Apr 2022 12:23:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F28EC1940378 for ; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D6134416362; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 598C1572328 for ; Fri, 22 Apr 2022 12:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630229; 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=q9TcqlvdvCjso8zZjsDSr0cIOI9yG1PlPYdnumhdIcs=; b=KOwCVxU9/EG3nmhkf8resi88wVv9QwUS8e/VHRbDk6TuZzCa5I1KoH9oBAdEtE/BJUqvX3 GeUG6gyJaiL8UxcvVV2VxKODRVJlGtrGm6cjMBIbMIUBYj7cv/h8r5nBNzApNWB7su+HAt 6OvcHrMmisd1nNf2ahCvk5OYMFG9Z24= X-MC-Unique: Bd6CqTpIM3WeC-4tyZm4nw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/15] docs: remote: Remove 'Limitations' paragraph Date: Fri, 22 Apr 2022 14:23:22 +0200 Message-Id: <6c444ec05a0a68b70cc2d959e6b34e82236cfd24.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630231942100010 Content-Type: text/plain; charset="utf-8" The paragraph talks about lack of fine grained access control which was already added a long time ago. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/remote.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/remote.rst b/docs/remote.rst index 100df95e1f..933166144d 100644 --- a/docs/remote.rst +++ b/docs/remote.rst @@ -207,13 +207,3 @@ connections on both IPv4 and IPv6 protocols. If a clie= nt has an IPv6 address configured and the DNS address resolved for a service is reachable over IP= v6, then an IPv6 connection will be made, otherwise IPv4 will be used. In summ= ary it should just 'do the right thing(tm)'. - -Limitations ------------ - -- Fine-grained authentication: libvirt in general, but in particular the = remote - case should support more fine-grained authentication for operations, ra= ther - than just read-write/read-only as at present. - -Please come and discuss these issues and more on `the mailing -list `__. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630228; cv=none; d=zohomail.com; s=zohoarc; b=gQ2wVMytPa3v16aAkq6of9qLah0G8VD33KGc0AEyflSoSGHIRaZT9q83ZVqxKI6QoCq6UI1U9hUHZdfkv2vYP+m4GOwk5sAfvSoqRELwGQRXCTFy+DsTnDVL7cBKd1iaiUHIW8HF8FdX1BreVlBOE60O2csXeZ3oQyGgwfucXAo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630228; 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=8mOmyZFeDj2Cp5CCgDJv3w9bcGwAc4eDNEGNt6RllDA=; b=OU0bIrgHMuJvHqPAqohAaYEant4Po2UebArHbpFUNGtjgIW+ReSybuPfoSXahAshnlC38D+zn8beydSsc/oCVMVqwHRmzapKpIIyoio5/9gG1Hev10u+R8bWnh95ryDA/WuqTiBYjcJGWpCnCKoK5Nuq3sEQ+2n2hnV1oHV41zI= 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 1650630228495640.6849877082526; Fri, 22 Apr 2022 05:23:48 -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-12-JClDF5t3OFmJ4ljX7FfQtQ-1; Fri, 22 Apr 2022 08:23:45 -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 1FD3A833974; Fri, 22 Apr 2022 12:23:42 +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 F14F440D0174; Fri, 22 Apr 2022 12:23:41 +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 A5AFD194035F; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 14D1C1940351 for ; Fri, 22 Apr 2022 12:23:40 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EDD48416362; Fri, 22 Apr 2022 12:23:39 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3C9C0572328 for ; Fri, 22 Apr 2022 12:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630227; 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=VVzOGc7jnqLO8Tm0VXinj4+VbD5DWQmIG4ehSXvywq4=; b=AvKF5RZzISmtgQfOtsSeNqIGcDCFNq8E3VS0Boss0P/SuY2UX9AP/McPnuHg2zzOTUDfg9 Q2TGyWwvwy61QiIyKbt/JQOWseEMDa0Xz/uJ3idTaJrC2Z15bG7NBEHP/Cl/wXgN3C/2RI qoS3SKALb2OXRoO2M4i2HvWY3u9AAsc= X-MC-Unique: JClDF5t3OFmJ4ljX7FfQtQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 07/15] docs: Convert 'uri' page to rst Date: Fri, 22 Apr 2022 14:23:23 +0200 Message-Id: <47c5e5326a40a6010ea4e6c93c1fdf0e95504a93.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630229988100007 Content-Type: text/plain; charset="utf-8" Adjust links in the process. Note that the conversion to the table is temporary and upcoming patch will modify it for better readability. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/meson.build | 2 +- docs/uri.html.in | 507 ----------------------------------------------- docs/uri.rst | 447 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 448 insertions(+), 508 deletions(-) delete mode 100644 docs/uri.html.in create mode 100644 docs/uri.rst diff --git a/docs/meson.build b/docs/meson.build index aa866bec51..d71f6006dd 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -19,7 +19,6 @@ docs_assets =3D [ docs_html_in_files =3D [ 'index', - 'uri', ] docs_rst_files =3D [ @@ -106,6 +105,7 @@ docs_rst_files =3D [ 'testapi', 'testsuites', 'testtck', + 'uri', 'windows', ] diff --git a/docs/uri.html.in b/docs/uri.html.in deleted file mode 100644 index 61917e77b4..0000000000 --- a/docs/uri.html.in +++ /dev/null @@ -1,507 +0,0 @@ - - - - -

      Connection URIs

      - -
        -

        -Since libvirt supports many different kinds of virtualization -(often referred to as "drivers" or "hypervisors"), we need a -way to be able to specify which driver a connection refers to. -Additionally we may want to refer to a driver on a remote -machine over the network. -

        -

        -To this end, libvirt uses URIs as used on the Web and as defined in RFC 2396. This page -documents libvirt URIs. -

        -

        Specifying URIs to libvirt

        - -

        - The URI is passed as the name parameter to - - virConnectOpen - - or - - virConnectOpenReadOnly - . - For example: -

        -
        -virConnectPtr conn =3D virConnectOpenReadOnly ("test:///default");
        -
        -

        - Configuring URI aliases -

        - -

        -To simplify life for administrators, it is possible to setup URI aliases i= n a -libvirt client configuration file. The configuration file is /etc/li= bvirt/libvirt.conf -for the root user, or $XDG_CONFIG_HOME/libvirt/libvirt.conf f= or any unprivileged user. -In this file, the following syntax can be used to setup aliases -

        - -
        -uri_aliases =3D [
        -  "hail=3Dqemu+ssh://root@hail.cloud.example.com/system",
        -  "sleet=3Dqemu+ssh://root@sleet.cloud.example.com/system",
        -]
        -
        - -

        - A URI alias should be a string made up from the characters - a-Z, 0-9, _, -. Following the =3D - can be any libvirt URI string, including arbitrary URI parameters. - URI aliases will apply to any application opening a libvirt - connection, unless it has explicitly passed the VIR_CONNECT_NO_ALI= ASES - parameter to virConnectOpenAuth. If the passed in - URI contains characters outside the allowed alias character - set, no alias lookup will be attempted. -

        - -

        Default URI choice

        - -

        -If the URI passed to virConnectOpen* is NULL, then libvirt wi= ll use the following -logic to determine what URI to use. -

        - -
          -
        1. The environment variable LIBVIRT_DEFAULT_URI
        2. -
        3. The client configuration file uri_default parameter=
        4. -
        5. Probe each hypervisor in turn until one that works is found
        6. -
        - -

        - Specifying URIs to virsh, virt-manager and virt-= install -

        -

        -In virsh use the -c or --connect option: -

        -
        -virsh -c test:///default list
        -
        -

        -If virsh finds the environment variable -VIRSH_DEFAULT_CONNECT_URI set, it will try this URI by -default. Use of this environment variable is, however, deprecated -now that libvirt supports LIBVIRT_DEFAULT_URI itself. -

        -

        -When using the interactive virsh shell, you can also use the -connect URI command to reconnect to another -hypervisor. -

        -

        -In virt-manager use the -c or --connect=3DURI= option: -

        -
        -virt-manager -c test:///default
        -
        -

        -In virt-install use the --connect=3DURI option: -

        -
        -virt-install --connect=3Dtest:///default [other options]
        -
        -

        - xen:///system URI -

        -

        - This section describes a feature which is new in libvirt > -0.2.3. For libvirt ≤ 0.2.3 use "= xen". -

        -

        -To access a Xen hypervisor running on the local machine -use the URI xen:///system. -

        -

        - qemu:///... QEMU and KVM URIs -

        -

        -To use QEMU support in libvirt you must be running the -libvirtd daemon (named libvirt_qemud -in releases prior to 0.3.0). The purpose of this -daemon is to manage qemu instances. -

        -

        -The libvirtd daemon should be started by the -init scripts when the machine boots. It should appear as -a process libvirtd --daemon running as root -in the background and will handle qemu instances on behalf -of all users of the machine (among other things).

        -

        -So to connect to the daemon, one of two different URIs is used: -

        -
          -
        • qemu:///system connects to a system mode daemon. -
        • qemu:///session connects to a session mode daemon. =
        • -
        -

        -(If you do libvirtd --help, the daemon will print -out the paths of the Unix domain socket(s) that it listens on in -the various different modes). -

        -

        -KVM URIs are identical. You select between qemu, qemu accelerated and -KVM guests in the guest XML as described -here. -

        -

        - Remote URIs -

        -

        -Remote URIs have the general form ("[...]" meaning an optional part): -

        -

        driver[+transport]://[= username@][hostname][:port]/[= path][?extraparameters] -

        -

        -Either the transport or the hostname must be given in order -to distinguish this from a local URI. -

        -

        -Some examples: -

        -
          -
        • xen+ssh://rjones@towada/system
          — Connec= t to a -remote Xen hypervisor on host towada using ssh transport and = ssh -username rjones. -
        • -
        • xen://towada/system
          — Connect to a -remote Xen hypervisor on host towada using TLS. -
        • -
        • xen://towada/system?no_verify=3D1
          — Con= nect to a -remote Xen hypervisor on host towada using TLS. Do not verify -the server's certificate. -
        • -
        • qemu+unix:///system?socket=3D/opt/libvirt/run/libvirt/libv= irt-sock
          — -Connect to the local qemu instances over a non-standard -Unix socket (the full path to the Unix socket is -supplied explicitly in this case). -
        • -
        • test+tcp://localhost:5000/default
          — -Connect to a libvirtd daemon offering unencrypted TCP/IP connections -on localhost port 5000 and use the test driver with default -settings. -
        • -
        • qemu+libssh2://user@host/system?known_hosts=3D/home/user/.ssh/kn= own_hosts
          — -Connect to a remote host using a ssh connection with the libssh2 driver -and use a different known_hosts file.
        • -
        • qemu+libssh://user@host/system?known_hosts=3D/home/user/.ssh/kno= wn_hosts
          — -Connect to a remote host using a ssh connection with the libssh driver -and use a different known_hosts file.
        • -
        -

        - Extra parameters -

        -

        -Extra parameters can be added to remote URIs as part -of the query string (the part following ?). -Remote URIs understand the extra parameters shown below. -Any others are passed unmodified through to the back end. -Note that parameter values must be -URI-es= caped. -

        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Name Transports Meaning
        - name - - any transport - - The name passed to the remote virConnectOpen function. The - name is normally formed by removing transport, hostname, port - number, username and extra parameters from the remote URI, but in certain - very complex cases it may be better to supply the name explicitly. -
        - Example: name=3Dqemu:///system
        - tls_priority - tls - A valid GNUTLS priority string -
        - Example: tls_priority=3DNORMAL:-VERS-SSL3.0
        - mode - unix, ssh, libssh, libssh2 -
        -
        auto
        automatically determine the daem= on
        -
        direct
        connect to per-driver daemons<= /dd> -
        legacy
        connect to libvirtd
        -
        - Can also be set in libvirt.conf as remote_mod= e -
        - Example: mode=3Ddirect
        - proxy - auto, netcat, native -
        -
        auto
        try native, fallback to netcat -
        netcat
        only use netcat
        -
        native
        only use native
        -
        - Can also be set in libvirt.conf as remote_pro= xy -
        - Example: proxy=3Dnative
        - command - ssh, ext - The external command. For ext transport this is required. - For ssh the default is ssh. - The PATH is searched for the command. -
        - Example: command=3D/opt/openssh/bin/ssh
        - socket - unix, ssh, libssh2, libssh - The path to the Unix domain socket, which overrides the - compiled-in default. For ssh transport, this is passed to - the remote netcat command (see next). -
        - Example: socket=3D/opt/libvirt/run/libvirt/libvirt-sock=
        - netcat - ssh, libssh2, libssh - The name of the netcat command on the remote machine. - The default is nc. This is not permitted - when using the native proxy mode. For ssh - transport, libvirt constructs an ssh command which looks - like: - -
        command -p port [-l username] hostname netcat -U socket
        -
        - - where port, username, hostname can be - specified as part of the remote URI, and command, netcat - and socket come from extra parameters (or - sensible defaults). - -
        - Example: netcat=3D/opt/netcat/bin/nc
        - keyfile - ssh, libssh2, libssh - The name of the private key file to use to authentication to the remote - machine. If this option is not used the default keys are used. -
        - Example: keyfile=3D/root/.ssh/example_key
        - no_verify - ssh, tls - SSH: If set to a non-zero value, this disables client's strict host key - checking making it auto-accept new host keys. Existing host keys will - still be validated. -
        -
        - TLS: If set to a non-zero value, this disables client checks of the - server's certificate. Note that to disable server checks of - the client's certificate or IP address you must - change the libvirtd - configuration. -
        - Example: no_verify=3D1
        - no_tty - ssh - If set to a non-zero value, this stops ssh from asking for - a password if it cannot log in to the remote machine automatically - (eg. using ssh-agent etc.). Use this when you don't have access - to a terminal - for example in graphical programs which use libvirt. -
        - Example: no_tty=3D1
        - pkipath - tls - Specifies x509 certificates path for the client. If any of - the CA certificate, client certificate, or client key is - missing, the connection will fail with a fatal error. -
        - Example: pkipath=3D/tmp/pki/client
        - known_hosts - libssh2, libssh - Path to the known_hosts file to verify the host key against. LibSSH2 and - libssh support OpenSSH-style known_hosts files, although LibSSH2 does not - support all key types, so using files created by the OpenSSH binary may - result into truncating the known_hosts file. Thus, with LibSSH2 it's - recommended to use the default known_hosts file is located in libvirt's - client local configuration directory e.g.: ~/.config/libvirt/known_hosts. - Note: Use absolute paths. -
        - Example: known_hosts=3D/root/.ssh/known_hosts -
        - known_hosts_verify - libssh2, libssh - If set to normal (default), then the user will be - asked to accept new host keys. If set to auto, new - host keys will be auto-accepted, but existing host keys will - still be validated. If set to ignore, this disabl= es - client's strict host key checking. -
        - Example: known_hosts_verify=3Dignore
        - sshauth - libssh2, libssh - A comma separated list of authentication methods to use. Default (is - "agent,privkey,password,keyboard-interactive". The order of the methods - is preserved. Some methods may require additional parameters. -
        - Example: sshauth=3Dprivkey,agent
        -

        - test:///... Test URIs -

        -

        -The test driver is a dummy hypervisor for test purposes. -The URIs supported are: -

        -
          -
        • test:///default connects to a default set of -host definitions built into the driver.
        • -
        • test:///path/to/host/definitions connects to -a set of host definitions held in the named file. -
        • -
        -

        - Other & legacy URI formats -

        -

        - NULL and empty string URIs -

        -

        -Libvirt allows you to pass a NULL pointer to -virConnectOpen*. Empty string ("") acts in -the same way. Traditionally this has meant -connect to the local Xen hypervisor. However in future this -may change to mean connect to the best available hypervisor. -

        -

        -The theory is that if, for example, Xen is unavailable but the -machine is running an OpenVZ kernel, then we should not try to -connect to the Xen hypervisor since that is obviously the wrong -thing to do. -

        -

        -In any case applications linked to libvirt can continue to pass -NULL as a default choice, but should always allow the -user to override the URI, either by constructing one or by allowing -the user to type a URI in directly (if that is appropriate). If your -application wishes to connect specifically to a Xen hypervisor, then -for future proofing it should choose a full xen= :///system URI. -

        -

        - Legacy: "xen" -

        -

        -Another legacy URI is to specify name as the string -"xen". This will continue to refer to the Xen -hypervisor. However you should prefer a full x= en:///system URI in all future code. -

        - - diff --git a/docs/uri.rst b/docs/uri.rst new file mode 100644 index 0000000000..949032e0ff --- /dev/null +++ b/docs/uri.rst @@ -0,0 +1,447 @@ +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Connection URIs +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +.. contents:: + +Since libvirt supports many different kinds of virtualization (often refer= red to +as "drivers" or "hypervisors"), we need a way to be able to specify which = driver +a connection refers to. Additionally we may want to refer to a driver on a +remote machine over the network. + +To this end, libvirt uses URIs as used on the Web and as defined in `RFC +2396 `__. This page documents libvirt +URIs. + +Specifying URIs to libvirt +-------------------------- + +The URI is passed as the ``name`` parameter to +`virConnectOpen `__ or +`virConnectOpenReadOnly `__ +. For example: + +:: + + virConnectPtr conn =3D virConnectOpenReadOnly ("test:///default"); + +Configuring URI aliases +----------------------- + +To simplify life for administrators, it is possible to setup URI aliases i= n a +libvirt client configuration file. The configuration file is +``/etc/libvirt/libvirt.conf`` for the root user, or +``$XDG_CONFIG_HOME/libvirt/libvirt.conf`` for any unprivileged user. In th= is +file, the following syntax can be used to setup aliases + +:: + + uri_aliases =3D [ + "hail=3Dqemu+ssh://root@hail.cloud.example.com/system", + "sleet=3Dqemu+ssh://root@sleet.cloud.example.com/system", + ] + +A URI alias should be a string made up from the characters ``a-Z, 0-9, _, = -``. +Following the ``=3D`` can be any libvirt URI string, including arbitrary U= RI +parameters. URI aliases will apply to any application opening a libvirt +connection, unless it has explicitly passed the ``VIR_CONNECT_NO_ALIASES`` +parameter to ``virConnectOpenAuth``. If the passed in URI contains charact= ers +outside the allowed alias character set, no alias lookup will be attempted. + +Default URI choice +------------------ + +If the URI passed to ``virConnectOpen*`` is NULL, then libvirt will use the +following logic to determine what URI to use. + +#. The environment variable ``LIBVIRT_DEFAULT_URI`` +#. The client configuration file ``uri_default`` parameter +#. Probe each hypervisor in turn until one that works is found + +Specifying URIs to virsh, virt-manager and virt-install +------------------------------------------------------- + +In virsh use the ``-c`` or ``--connect`` option: + +:: + + virsh -c test:///default list + +If virsh finds the environment variable ``VIRSH_DEFAULT_CONNECT_URI`` set,= it +will try this URI by default. Use of this environment variable is, however, +deprecated now that libvirt supports ``LIBVIRT_DEFAULT_URI`` itself. + +When using the interactive virsh shell, you can also use the ``connect`` *= URI* +command to reconnect to another hypervisor. + +In virt-manager use the ``-c`` or ``--connect=3D``\ *URI* option: + +:: + + virt-manager -c test:///default + +In virt-install use the ``--connect=3D``\ *URI* option: + +:: + + virt-install --connect=3Dtest:///default [other options] + +xen:///system URI +----------------- + +*This section describes a feature which is new in libvirt > 0.2.3. For lib= virt \ufffd\ufffd\ufffd +0.2.3 use* `Legacy: "xen"`_ *URI*. + +To access a Xen hypervisor running on the local machine use the URI +``xen:///system``. + +qemu:///... QEMU and KVM URIs +----------------------------- + +To use QEMU support in libvirt you must be running the ``libvirtd`` daemon +(named ``libvirt_qemud`` in releases prior to 0.3.0). The purpose of this = daemon +is to manage qemu instances. + +The ``libvirtd`` daemon should be started by the init scripts when the mac= hine +boots. It should appear as a process ``libvirtd --daemon`` running as root= in +the background and will handle qemu instances on behalf of all users of the +machine (among other things). + +So to connect to the daemon, one of two different URIs is used: + +- ``qemu:///system`` connects to a system mode daemon. +- ``qemu:///session`` connects to a session mode daemon. + +(If you do ``libvirtd --help``, the daemon will print out the paths of the= Unix +domain socket(s) that it listens on in the various different modes). + +KVM URIs are identical. You select between qemu, qemu accelerated and KVM = guests +in the `guest XML as described here `__. + +Remote URIs +----------- + +Remote URIs have the general form ("[...]" meaning an optional part): + +:: + + driver[+transport]://[username@][hostname][:port]/[path][?extraparameter= s] + +Either the transport or the hostname must be given in order to distinguish= this +from a local URI. + +Some examples: + +- ``xen+ssh://rjones@towada/system`` + \ufffd\ufffd\ufffd Connect to a remote Xen hypervisor on host ``towada`= ` using ssh transport + and ssh username ``rjones``. +- ``xen://towada/system`` + \ufffd\ufffd\ufffd Connect to a remote Xen hypervisor on host ``towada`= ` using TLS. +- ``xen://towada/system?no_verify=3D1`` + \ufffd\ufffd\ufffd Connect to a remote Xen hypervisor on host ``towada`= ` using TLS. Do not + verify the server's certificate. +- ``qemu+unix:///system?socket=3D/opt/libvirt/run/libvirt/libvirt-sock`` + \ufffd\ufffd\ufffd Connect to the local qemu instances over a non-stand= ard Unix socket (the + full path to the Unix socket is supplied explicitly in this case). +- ``test+tcp://localhost:5000/default`` + \ufffd\ufffd\ufffd Connect to a libvirtd daemon offering unencrypted TC= P/IP connections on + localhost port 5000 and use the test driver with default settings. +- ``qemu+libssh2://user@host/system?known_hosts=3D/home/user/.ssh/known_h= osts`` + \ufffd\ufffd\ufffd Connect to a remote host using a ssh connection with= the libssh2 driver and + use a different known_hosts file. +- ``qemu+libssh://user@host/system?known_hosts=3D/home/user/.ssh/known_ho= sts`` + \ufffd\ufffd\ufffd Connect to a remote host using a ssh connection with= the libssh driver and + use a different known_hosts file. + +Extra parameters +~~~~~~~~~~~~~~~~ + +Extra parameters can be added to remote URIs as part of the query string (= the +part following ``?``). Remote URIs understand the extra parameters shown +below. Any others are passed unmodified through to the back end. Note that +parameter values must be +`URI-escaped `__. + ++-------------------------+-------------------------+---------------------= ----+ +| Name | Transports | Meaning = | ++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D+ +| ``name`` | *any transport* | The name passed to t= he | +| | | remote virConnectOpe= n | +| | | function. The name i= s | +| | | normally formed by = | +| | | removing transport, = | +| | | hostname, port numbe= r, | +| | | username and extra = | +| | | parameters from the = | +| | | remote URI, but in = | +| | | certain very complex= | +| | | cases it may be bett= er | +| | | to supply the name = | +| | | explicitly. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``name=3Dqemu:///sys= tem`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``tls_priority`` | tls | A valid GNUTLS prior= ity | +| | | string = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``tls_priorit = | +| | | y=3DNORMAL:-VERS-SSL= 3.0`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``mode`` | unix, ssh, libssh, | ``auto`` = | +| | libssh2 | automatically = | +| | | determine the dae= mon | +| | | ``direct`` = | +| | | connect to = | +| | | per-driver daemon= s | +| | | ``legacy`` = | +| | | connect to libvir= td | +| | | = | +| | | Can also be set in = | +| | | ``libvirt.conf`` as = | +| | | ``remote_mode`` = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``mode=3Ddirect`` = | ++-------------------------+-------------------------+---------------------= ----+ +| ``proxy`` | auto, netcat, native | ``auto`` = | +| | | try native, fallb= ack | +| | | to netcat = | +| | | ``netcat`` = | +| | | only use netcat = | +| | | ``native`` = | +| | | only use native = | +| | | = | +| | | Can also be set in = | +| | | ``libvirt.conf`` as = | +| | | ``remote_proxy`` = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``proxy=3Dnative`` = | ++-------------------------+-------------------------+---------------------= ----+ +| ``command`` | ssh, ext | The external command= . | +| | | For ext transport th= is | +| | | is required. For ssh= | +| | | the default is ``ssh= ``. | +| | | The PATH is searched= | +| | | for the command. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``command = | +| | | =3D/opt/openssh/bin/= ssh`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``socket`` | unix, ssh, libssh2, | The path to the Unix= | +| | libssh | domain socket, which= | +| | | overrides the = | +| | | compiled-in default.= | +| | | For ssh transport, t= his | +| | | is passed to the rem= ote | +| | | netcat command (see = | +| | | next). = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | `` = | +| | | socket=3D/opt/libvir= t/run | +| | | /libvirt/libvirt-soc= k`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``netcat`` | ssh, libssh2, libssh | The name of the netc= at | +| | | command on the remot= e | +| | | machine. The default= is | +| | | ``nc``. This is not = | +| | | permitted when using= | +| | | the ``native`` proxy= | +| | | mode. For ssh = | +| | | transport, libvirt = | +| | | constructs an ssh = | +| | | command which looks = | +| | | like: = | +| | | = | +| | | ``command -p port`` = | +| | | ``[-l username]`` = | +| | | ``hostname`` or = | +| | | = | +| | | ``netcat -U socket``= | +| | | = | +| | | where *port*, = | +| | | *username*, *hostnam= e* | +| | | can be specified as = | +| | | part of the remote U= RI, | +| | | and *command*, *netc= at* | +| | | and *socket* come fr= om | +| | | extra parameters (or= | +| | | sensible defaults). = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``netc = | +| | | at=3D/opt/netcat/bin= /nc`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``keyfile`` | ssh, libssh2, libssh | The name of the priv= ate | +| | | key file to use to = | +| | | authentication to th= e | +| | | remote machine. If t= his | +| | | option is not used t= he | +| | | default keys are use= d. | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``keyfile=3D/ = | +| | | root/.ssh/example_ke= y`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``no_verify`` | ssh, tls | SSH: If set to a = | +| | | non-zero value, this= | +| | | disables client's = | +| | | strict host key = | +| | | checking making it = | +| | | auto-accept new host= | +| | | keys. Existing host = | +| | | keys will still be = | +| | | validated. = | +| | | TLS: If set to a = | +| | | non-zero value, this= | +| | | disables client chec= ks | +| | | of the server's = | +| | | certificate. Note th= at | +| | | to disable server = | +| | | checks of the client= 's | +| | | certificate or IP = | +| | | address you must = | +| | | `change the libvirtd= | +| | | conf = | +| | | iguration <#Remote_l= ibv | +| | | irtd_configuration>`= __. | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``no_verify=3D1`` = | ++-------------------------+-------------------------+---------------------= ----+ +| ``no_tty`` | ssh | If set to a non-zero= | +| | | value, this stops ss= h | +| | | from asking for a = | +| | | password if it canno= t | +| | | log in to the remote= | +| | | machine automaticall= y | +| | | (eg. using ssh-agent= | +| | | etc.). Use this when= | +| | | you don't have acces= s | +| | | to a terminal - for = | +| | | example in graphical= | +| | | programs which use = | +| | | libvirt. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: ``no_tty=3D= 1`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``pkipath`` | tls | Specifies x509 = | +| | | certificates path fo= r | +| | | the client. If any o= f | +| | | the CA certificate, = | +| | | client certificate, = or | +| | | client key is missin= g, | +| | | the connection will = | +| | | fail with a fatal = | +| | | error. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``pk = | +| | | ipath=3D/tmp/pki/cli= ent`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``known_hosts`` | libssh2, libssh | Path to the known_ho= sts | +| | | file to verify the h= ost | +| | | key against. LibSSH2= | +| | | and libssh support = | +| | | OpenSSH-style = | +| | | known_hosts files, = | +| | | although LibSSH2 doe= s | +| | | not support all key = | +| | | types, so using file= s | +| | | created by the OpenS= SH | +| | | binary may result in= to | +| | | truncating the = | +| | | known_hosts file. Th= us, | +| | | with LibSSH2 it's = | +| | | recommended to use t= he | +| | | default known_hosts = | +| | | file is located in = | +| | | libvirt's client loc= al | +| | | configuration direct= ory | +| | | e.g.: = | +| | | ~/.conf = | +| | | ig/libvirt/known_hos= ts. | +| | | Note: Use absolute = | +| | | paths. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``known_hosts=3D/ = | +| | | root/.ssh/known_host= s`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``known_hosts_verify`` | libssh2, libssh | If set to ``normal``= | +| | | (default), then the = | +| | | user will be asked t= o | +| | | accept new host keys= . | +| | | If set to ``auto``, = new | +| | | host keys will be = | +| | | auto-accepted, but = | +| | | existing host keys w= ill | +| | | still be validated. = If | +| | | set to ``ignore``, t= his | +| | | disables client's = | +| | | strict host key = | +| | | checking. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | ``know = | +| | | n_hosts_verify=3Dign= ore`` | ++-------------------------+-------------------------+---------------------= ----+ +| ``sshauth`` | libssh2, libssh | A comma separated li= st | +| | | of authentication = | +| | | methods to use. Defa= ult | +| | | (is = | +| | | "agent,privkey,passw= ord | +| | | ,keyboard-interactiv= e". | +| | | The order of the = | +| | | methods is preserved= . | +| | | Some methods may = | +| | | require additional = | +| | | parameters. = | ++-------------------------+-------------------------+---------------------= ----+ +| | | Example: = | +| | | `` = | +| | | sshauth=3Dprivkey,ag= ent`` | ++-------------------------+-------------------------+---------------------= ----+ + +test:///... Test URIs +--------------------- + +The test driver is a dummy hypervisor for test purposes. The URIs supporte= d are: + +- ``test:///default`` connects to a default set of host definitions built= into + the driver. +- ``test:///path/to/host/definitions`` connects to a set of host definiti= ons + held in the named file. + +Other & legacy URI formats +-------------------------- + +NULL and empty string URIs +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Libvirt allows you to pass a ``NULL`` pointer to ``virConnectOpen*``. Empty +string (``""``) acts in the same way. Traditionally this has meant \ufffd\= ufffd\ufffdconnect to +the local Xen hypervisor\ufffd\ufffd?. However in future this may change t= o mean \ufffd\ufffd\ufffdconnect to +the best available hypervisor\ufffd\ufffd?. + +The theory is that if, for example, Xen is unavailable but the machine is +running an OpenVZ kernel, then we should not try to connect to the Xen +hypervisor since that is obviously the wrong thing to do. + +In any case applications linked to libvirt can continue to pass ``NULL`` a= s a +default choice, but should always allow the user to override the URI, eith= er by +constructing one or by allowing the user to type a URI in directly (if tha= t is +appropriate). If your application wishes to connect specifically to a Xen +hypervisor, then for future proofing it should choose a full +`xen:///system URI`_. + +Legacy: ``"xen"`` +~~~~~~~~~~~~~~~~~ + +Another legacy URI is to specify name as the string ``"xen"``. This will +continue to refer to the Xen hypervisor. However you should prefer a full +`xen:///system URI`_ in all future code. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630230; cv=none; d=zohomail.com; s=zohoarc; b=EpcCLQ9L6j/uxwgIjNV4MhdJwNQJmcQ1jiUXQ8L0NU6wGGBUxpS8QQfR4BhNuhm4+yG4ZNxCflGdWtMND10uta9AbnHOBdL7DqBsqy8T3PxcuNHlZKmhGczsJiO9Mr2Rw5m9xoLKsedLOHGPamHGifDw5X5bBT8HZUwX69M+1aI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630230; 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=Url0FCoPRYpc+hBr616YW5prdQqy6Gbzj0pbIzC1Xiw=; b=eEqWW0xBwjEpGvDmlarN68pm2aLkFzVXJ9noVGFD5qXtgEPTPmbZmOMeB+xKzgZVlC8eJ02GyGCQymIwRXWwT9yUDIhStHZ8YoAgWFue0Zb6bmxdC+okBjf2RBHHiaHGICMo22Bq+0z21bfCcauE2gyNdGRcS3CF+MRKeZdd4WM= 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 1650630230816395.867006020655; Fri, 22 Apr 2022 05:23:50 -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-207-wDpvDSNhOa-lvpoXYkGdwA-1; Fri, 22 Apr 2022 08:23:46 -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 C663B1014A67; Fri, 22 Apr 2022 12:23:41 +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 AA97154CE4D; Fri, 22 Apr 2022 12:23:41 +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 78A321940351; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EE918194034C for ; Fri, 22 Apr 2022 12:23:40 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E1713572328; Fri, 22 Apr 2022 12:23:40 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48D47416361 for ; Fri, 22 Apr 2022 12:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630229; 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=Url0FCoPRYpc+hBr616YW5prdQqy6Gbzj0pbIzC1Xiw=; b=DATIK9Uzswc3UrN0XAtu7jRCny+ThpbNblMj6S8g/WjNSWIl0KslNBBMjemlnDBgYlP0Wy 48bTBJ0jKPdYmj8yDwgVz3nrUeSY7+Gg9q26kU1IydWlQKTxuhVTq+36hOXoCETQXRulMK Maxua45bLv9LviIA16BwiFEuo7hhrz4= X-MC-Unique: wDpvDSNhOa-lvpoXYkGdwA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 08/15] docs: uri: Remove old 'NULL URI' section Date: Fri, 22 Apr 2022 14:23:24 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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-type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1650630231938100009 We now have an paragraph about default URI choice if the passed pointer is NULL. Add the two related bits from the 'NULL and empty string URIs' from the legacy section to the current one and remove the old stuff. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/uri.rst | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/docs/uri.rst b/docs/uri.rst index 949032e0ff..80c2d780c3 100644 --- a/docs/uri.rst +++ b/docs/uri.rst @@ -51,13 +51,15 @@ outside the allowed alias character set, no alias looku= p will be attempted. Default URI choice ------------------ -If the URI passed to ``virConnectOpen*`` is NULL, then libvirt will use the -following logic to determine what URI to use. +If the URI passed to ``virConnectOpen*`` is NULL or empty string, then lib= virt +will use the following logic to determine what URI to use. #. The environment variable ``LIBVIRT_DEFAULT_URI`` #. The client configuration file ``uri_default`` parameter #. Probe each hypervisor in turn until one that works is found +Historically an empty URI was equivalent to ``xen:///system``. + Specifying URIs to virsh, virt-manager and virt-install ------------------------------------------------------- @@ -420,25 +422,6 @@ The test driver is a dummy hypervisor for test purpose= s. The URIs supported are: Other & legacy URI formats -------------------------- -NULL and empty string URIs -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Libvirt allows you to pass a ``NULL`` pointer to ``virConnectOpen*``. Empty -string (``""``) acts in the same way. Traditionally this has meant =E2=80= =9Cconnect to -the local Xen hypervisor=E2=80=9D. However in future this may change to me= an =E2=80=9Cconnect to -the best available hypervisor=E2=80=9D. - -The theory is that if, for example, Xen is unavailable but the machine is -running an OpenVZ kernel, then we should not try to connect to the Xen -hypervisor since that is obviously the wrong thing to do. - -In any case applications linked to libvirt can continue to pass ``NULL`` a= s a -default choice, but should always allow the user to override the URI, eith= er by -constructing one or by allowing the user to type a URI in directly (if tha= t is -appropriate). If your application wishes to connect specifically to a Xen -hypervisor, then for future proofing it should choose a full -`xen:///system URI`_. - Legacy: ``"xen"`` ~~~~~~~~~~~~~~~~~ --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630233; cv=none; d=zohomail.com; s=zohoarc; b=PUMdLn6FXtDcqG+2LPMP3rreL0xH2snv1UjCwyNeUco+jFXI4CSdSGM9zOzHVXG39n+VRLOBXwLXP2Nw2PJFe0C53JaYTVnCsUPfWUwsXHUnnZ3s5yaA7VAG5ySxx/HylZ/u3+/DFiE9mpzL99+E5m62/jEXB/aHYMArWTTP2S8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630233; 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=Dm8VQzG5sIhJQie3UY6a26svrlEe9HZXD1XJNItt8mo=; b=NSYGNLsqmPcLKL9JImtZ01HNItwTmphDBhYARrmr2fLfpakG3d32IZb0Ie+E7+qmngISA2cpucEConbQ2094IpcwfOvWkp0+63QD/kibF6WvcXbBokE9+MfcThAeZY9L1iJwt4U9UXxl3IsEz2NIJTBx/8MCIuJTiHhWLplHEhA= 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 1650630233511123.23499143975687; Fri, 22 Apr 2022 05:23:53 -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-205-hsR_AMvhP0ytigpMOLjZfw-1; Fri, 22 Apr 2022 08:23:48 -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 77A08833967; Fri, 22 Apr 2022 12:23:43 +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 650F6469A4F; Fri, 22 Apr 2022 12:23:43 +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 2AB671940351; Fri, 22 Apr 2022 12:23:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D9767194036B for ; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id BDA30572328; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 49B0A416361 for ; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630232; 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=Dm8VQzG5sIhJQie3UY6a26svrlEe9HZXD1XJNItt8mo=; b=auMKi4bhU/gTJqQnPqD12xJ2i/t+cV1jbAtfzvwENGo6S4Uzm3rzJf4KzkYruXLYSLpqeK UG9w8OF4JOP6NXT8la/neu2hq0dDiRgXXc4aZTWv/2kJtMTnCBsFhnztOsCZhX0atzfg9i rc59uLYrNR+Zb+ibK4hJguPIvbHa9nY= X-MC-Unique: hsR_AMvhP0ytigpMOLjZfw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 09/15] docs: uri: Consolidate paragraphs on Xen URIs Date: Fri, 22 Apr 2022 14:23:25 +0200 Message-Id: <40174ecb9eca99c439e135dc895bc88acc35a6fd.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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-type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1650630233937100015 Mention the legacy 'xen' string usage under the Xen hypervisor uri section. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/uri.rst | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/docs/uri.rst b/docs/uri.rst index 80c2d780c3..97a72dc37d 100644 --- a/docs/uri.rst +++ b/docs/uri.rst @@ -91,12 +91,12 @@ In virt-install use the ``--connect=3D``\ *URI* option: xen:///system URI ----------------- -*This section describes a feature which is new in libvirt > 0.2.3. For lib= virt =E2=89=A4 -0.2.3 use* `Legacy: "xen"`_ *URI*. - To access a Xen hypervisor running on the local machine use the URI ``xen:///system``. +Historically libvirt 0.2.2 and previous versions required to use the name +``"xen"`` to refer to the Xen hypervisor. + qemu:///... QEMU and KVM URIs ----------------------------- @@ -418,13 +418,3 @@ The test driver is a dummy hypervisor for test purpose= s. The URIs supported are: the driver. - ``test:///path/to/host/definitions`` connects to a set of host definiti= ons held in the named file. - -Other & legacy URI formats --------------------------- - -Legacy: ``"xen"`` -~~~~~~~~~~~~~~~~~ - -Another legacy URI is to specify name as the string ``"xen"``. This will -continue to refer to the Xen hypervisor. However you should prefer a full -`xen:///system URI`_ in all future code. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630244; cv=none; d=zohomail.com; s=zohoarc; b=a+S3JZz32/McweU/o8YfLBlP5u1qQxTfBsL7DkiMh7zPsQyzVQa2LkJip4iFG5xQs3sOVz89iLs1B560fJDFmBvWjaCr79khNQzD2lVsHKBfm7NHt1Ol5iI4aB/MOXBbYFKDPJMLF2md0dEHRC1GkZbVKjP9B643AWc57JSlVYI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630244; 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=QGoAW23/uHfN8GNtx9uDvjFhTTUqMFYcVAJIEQGvniY=; b=T53GQ8tN3Dh3gDKCpeV7XgLnow6E+Qwy+1aXAsch2e9/mUxGuCjhz1cg6EyhDRDRe3Tg8qwoSg2rxrDab+fCdvf7ZX4YlKhCwk456L2EtHfPNeLwe/sBTRUaRtHdrNMKrYkZ4U3fappKEpJV03wyJ5LiDoMRY3RyUe8NOw2hBEc= 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 1650630244437303.83091929002774; Fri, 22 Apr 2022 05:24:04 -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-127-spWs4Tb_M8STfqWNb0nRuQ-1; Fri, 22 Apr 2022 08:23:46 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1C11986B8B0; Fri, 22 Apr 2022 12:23:44 +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 08571572328; Fri, 22 Apr 2022 12:23:44 +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 86F01194035D; Fri, 22 Apr 2022 12:23:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BFB32194034C for ; Fri, 22 Apr 2022 12:23:42 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9D90C572328; Fri, 22 Apr 2022 12:23:42 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1A9CC416171 for ; Fri, 22 Apr 2022 12:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630243; 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=QGoAW23/uHfN8GNtx9uDvjFhTTUqMFYcVAJIEQGvniY=; b=KGILJF9fG3waALIxcSdctgIfNoSp2JFEsnNmZZ1eiEflxY/P1JyfBxpIYg/Lfc747NX/6C i0IqrbdSoGq8P5ivBhg5WWxOmZ4TAUsRZNPYP1cAAwdOMwxfXlSqgb6MIcKXYJCdeMbhg5 WeO/sBqts48dqxAoSIllBLsvSFfWrC4= X-MC-Unique: spWs4Tb_M8STfqWNb0nRuQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 10/15] docs: uri: Move the 'test' hypervisor under a 'local hypervisors heading Date: Fri, 22 Apr 2022 14:23:26 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.10 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) X-ZM-MESSAGEID: 1650630245992100001 Content-Type: text/plain; charset="utf-8" Add a new heading 'Local hypervisor URIs' and move the sections about 'qemu', 'xen' and 'test' under it. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/uri.rst | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/uri.rst b/docs/uri.rst index 97a72dc37d..714a0c4c21 100644 --- a/docs/uri.rst +++ b/docs/uri.rst @@ -88,8 +88,11 @@ In virt-install use the ``--connect=3D``\ *URI* option: virt-install --connect=3Dtest:///default [other options] +Local hypervisor URIs +--------------------- + xen:///system URI ------------------ +~~~~~~~~~~~~~~~~~ To access a Xen hypervisor running on the local machine use the URI ``xen:///system``. @@ -98,7 +101,7 @@ Historically libvirt 0.2.2 and previous versions require= d to use the name ``"xen"`` to refer to the Xen hypervisor. qemu:///... QEMU and KVM URIs ------------------------------ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To use QEMU support in libvirt you must be running the ``libvirtd`` daemon (named ``libvirt_qemud`` in releases prior to 0.3.0). The purpose of this = daemon @@ -120,6 +123,16 @@ domain socket(s) that it listens on in the various dif= ferent modes). KVM URIs are identical. You select between qemu, qemu accelerated and KVM = guests in the `guest XML as described here `__. +test:///... Test URIs +~~~~~~~~~~~~~~~~~~~~~ + +The test driver is a dummy hypervisor for test purposes. The URIs supporte= d are: + +- ``test:///default`` connects to a default set of host definitions built= into + the driver. +- ``test:///path/to/host/definitions`` connects to a set of host definiti= ons + held in the named file. + Remote URIs ----------- @@ -408,13 +421,3 @@ parameter values must be | | | `` = | | | | sshauth=3Dprivkey,ag= ent`` | +-------------------------+-------------------------+---------------------= ----+ - -test:///... Test URIs ---------------------- - -The test driver is a dummy hypervisor for test purposes. The URIs supporte= d are: - -- ``test:///default`` connects to a default set of host definitions built= into - the driver. -- ``test:///path/to/host/definitions`` connects to a set of host definiti= ons - held in the named file. --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630306; cv=none; d=zohomail.com; s=zohoarc; b=QothejwZGRRJhjODrmCVSxXdXIJgHhQ0KLySU1hJJLlRp2PEtn70ezS6FLKEiWlCCtC6h9A3DkQw5qwvVPkXLk1Bc/oJmZBx3IogVTOU0hKChYiazhJ/G5yfumQMd8RmxmMN/EOJItKQzNgQohqY9UmzroIfewZfWwIWCIjJjs0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630306; 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=KWG4d47fZQuU1KyxVbqqMNiTts4wy7kK3wuW+ORmfDo=; b=IJqwnMR78SFSx8cl9uae2+YXa/ee+JtLKACqZLF8kPlEnEaod/QGl0IXXUN1BMe7s4zvV/g96/qbrRTKVo8e0kyfsT+u38ayZMCYuLLoqpUJkQNzJKy+l9bEJxmQfcRQ5NjEwwyRDX2jDBcIY7ljyJpkM77GwWXBzaIsHQaSnpY= 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 1650630306069663.9065584633493; Fri, 22 Apr 2022 05:25:06 -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-620-uPp37b4oPmmD7qZYz6zPHA-1; Fri, 22 Apr 2022 08:23:49 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4FFC63C21F8B; Fri, 22 Apr 2022 12:23:45 +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 3998B572328; Fri, 22 Apr 2022 12:23:45 +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 E16971940354; Fri, 22 Apr 2022 12:23:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id CC7F8194036F for ; Fri, 22 Apr 2022 12:23:43 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A782E416171; Fri, 22 Apr 2022 12:23:43 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C0C241617F for ; Fri, 22 Apr 2022 12:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630305; 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=KWG4d47fZQuU1KyxVbqqMNiTts4wy7kK3wuW+ORmfDo=; b=I2y6EgmvXlhLKMcZjAg12BDV4WtzZdLGfnLZBpmwH9N8un2dcpTEZb2RYDjPbdkAW3PCMd zjk5fJDZgDddHUZ4ZrUxg9waPPd96gUeTNOLr5fSqzByZB7+qWZYwUYabUPsV4FWWTA7PA otc6COuv1M9BfgiBerl2c4xETWeDmK4= X-MC-Unique: uPp37b4oPmmD7qZYz6zPHA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 11/15] docs: uri: Rewrite section about transport protocols and extra parameters Date: Fri, 22 Apr 2022 14:23:27 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.10 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-type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1650630308225100003 Avoid the table and add a brief description of the transport protocol. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/uri.rst | 474 +++++++++++++++++++++++++-------------------------- 1 file changed, 228 insertions(+), 246 deletions(-) diff --git a/docs/uri.rst b/docs/uri.rst index 714a0c4c21..4efd634087 100644 --- a/docs/uri.rst +++ b/docs/uri.rst @@ -168,8 +168,11 @@ Some examples: =E2=80=94 Connect to a remote host using a ssh connection with the libs= sh driver and use a different known_hosts file. -Extra parameters -~~~~~~~~~~~~~~~~ +Transport configuration +~~~~~~~~~~~~~~~~~~~~~~~ + +The remote driver supports multiple transport protocols and approaches whi= ch are +configurable via the URI. Extra parameters can be added to remote URIs as part of the query string (= the part following ``?``). Remote URIs understand the extra parameters shown @@ -177,247 +180,226 @@ below. Any others are passed unmodified through to = the back end. Note that parameter values must be `URI-escaped `__. -+-------------------------+-------------------------+---------------------= ----+ -| Name | Transports | Meaning = | -+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D+ -| ``name`` | *any transport* | The name passed to t= he | -| | | remote virConnectOpe= n | -| | | function. The name i= s | -| | | normally formed by = | -| | | removing transport, = | -| | | hostname, port numbe= r, | -| | | username and extra = | -| | | parameters from the = | -| | | remote URI, but in = | -| | | certain very complex= | -| | | cases it may be bett= er | -| | | to supply the name = | -| | | explicitly. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``name=3Dqemu:///sys= tem`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``tls_priority`` | tls | A valid GNUTLS prior= ity | -| | | string = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``tls_priorit = | -| | | y=3DNORMAL:-VERS-SSL= 3.0`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``mode`` | unix, ssh, libssh, | ``auto`` = | -| | libssh2 | automatically = | -| | | determine the dae= mon | -| | | ``direct`` = | -| | | connect to = | -| | | per-driver daemon= s | -| | | ``legacy`` = | -| | | connect to libvir= td | -| | | = | -| | | Can also be set in = | -| | | ``libvirt.conf`` as = | -| | | ``remote_mode`` = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``mode=3Ddirect`` = | -+-------------------------+-------------------------+---------------------= ----+ -| ``proxy`` | auto, netcat, native | ``auto`` = | -| | | try native, fallb= ack | -| | | to netcat = | -| | | ``netcat`` = | -| | | only use netcat = | -| | | ``native`` = | -| | | only use native = | -| | | = | -| | | Can also be set in = | -| | | ``libvirt.conf`` as = | -| | | ``remote_proxy`` = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``proxy=3Dnative`` = | -+-------------------------+-------------------------+---------------------= ----+ -| ``command`` | ssh, ext | The external command= . | -| | | For ext transport th= is | -| | | is required. For ssh= | -| | | the default is ``ssh= ``. | -| | | The PATH is searched= | -| | | for the command. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``command = | -| | | =3D/opt/openssh/bin/= ssh`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``socket`` | unix, ssh, libssh2, | The path to the Unix= | -| | libssh | domain socket, which= | -| | | overrides the = | -| | | compiled-in default.= | -| | | For ssh transport, t= his | -| | | is passed to the rem= ote | -| | | netcat command (see = | -| | | next). = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | `` = | -| | | socket=3D/opt/libvir= t/run | -| | | /libvirt/libvirt-soc= k`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``netcat`` | ssh, libssh2, libssh | The name of the netc= at | -| | | command on the remot= e | -| | | machine. The default= is | -| | | ``nc``. This is not = | -| | | permitted when using= | -| | | the ``native`` proxy= | -| | | mode. For ssh = | -| | | transport, libvirt = | -| | | constructs an ssh = | -| | | command which looks = | -| | | like: = | -| | | = | -| | | ``command -p port`` = | -| | | ``[-l username]`` = | -| | | ``hostname`` or = | -| | | = | -| | | ``netcat -U socket``= | -| | | = | -| | | where *port*, = | -| | | *username*, *hostnam= e* | -| | | can be specified as = | -| | | part of the remote U= RI, | -| | | and *command*, *netc= at* | -| | | and *socket* come fr= om | -| | | extra parameters (or= | -| | | sensible defaults). = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``netc = | -| | | at=3D/opt/netcat/bin= /nc`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``keyfile`` | ssh, libssh2, libssh | The name of the priv= ate | -| | | key file to use to = | -| | | authentication to th= e | -| | | remote machine. If t= his | -| | | option is not used t= he | -| | | default keys are use= d. | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``keyfile=3D/ = | -| | | root/.ssh/example_ke= y`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``no_verify`` | ssh, tls | SSH: If set to a = | -| | | non-zero value, this= | -| | | disables client's = | -| | | strict host key = | -| | | checking making it = | -| | | auto-accept new host= | -| | | keys. Existing host = | -| | | keys will still be = | -| | | validated. = | -| | | TLS: If set to a = | -| | | non-zero value, this= | -| | | disables client chec= ks | -| | | of the server's = | -| | | certificate. Note th= at | -| | | to disable server = | -| | | checks of the client= 's | -| | | certificate or IP = | -| | | address you must = | -| | | `change the libvirtd= | -| | | conf = | -| | | iguration <#Remote_l= ibv | -| | | irtd_configuration>`= __. | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``no_verify=3D1`` = | -+-------------------------+-------------------------+---------------------= ----+ -| ``no_tty`` | ssh | If set to a non-zero= | -| | | value, this stops ss= h | -| | | from asking for a = | -| | | password if it canno= t | -| | | log in to the remote= | -| | | machine automaticall= y | -| | | (eg. using ssh-agent= | -| | | etc.). Use this when= | -| | | you don't have acces= s | -| | | to a terminal - for = | -| | | example in graphical= | -| | | programs which use = | -| | | libvirt. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: ``no_tty=3D= 1`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``pkipath`` | tls | Specifies x509 = | -| | | certificates path fo= r | -| | | the client. If any o= f | -| | | the CA certificate, = | -| | | client certificate, = or | -| | | client key is missin= g, | -| | | the connection will = | -| | | fail with a fatal = | -| | | error. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``pk = | -| | | ipath=3D/tmp/pki/cli= ent`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``known_hosts`` | libssh2, libssh | Path to the known_ho= sts | -| | | file to verify the h= ost | -| | | key against. LibSSH2= | -| | | and libssh support = | -| | | OpenSSH-style = | -| | | known_hosts files, = | -| | | although LibSSH2 doe= s | -| | | not support all key = | -| | | types, so using file= s | -| | | created by the OpenS= SH | -| | | binary may result in= to | -| | | truncating the = | -| | | known_hosts file. Th= us, | -| | | with LibSSH2 it's = | -| | | recommended to use t= he | -| | | default known_hosts = | -| | | file is located in = | -| | | libvirt's client loc= al | -| | | configuration direct= ory | -| | | e.g.: = | -| | | ~/.conf = | -| | | ig/libvirt/known_hos= ts. | -| | | Note: Use absolute = | -| | | paths. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``known_hosts=3D/ = | -| | | root/.ssh/known_host= s`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``known_hosts_verify`` | libssh2, libssh | If set to ``normal``= | -| | | (default), then the = | -| | | user will be asked t= o | -| | | accept new host keys= . | -| | | If set to ``auto``, = new | -| | | host keys will be = | -| | | auto-accepted, but = | -| | | existing host keys w= ill | -| | | still be validated. = If | -| | | set to ``ignore``, t= his | -| | | disables client's = | -| | | strict host key = | -| | | checking. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | ``know = | -| | | n_hosts_verify=3Dign= ore`` | -+-------------------------+-------------------------+---------------------= ----+ -| ``sshauth`` | libssh2, libssh | A comma separated li= st | -| | | of authentication = | -| | | methods to use. Defa= ult | -| | | (is = | -| | | "agent,privkey,passw= ord | -| | | ,keyboard-interactiv= e". | -| | | The order of the = | -| | | methods is preserved= . | -| | | Some methods may = | -| | | require additional = | -| | | parameters. = | -+-------------------------+-------------------------+---------------------= ----+ -| | | Example: = | -| | | `` = | -| | | sshauth=3Dprivkey,ag= ent`` | -+-------------------------+-------------------------+---------------------= ----+ +All transports support the following parameters: + + ``name`` + + The name passed to the remote ``virConnectOpen`` function. The name is + normally formed by removing transport, hostname, port number, username= and + extra parameters from the remote URI, but in certain very complex case= s it + may be better to supply the name explicitly. + + **Example:** ``name=3Dqemu:///system`` + +``ssh`` transport +^^^^^^^^^^^^^^^^^ + +The ``ssh`` transport uses the standard SSH protocol via the system instal= led +binary. + +Supported extra parameters: + + ``mode`` + See the info on the `mode parameter`_. + ``proxy`` + See the info on the `proxy parameter`_. + ``command`` + Path to the ``ssh`` binary to use. + + **Example:** ``command=3D/opt/openssh/bin/ssh`` + ``socket`` + See the info on the `socket parameter`_. + ``netcat`` + See the info on the `netcat parameter`_. + ``keyfile`` + See the info on the `keyfile parameter`_. + ``no_verify`` + If set to a non-zero value, this disables client's strict host key che= cking + making it auto-accept new host keys. Existing host keys will still be + validated. + + **Example:** ``no_verify=3D1`` + ``no_tty`` + If set to a non-zero value, this stops ssh from asking for a password = if it + cannot log in to the remote machine automatically (eg. using ssh-agent + etc.). Use this when you don't have access to a terminal - for example= in + graphical programs which use libvirt. + + **Example:** ``no_tty=3D1`` + +``libssh`` and ``libssh2`` transport +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Same as the ``ssh`` transport but the SSH client is handled directly by us= ing +either ``libssh`` or ``libssh2`` to handle the SSH protocol without spawni= ng an +extra process. + +Supported extra parameters: + + ``mode`` + See the info on the `mode parameter`_. + ``proxy`` + See the info on the `proxy parameter`_. + ``socket`` + See the info on the `socket parameter`_. + ``netcat`` + See the info on the `netcat parameter`_. + ``keyfile`` + See the info on the `keyfile parameter`_. + ``known_hosts`` + Path to the known_hosts file to verify the host key against. LibSSH2 a= nd + libssh support OpenSSH-style known_hosts files, although LibSSH2 does = not + support all key types, so using files created by the OpenSSH binary may + result into truncating the known_hosts file. Thus, with LibSSH2 it's + recommended to use the default known_hosts file is located in libvirt's + client local configuration directory e.g.: ~/.conf ig/libvirt/known_ho= sts. + + *Note:* Use absolute paths. + + **Example:** ``known_hosts=3D/root/.ssh/known_hosts`` + + ``known_hosts_verify`` + If set to ``normal`` (default), then the user will be asked to accept = new + host keys. If set to ``auto``, new host keys will be auto-accepted, b= ut + existing host keys will still be validated. If set to ``ignore``, this + disables client's strict host key checking. + + **Example:** ``known_hosts_verify=3Dignore`` + + ``sshauth`` + A comma separated list of authentication methods to use. Default (is + "agent,privkey,password ,keyboard-interactive". The order of the meth= ods + is preserved. Some methods may require additional parameters. + + **Example:** ``sshauth=3Dprivkey,agent`` + +``tls`` transport +^^^^^^^^^^^^^^^^^ + +This transport uses a TCP connection to the socket. The data is encrypted = using +TLS to ensure security. Note that TLS certificates must be setup for this = to +work. + +Supported extra parameters: + + ``tls_priority`` + A valid GNUTLS priority string. + + **Example:** ``tls_priority=3DNORMAL:-VERS-SSL3.0`` + + ``no_verify`` + If set to a non-zero value, this disables client checks of the server's + certificate. Note that to disable server checks of the client's certif= icate + or IP address you must `change the libvirtd configuration + <#Remote_libvirtd_configuration>`__ + + **Example:** ``no_verify=3D1`` + + ``pkipath`` + + Specifies x509 certificates path for the client. If any of the CA + certificate, client certificate, or client key is missing, the connect= ion + will fail with a fatal error. + + **Example:** ``pkipath=3D/tmp/pki/client`` + +``unix`` transport +^^^^^^^^^^^^^^^^^^ + +This transport uses an unix domain socket is used to connect to the daemon. +This is the most common case. In most cases no extra parameters are needed. + +Supported extra parameters: + + ``mode`` + See the info on the `mode parameter`_. + ``socket`` + See the info on the `socket parameter`_. + +``ext`` transport +^^^^^^^^^^^^^^^^^ + +The ``ext`` transport invokes the user specified command to transport the +libvirt RPC protocol to the destination. The command must be able to handle +the proper connection. Standard input/output is used for the communication. + +Supported extra parameters: + + ``command`` + The external command launched to tunnel the data to the destination. + +``tcp`` transport +^^^^^^^^^^^^^^^^^ + +The ``tcp`` transport uses plain unencrypted TCP connection to libvirt. Th= is +is insecure and should not be used. This transport has no additional argum= ents. + +Common extra parameters +~~~~~~~~~~~~~~~~~~~~~~~ + +Certain extra parameters are shared between multiple protocols. See the li= st of +transport protocols above for specific usage. + +``mode`` parameter +^^^^^^^^^^^^^^^^^^ + +Controls whether to connect to per-driver daemons or libvirtd. + +Supported values: + + ``auto`` + automatically determine the daemon + ``direct`` + connect to per-driver daemons + ``legacy`` + connect to libvirtd + +Default is ``auto``. Can also be set in ``libvirt.conf`` as ``remote_mode`= `. + +**Example:** ``mode=3Ddirect`` + +``proxy`` parameter +^^^^^^^^^^^^^^^^^^^ + +Controls which proxy binary is used on the remote side of connection to co= nnect +to the daemon. + +Supported values: + + ``auto`` + try native, fallback to netcat + ``netcat`` + only use netcat + ``native`` + use the libvirt native proxy binary + +Default is ``auto``. Can also be set in ``libvirt.conf`` as ``remote_proxy= ``. + +**Example:** ``proxy=3Dnative`` + +``socket`` parameter +^^^^^^^^^^^^^^^^^^^^ + +The path to the Unix domain socket, which overrides the compiled-in defaul= t. +This may be passed to the remote proxy command (See. `proxy parameter`). + +**Example:** ``socket=3D/opt/libvirt/run/libvirt/libvirt-sock`` + +``netcat`` parameter +^^^^^^^^^^^^^^^^^^^^ +The name of the netcat command on the remote machine. The default is ``nc`= `. +This is not permitted when using the ``native`` proxy mode. + +The command used here is used on the remote side of the connection as: + + ``netcat -U socket`` + +**Example:** ``netcat=3D/opt/netcat/bin/nc`` + +``keyfile`` parameter +^^^^^^^^^^^^^^^^^^^^^ + +The name of the private key file to use to authentication to the remote +machine. If this option is not used the default keys are used. + +**Example:** ``keyfile=3D/root/.ssh/example_key`` --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630235; cv=none; d=zohomail.com; s=zohoarc; b=DNyo5XZzGUu7zocjsdgNlmhFSXVedadr10Scv4x8eUrv0vNR7pENEc6wI9LSkAr5mS71aeJKxDMY0hgxScXeCpPB/CUMOTlluQDyu6QQjsAjxCdoQLsvvExoVpuH3frC3xB/QWNQ/LZ9dsCMNG85Y0e9NgqNMR1MyLPsoMYCizs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630235; 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=4NbojlzhPA6jTQ+ewGUhaneZQQPDp/HXgf9Jk6Jfwvw=; b=Eolbbfe6BNNTz30sLYgsbmSQ2dhKdxFRymttuQuxEWJRTKsLFNUSXtPhHspE1jOKCnJP5D/En2S/G3wLP5KU0bP5cm36EcMSMUCQAtvnvm5pg7FI+8qx0XSvkT7SXxQI+IG/7YveoxxzDIJQ+c8kUBmgWhIxkzuFzRidKgohtEo= 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 1650630235356418.0849560445048; Fri, 22 Apr 2022 05:23:55 -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-631-8fe9cUJwMhaT3g0SLEvbWw-1; Fri, 22 Apr 2022 08:23:49 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5567A833969; Fri, 22 Apr 2022 12:23:46 +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 4108740885A1; Fri, 22 Apr 2022 12:23:46 +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 132301940358; Fri, 22 Apr 2022 12:23:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D1050194034C for ; Fri, 22 Apr 2022 12:23:44 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A77CB41617F; Fri, 22 Apr 2022 12:23:44 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B302416171 for ; Fri, 22 Apr 2022 12:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630234; 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=4NbojlzhPA6jTQ+ewGUhaneZQQPDp/HXgf9Jk6Jfwvw=; b=Zr/hgMxSibW7aT6eGL3NogkD87rltJomMPZoqUh5hh4qbG8bIvX7DvcZM+qwdI2JexJxa/ L2DWkTV/Xzgf4TWKwDDgj/BF6SBeg5ouu974JwThkYGLZhAXF3Hn+0XeBSD8ZhA7Zfrwtx /02ePQ4gfg2JuFK1kVGvGG008N0DtMw= X-MC-Unique: 8fe9cUJwMhaT3g0SLEvbWw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 12/15] docs: governance: Remove unused HTML anchors Date: Fri, 22 Apr 2022 14:23:28 +0200 Message-Id: <88617f28dfbe7fc3ff099d6b9955847014b11c3d.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.2 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) X-ZM-MESSAGEID: 1650630235933100017 Content-Type: text/plain; charset="utf-8" The 'codeofconduct' anchor is unused as of 523f2de82e0f523bd552947 . Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/governance.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/governance.rst b/docs/governance.rst index df90ce678d..44dd54d4a0 100644 --- a/docs/governance.rst +++ b/docs/governance.rst @@ -1,6 +1,3 @@ -.. role:: anchor(raw) - :format: html - =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Project governance =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @@ -13,8 +10,6 @@ the ongoing development of the project's work. This pages= describes how that participation takes place and how contributors earn merit, and thus influe= nce, within the community. -:anchor:`` - Code of conduct --------------- --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630320; cv=none; d=zohomail.com; s=zohoarc; b=Ho+sVYwdcJ8nSo60wG3yqzaRQhf52paVmdW9r+t5AOnSAtyn1SHPhd729EvJAavhZ9Sk42jKYdUIouFgbiQL4BIws9KundnpR8gU+6tRuMb+g0Nx2N79yuIa7Onf21FLZvbnpZvxw47QSvLwn1gin74+3EmiLdaNjtsw2eXd0Fw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630320; 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=8XF1BvSzrPTZm742N2m9KGvUXV1D/vGGYTo4faywPBM=; b=PjzIGLB+yq+y6+W546Z1jtROM61iXUIiozbsfuKbXNE3TjKaeTKc9moK7BhJaUwP0HxBB6Dimz6XdUiWQrbqp1DMxg9v8WfizaFPGS/bsYBrkS9HLOI3oYMriJoj6bAji5Mf3TXlpCFlAtpmhueSDolbnND3xAaGSrZ0ZJys8/w= 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 1650630320375127.76916971346918; Fri, 22 Apr 2022 05:25:20 -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-142-cEbDVj3pN1eQo4ejaXwejw-1; Fri, 22 Apr 2022 08:23:50 -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 E92C080352D; Fri, 22 Apr 2022 12:23:47 +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 D468815230A2; Fri, 22 Apr 2022 12:23:47 +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 8E4361940354; Fri, 22 Apr 2022 12:23:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B6E2C194034C for ; Fri, 22 Apr 2022 12:23:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 89EBF416362; Fri, 22 Apr 2022 12:23:45 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D54B416171 for ; Fri, 22 Apr 2022 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630319; 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=8XF1BvSzrPTZm742N2m9KGvUXV1D/vGGYTo4faywPBM=; b=PQeYQZZq1r8RkUl34bLSURR03AiiqJ1sMTSRBYQRTrcOSTlPwa/Wdd2Zrc4bSGuglbKZYK YyI7mGiP6m1hj9WL7DyYSL/eGbb0gUmgP67/st1H9EkN/45ft6gZQZ2zWw45Z5YA/5TVxz lKqPtrdT96hCLKJmJ3qk718lisqBFco= X-MC-Unique: cEbDVj3pN1eQo4ejaXwejw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 13/15] docs: contact: Remove HTML anchors and adjust documents using them Date: Fri, 22 Apr 2022 14:23:29 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630322295100001 Content-Type: text/plain; charset="utf-8" Modify the name of the 'IRC discussion' paragraph to just 'IRC' so that the links keep working and remove the raw HTML anchors. Adjustment is needed for documents which were using the '#email' anchor which has now become '#mailing-lists'. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/contact.rst | 11 ++--------- docs/contribute.rst | 10 +++++----- docs/page.xsl | 2 +- docs/securityprocess.rst | 4 ++-- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/docs/contact.rst b/docs/contact.rst index 75b1239301..19e1b66a52 100644 --- a/docs/contact.rst +++ b/docs/contact.rst @@ -1,6 +1,3 @@ -.. role:: anchor(raw) - :format: html - =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Contacting the project contributors =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @@ -17,8 +14,6 @@ issues `__ that should be used inst= ead. So if your issue has security implications, ignore the rest of this page and follow the `se= curity process `__ instead. -:anchor:`` - Mailing lists ------------- @@ -78,10 +73,8 @@ discussion. Wherever possible, please generate the patch= es by using regarding developing libvirt and/or contributing is available on our `Contributor Guidelines `__ page. -:anchor:`` - -IRC discussion --------------- +IRC +--- Some of the libvirt developers may be found on IRC on the `OFTC IRC `__ network. Use the settings: diff --git a/docs/contribute.rst b/docs/contribute.rst index c95c8b59d2..6ed5426b8a 100644 --- a/docs/contribute.rst +++ b/docs/contribute.rst @@ -67,7 +67,7 @@ to libvirt. If you have ideas for other contributions fee= l free to follow them. have, or run into trouble with managing an existing deployment. While s= ome users may be able to contact a software vendor to obtain support, it is common to rely on community help forums such as `libvirt users mailing - list `__, or sites such as + list `__, or sites such as `stackoverflow. `__ People who are familiar with libvirt and have ability & desire to help = other users are encouraged to participate in these help forums. @@ -82,10 +82,10 @@ for communication between contributors: Mailing lists ~~~~~~~~~~~~~ -The project has a number of `mailing lists `__ for gen= eral -communication between contributors. In general any design discussions and = review -of contributions will take place on the mailing lists, so it is important = for -all contributors to follow the traffic. +The project has a number of `mailing lists `__= for +general communication between contributors. In general any design discussi= ons +and review of contributions will take place on the mailing lists, so it is +important for all contributors to follow the traffic. Instant messaging / chat ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/page.xsl b/docs/page.xsl index 7d0203cf62..0a0b017482 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -172,7 +172,7 @@ diff --git a/docs/securityprocess.rst b/docs/securityprocess.rst index fe64e94f80..23f7a39e96 100644 --- a/docs/securityprocess.rst +++ b/docs/securityprocess.rst @@ -35,8 +35,8 @@ format in the `libvirt-security-notice GIT repository `__ and `published online `__ in text, HTML and XML formats. Security notices are published on the `libvirt-announce mailing -list `__ when any embargo is lifte= d, or -as soon as triaged if already public knowledge. +list `__ when any embargo = is +lifted, or as soon as triaged if already public knowledge. Security team ------------- --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630251; cv=none; d=zohomail.com; s=zohoarc; b=Rmxnf0e5xO/dQX6JJG6HKKIS++J0uU1ptGIPzq0Scn6j5Q32/BP5RM5ZDwzV55IOWQP5ho7N/yn9ELG5oupAwcdnGI+BDWnrsn+dYYZ3ZIerB/EQIXfp78zHtndKY64+H1k2ChQVxiR0AWYFuyr1CkLn6kyHsMUJDU0eHN/JIkw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630251; 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=C6fCJdQurUZ7pj3ZAEpT7CvHja2zyH2LYgJWX1DAXmg=; b=dsxTgnuUBafIhMmmBi3pDBH03yFAn3Fk9vrd0L6m9ABO0tH/HhIu/ie69peiG8u3gPsG1/hiTCS851nlsqYjAdrjFHGQjZC1D3mdX7JXXJF0GRCuGarSkhRqnuqPHqMUkg+KT1LbHpISR25245S75l609hpcFtpxHw3dsEdQ1yg= 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 1650630251275541.2360064399745; Fri, 22 Apr 2022 05:24:11 -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-184-YUa9AY5yPVKc8IETAqoK4A-1; Fri, 22 Apr 2022 08:23:52 -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 73CBA1014A77; Fri, 22 Apr 2022 12:23:48 +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 5834354CE4D; Fri, 22 Apr 2022 12:23:48 +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 DFAF61940361; Fri, 22 Apr 2022 12:23:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7BCAF194035B for ; Fri, 22 Apr 2022 12:23:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6D933416171; Fri, 22 Apr 2022 12:23:46 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA208572328 for ; Fri, 22 Apr 2022 12:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630250; 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=C6fCJdQurUZ7pj3ZAEpT7CvHja2zyH2LYgJWX1DAXmg=; b=iw2/eLI8pMwEX7h4Eh+XqPfjUbW2MK9S491XYZ9rrh6Mkg/JMwqQDH8JrEjCkOpCjkpfYN XwsYISceO3pezm/Qu58fEg54MDwQGBRpAfohVthE3k95PyOMOqDXMktxbSa64ePXBRFdfr 9eggnkyzr40btJyQhEJyRPCNo7FMJtM= X-MC-Unique: YUa9AY5yPVKc8IETAqoK4A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 14/15] docs: bugs: Remove raw HTML anchor 'quality' Date: Fri, 22 Apr 2022 14:23:30 +0200 Message-Id: <3b7b99a4ba7f3e7ba8b3293ed465eb975eae7eff.1650629879.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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 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) X-ZM-MESSAGEID: 1650630252040100001 Content-Type: text/plain; charset="utf-8" Modify the gitlab templates linking to it and remove the raw HTML. Note that also the default template needs to be changed directly in gitlab. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- .gitlab/issue_templates/bug.md | 2 +- docs/bugs.rst | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md index b2d1e46490..8a54cc2da4 100644 --- a/.gitlab/issue_templates/bug.md +++ b/.gitlab/issue_templates/bug.md @@ -1,4 +1,4 @@ - + ## Software environment - Operating system: diff --git a/docs/bugs.rst b/docs/bugs.rst index 152d734592..b5d2e42b0c 100644 --- a/docs/bugs.rst +++ b/docs/bugs.rst @@ -1,6 +1,3 @@ -.. role:: anchor(raw) - :format: html - =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Bug reporting =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @@ -79,8 +76,6 @@ Linux Distribution specific bug reports like to have your procedure for filing bugs mentioned here, please mail= the libvirt development list. -:anchor:`` - How to file high quality bug reports ------------------------------------ --=20 2.35.1 From nobody Sat May 18 09:48:26 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=1650630245; cv=none; d=zohomail.com; s=zohoarc; b=OvgHie98OXI7q/En1xbk0pytQ5EcCuvTvr9cUG4qoBpqjKma592abkmqcjOBRUHRfgCe8X2kx4i6+WMDeGkvwHaufkGDaetIqU4cDql9ofwSr1WmozqtaHnF+ymL0y8kOJftYFSxCFYPfxG4TUeL0+W4YUasUB+uZ4SFi8Q1C30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650630245; 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=AnQP55sw/v84wP8ZPEsW6sJDYsgXhAjBF9Iy3vQlkCs=; b=GGqcFN8XLjJzTCyKxFGDI0TTKh59zdAxiyty+7brV1yUiLMblijOKj3if3RnXNLN3WArkt8TZPIJWtq+qUEKSF8EiljIrf78+YrFcQFqvjAcBz6aDOnVV5o1iR2Y3kQihTO+hz/eMME/LqGSAM/ehYpmKfxTpL737HPwuEemtNU= 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 1650630245504936.9313156886261; Fri, 22 Apr 2022 05:24:05 -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-597-x0yy-UoHNeKk3N_twmputw-1; Fri, 22 Apr 2022 08:23:51 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8D86803533; Fri, 22 Apr 2022 12:23:49 +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 925BD572328; Fri, 22 Apr 2022 12:23:49 +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 4AA2B1940355; Fri, 22 Apr 2022 12:23:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7BC44194034C for ; Fri, 22 Apr 2022 12:23:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 5F57741617F; Fri, 22 Apr 2022 12:23:47 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id D8691572328 for ; Fri, 22 Apr 2022 12:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650630244; 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=AnQP55sw/v84wP8ZPEsW6sJDYsgXhAjBF9Iy3vQlkCs=; b=RRmWhWh7SyWenlqcIMVS0AroeZp/wwT8fNiljckE04dbLhr16BWG2QflY6dtXrvoqwmMhi 3mmVDt2xyhbakctcnCXmywi1KZn0ygRzF6l/MxEjM7fYwHixYOTa0VL58kpNDQlAcTMX1v eOQ0CUhjl+1T/JtV5uvkzi2vrn38/jo= X-MC-Unique: x0yy-UoHNeKk3N_twmputw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 15/15] docs: formatdomain: Remove old unreferenced HTML anchors Date: Fri, 22 Apr 2022 14:23:31 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.10 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) X-ZM-MESSAGEID: 1650630246028100002 Content-Type: text/plain; charset="utf-8" Most of the anchors that were forward ported to formatdomain.rst when it was converted are not actually referenced by our documentation. Since it's now quite some time after the conversion was done we can remove them. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- docs/formatdomain.rst | 112 ------------------------------------------ 1 file changed, 112 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 6c4096713a..9be305f3e6 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -285,8 +285,6 @@ them in production. case the boot fails (according to BIOS). The value is in milliseconds w= ith maximum of ``65535`` and special value ``-1`` disables the reboot. -:anchor:`` - Host bootloader ~~~~~~~~~~~~~~~ @@ -312,8 +310,6 @@ also uses a host bootloader, either ``bhyveload`` or ``= grub-bhyve``. The optional ``bootloader_args`` element allows command line arguments = to be passed to the bootloader. :since:`Since 0.2.3` -:anchor:`` - Direct kernel boot ~~~~~~~~~~~~~~~~~~ @@ -1226,8 +1222,6 @@ Block I/O Tuning ``write_iops_sec`` Write I/O operations per second limit. :since:`Since 1.2.2` -:anchor:`` - Resource partitioning --------------------- @@ -1811,8 +1805,6 @@ manager will take its default action. ``ignore`` Keep the domain running as if nothing happened. -:anchor:`` - Power Management ---------------- @@ -2129,8 +2121,6 @@ are: tb-cache The size of translation block cache size an integer (= a multiple of MiB) :since:`8.0.0` =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D -:anchor:`` - Time keeping ------------ @@ -2251,8 +2241,6 @@ Windows, however, expects it to be in so called 'loca= ltime'. The ``present`` attribute can be "yes" or "no" to specify whether a particular timer is available to the guest. -:anchor:`` - Performance monitoring events ----------------------------- @@ -3306,8 +3294,6 @@ paravirtualized driver is specified via the ``disk`` = element. disk's hardware sector size which can be relevant for the alignment = of disk data. -:anchor:`` - Filesystems ~~~~~~~~~~~ @@ -3978,8 +3964,6 @@ pcie-root-port. ( :since:`since 1.2.19` ) ... -:anchor:`` - Device leases ~~~~~~~~~~~~~ @@ -4019,8 +4003,6 @@ acquired. Host device assignment ~~~~~~~~~~~~~~~~~~~~~~ -:anchor:`` - USB / PCI / SCSI devices ^^^^^^^^^^^^^^^^^^^^^^^^ @@ -4313,8 +4295,6 @@ or: Note: Although ``shareable`` was introduced :since:`in 1.0.6` , it did = not work as as expected until :since:`1.2.2` . -:anchor:`` - Block / character devices ^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -4365,8 +4345,6 @@ after 1.0.1 for LXC` : used. For network interfaces, the name of the interface is provided in = the "interface" element. -:anchor:`` - Redirected devices ~~~~~~~~~~~~~~~~~~ @@ -4417,8 +4395,6 @@ after 0.9.5 (KVM only)` : ``-1`` can be used to allow any value for them. ``allow`` attribute is mandatory, 'yes' means allow, 'no' for deny. -:anchor:`` - Smartcard devices ~~~~~~~~~~~~~~~~~ @@ -4536,8 +4512,6 @@ to provide network interface device naming, that is s= table across changes in PCI addresses assigned to the device. This value is required to be uniq= ue across all devices and be between 1 and (16*1024-1). -:anchor:`` - Virtual network ^^^^^^^^^^^^^^^ @@ -4622,8 +4596,6 @@ virtualport, connection of the interface will fail. ... -:anchor:`` - Bridge to LAN ^^^^^^^^^^^^^ @@ -4704,8 +4676,6 @@ to the interface. ... -:anchor:`` - Userspace SLIRP stack ^^^^^^^^^^^^^^^^^^^^^ @@ -4734,8 +4704,6 @@ to add an IPv6 address to the interface. ``address``.= Optionally, address ... -:anchor:`` - Generic ethernet connection ^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -4903,8 +4871,6 @@ should be provided by the network administrator. :sin= ce:`Since 0.8.2` ... -:anchor:`` - PCI Passthrough ^^^^^^^^^^^^^^^ @@ -4962,8 +4928,6 @@ or stopping the guest. ... -:anchor:`` - vDPA devices ^^^^^^^^^^^^ @@ -4986,8 +4950,6 @@ requires QEMU 5.1.0 or newer)` ... -:anchor:`` - Teaming a virtio/hostdev NIC pair ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5116,8 +5078,6 @@ management software must properly modify the interfac= e XML during migration so that the virtio device remains connected to the same network segment befor= e and after migration. -:anchor:`` - Multicast tunnel ^^^^^^^^^^^^^^^^ @@ -5141,8 +5101,6 @@ must be from the multicast address block. ... -:anchor:`` - TCP tunnel ^^^^^^^^^^ @@ -5170,8 +5128,6 @@ appropriate routing. ... -:anchor:`` - UDP unicast tunnel ^^^^^^^^^^^^^^^^^^ @@ -5195,8 +5151,6 @@ which the UDP socket packets will originate from the = QEMU host. :since:`Since ... -:anchor:`` - Setting the NIC model ^^^^^^^^^^^^^^^^^^^^^ @@ -5230,8 +5184,6 @@ ne2k_pci pcnet rtl8139 e1000 virtio. :since:`Since 5.= 2.0` , See `Virtio transitional devices <#elementsVirtioTransitional>`__ for more details. -:anchor:`` - Setting NIC driver-specific options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5376,8 +5328,6 @@ sub-elements: options. By default, the supported offloads are enabled by QEMU. :since:`Since 1.2.9 (QEMU only)` -:anchor:`` - Setting network backend-specific options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5444,8 +5394,6 @@ the ``guest`` element should be used, as in the follo= wing snippet: ... -:anchor:`` - Specifying boot order ^^^^^^^^^^^^^^^^^^^^^ @@ -5467,8 +5415,6 @@ be tried during boot sequence. The per-device ``boot`= ` elements cannot be used together with general boot elements in `BIOS bootloader <#elementsOSBIOS>`= __ section. :since:`Since 0.8.8` -:anchor:`` - Interface ROM BIOS configuration ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5495,8 +5441,6 @@ used to point to a binary file to be presented to the= guest as the device's ROM BIOS. This can be useful to provide an alternative boot ROM for a network device. :since:`Since 0.9.10 (QEMU and KVM only)` . -:anchor:`` - Setting up a network backend in a driver domain ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5630,8 +5574,6 @@ each other; if there is a guest on the same bridge th= at doesn't have ``isolated=3D'yes'``, even the isolated guests will be able to communicate= with it.) -:anchor:`` - Modifying virtual link state ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5701,8 +5643,6 @@ one attribute, ``max``, to tweak, in element ``frames= `` for the ``rx`` group, which accepts a non-negative integer that specifies the maximum number of packets that will be received before an interrupt. :since:`Since 3.3.0` -:anchor:`` - IP configuration ^^^^^^^^^^^^^^^^ @@ -5812,8 +5752,6 @@ connection is lost. It has two attributes ``enabled``= (which accepts ``yes`` and ``no``) and ``timeout`` which specifies the amount of seconds after which hypervisor tries to reconnect. -:anchor:`` - Traffic filtering with NWFilter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -5848,8 +5786,6 @@ nwfilter via the ``name`` and ``value`` attributes. S= ee the `nwfilter `__ docs for = info on parameters. -:anchor:`` - Input devices ~~~~~~~~~~~~~ @@ -5908,8 +5844,6 @@ The subelement ``driver`` can be used to tune the vir= tio options of the device: `Virtio-specific options <#elementsVirtio>`__ can also be set. ( :since:`S= ince 3.5.0` ) -:anchor:`` - Hub devices ~~~~~~~~~~~ @@ -6379,15 +6313,11 @@ are "yes" and "no" and ``timeout`` which is in seco= nds. The ``reconnect`` attribute is valid only for ``connect`` mode. :since:`Since 3.7.0 (QEMU dr= iver only)` . -:anchor:`` - Guest interface ^^^^^^^^^^^^^^^ A character device presents itself to the guest as one of the following ty= pes. -:anchor:`` - Parallel port ''''''''''''' @@ -6479,8 +6409,6 @@ address. For the relationship between serial ports and consoles, `see below <#elementCharSerialAndConsole>`__. -:anchor:`` - Console ''''''' @@ -6609,8 +6537,6 @@ following configurations: will be treated the same and will result in a single emulated serial conso= le being available to the guest. -:anchor:`` - Channel ''''''' @@ -6690,8 +6616,6 @@ Host interface A character device presents itself to the host as one of the following typ= es. -:anchor:`` - Domain logfile '''''''''''''' @@ -6708,8 +6632,6 @@ virtual machine's logfile ... -:anchor:`` - Device logfile '''''''''''''' @@ -6727,8 +6649,6 @@ file. ... -:anchor:`` - Virtual console ''''''''''''''' @@ -6745,8 +6665,6 @@ This is typically accessed via a special hotkey seque= nce such as "ctrl+alt+3" ... -:anchor:`` - Null device ''''''''''' @@ -6763,8 +6681,6 @@ input. All data written is discarded. ... -:anchor:`` - Pseudo TTY '''''''''' @@ -6807,8 +6723,6 @@ port. ... -:anchor:`` - Named pipe '''''''''' @@ -6825,8 +6739,6 @@ The character device writes output to a named pipe. S= ee pipe(7) for more info. ... -:anchor:`` - TCP client/server ''''''''''''''''' @@ -6907,8 +6819,6 @@ to use the host TLS environment if either the ``chard= ev_tls_x509_cert_dir`` or ... -:anchor:`` - UDP network console ''''''''''''''''''' @@ -6927,8 +6837,6 @@ packets. This is a lossy service. ... -:anchor:`` - UNIX domain socket client/server '''''''''''''''''''''''''''''''' @@ -6946,8 +6854,6 @@ from local clients. ... -:anchor:`` - Spice channel ''''''''''''' @@ -6968,8 +6874,6 @@ domains with or without `spice graphics <#elementsGra= phics>`__. ... -:anchor:`` - Nmdm device ''''''''''' @@ -6995,8 +6899,6 @@ The ``source`` element has these attributes: Slave device of the pair, that is passed to the clients for connection = to the guest console. Device is specified by a fully qualified path. -:anchor:`` - Sound devices ~~~~~~~~~~~~~ @@ -7391,8 +7293,6 @@ defaults to 'WAV' with QEMU. :since:`Since 7.2.0, qemu` -:anchor:`` - Watchdog device ~~~~~~~~~~~~~~~ @@ -7455,8 +7355,6 @@ feature is planned for a future version of libvirt. Note 2: the directory to save dump files can be configured by ``auto_dump_path`` in file /etc/libvirt/qemu.conf. -:anchor:`` - Memory balloon device ~~~~~~~~~~~~~~~~~~~~~ @@ -7533,8 +7431,6 @@ Example: manually added device with static PCI slot 2= requested For model ``virtio`` memballoon, `Virtio-specific options <#elementsVirtio>`__ can also be set. ( :since:`Since 3.5.0` ) -:anchor:`` - Random number generator device ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -7729,8 +7625,6 @@ Example: usage of the TPM Emulator encrypted. The ``secret`` must reference a secret object that holds the passphrase from which the encryption key will be derived. -:anchor:`` - NVRAM device ~~~~~~~~~~~~ @@ -7756,8 +7650,6 @@ Example: usage of NVRAM configuration ``reg`` Device address -:anchor:`` - panic device ~~~~~~~~~~~~ @@ -7801,8 +7693,6 @@ Example: usage of panic configuration specify an address, and doing so is forbidden altogether for s390, pser= ies and hyperv models. -:anchor:`` - Shared memory device ~~~~~~~~~~~~~~~~~~~~ @@ -8364,8 +8254,6 @@ spec `__ session blob defined in the SEV API spec. See SEV spec LAUNCH_START sec= tion for the session blob format. -:anchor:`` - Example configs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 2.35.1