From nobody Mon May 6 06:46:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1601778598; cv=none; d=zohomail.com; s=zohoarc; b=Fu5nVQUpaywbSkrkCGx3Wy0GmVPm50dnvndj4KTqNnHmlUZs8AzPgCi26HbRjC7q4iqJ/b7vcU4CeFtgd0PP5qNyWdVydhQ9FkutFbNn4UZtprY+/Tts8KEmpg/NWOXiCCFgN2hAOp/EU2cE3WfY8iA8J0v7rs6in6Npp8JDHXQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601778598; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=bw9CDXpeE7N76BillFgVD5WAefZS7Henh/gnbBFA2GI=; b=dVsMRq6kzwsAu0r/pHuoY7oXuB5W9AffeK+oSXf2PyPDyIjWvTJ+kOTHKCvpBeqMLXI8mSwihEYKkEsc8+Fofd6z2KPXO2kjfErJ9MonhEAgonVORsNvipcfR2z/2UoY8OLRqpw4CWnJSyIhIREZJBbr9kRs5GHeJh6gcdRdiww= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1601778598912528.3591226020914; Sat, 3 Oct 2020 19:29:58 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-178-KURxmpnvMMyGCBlsZZTcKw-1; Sat, 03 Oct 2020 22:29:52 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 12C1E10054FF; Sun, 4 Oct 2020 02:29:46 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E915A19C78; Sun, 4 Oct 2020 02:29:43 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5E68A1864DA0; Sun, 4 Oct 2020 02:29:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0942TVFr021330 for ; Sat, 3 Oct 2020 22:29:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9A88E9463C; Sun, 4 Oct 2020 02:29:31 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9510D945D7 for ; Sun, 4 Oct 2020 02:29:29 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2EC8185829D for ; Sun, 4 Oct 2020 02:29:29 +0000 (UTC) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-155-ikuagUYhMrqjyMHLoK4f1w-1; Sat, 03 Oct 2020 22:29:26 -0400 Received: by mail-lj1-f195.google.com with SMTP id c2so4293078ljj.12 for ; Sat, 03 Oct 2020 19:29:26 -0700 (PDT) Received: from kloomba.my.domain ([5.227.217.188]) by smtp.gmail.com with ESMTPSA id l129sm2052673lfd.279.2020.10.03.19.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 19:29:23 -0700 (PDT) X-MC-Unique: KURxmpnvMMyGCBlsZZTcKw-1 X-MC-Unique: ikuagUYhMrqjyMHLoK4f1w-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bw9CDXpeE7N76BillFgVD5WAefZS7Henh/gnbBFA2GI=; b=DGabqyJhcqbWefMBnmq18v8i/pzkfeVaJosIOLHTmsoKfKYfzVabr0w1nwaAQSR0U/ L/i5i8RgaJkw9FK+5l0NYkXy7le3k8+7fyCKgZMC4yMfHy0uMPnEKVQqF336SdNph9oG eK8rmtQxhbPGGImGoqAh3joIN97KPX91mGWS/3CD4QZ0iaktmitWLplhSVy2Q71FwnOZ gsWumgb1S3ThKRSHqF4RLmPtTor9UTMCShvfYpAyh6rc67YqOtOK9x6wfokWar5tuAf5 TYcP8KpbDF3265F/n3MveZ6I4HTwRREcrehB5+BurBra52Or7p5MhxX4GDxnB4mkIAHD K4nw== X-Gm-Message-State: AOAM530QJOp/0ZxY+307goeRVJXoq0gAcrtijnfQpfnRfOj6JpFdmHJH 1t98ni6rCBHP092NkM0+5wOcT4BsA9ohgAZf X-Google-Smtp-Source: ABdhPJzmWxtArndVyGdCEVPLT993W2w6VkWxmmsRCqk8+PvZiA4sA8WLM/n5WxILF7877YWv0beT7A== X-Received: by 2002:a2e:9218:: with SMTP id k24mr2356043ljg.306.1601778564919; Sat, 03 Oct 2020 19:29:24 -0700 (PDT) From: Roman Bogorodskiy To: libvir-list@redhat.com Subject: [PATCH] docs: bhyve: style improvements Date: Sun, 4 Oct 2020 06:29:15 +0400 Message-Id: <20201004022915.7933-1-bogorodskiy@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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 Content-Type: text/plain; charset="utf-8" - Wrap long lines in "domxml-to-native" example so it fits content width, - For changeset revision links, use "FreeBSD changeset rN" or "changeset rN" instead of just "rN" to make it more readable. Signed-off-by: Roman Bogorodskiy Reviewed-by: Andrea Bolognani --- docs/drvbhyve.html.in | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/drvbhyve.html.in b/docs/drvbhyve.html.in index 2e58cc50e2..49d4aa5878 100644 --- a/docs/drvbhyve.html.in +++ b/docs/drvbhyve.html.in @@ -232,8 +232,8 @@ Then virsh console command can be used to = connect to the text conso of a guest.

=20

NB: Some versions of bhyve have a bug that prevents guests from = booting -until the console is opened by a client. This bug was fixed in FreeBSD -r262884. = If +until the console is opened by a client. This bug was fixed in +FreeBSD chang= eset r262884. If an older version is used, one either has to open a console manually with <= code>virsh console to let a guest boot or start a guest using:

=20 @@ -272,7 +272,9 @@ tweak them.

 # virsh -c "bhyve:///system"  domxml-to-native --format bhyve-argv --xml /=
path/to/bhyve.xml
 /usr/sbin/bhyveload -m 214 -d /home/user/vm1.img vm1
-/usr/sbin/bhyve -c 2 -m 214 -A -I -H -P -s 0:0,hostbridge -s 3:0,virtio-ne=
t,tap0,mac=3D52:54:00:5d:74:e3 -s 2:0,virtio-blk,/home/user/vm1.img -s 1,lp=
c -l com1,/dev/nmdm0A vm1
+/usr/sbin/bhyve -c 2 -m 214 -A -I -H -P -s 0:0,hostbridge \
+    -s 3:0,virtio-net,tap0,mac=3D52:54:00:5d:74:e3 -s 2:0,virtio-blk,/home=
/user/vm1.img \
+    -s 1,lpc -l com1,/dev/nmdm0A vm1
 
=20

Using ZFS volumes

@@ -416,10 +418,11 @@ Make sure you understand the risks associated with th= is feature before using it.

Clock configuration

=20

Originally bhyve supported only localtime for RTC. Support for UTC time= was introduced in -r284894 f= or 10-STABLE and -in r279225 for -CURRENT. -It's possible to use this in libvirt since 1.2.18, just place the -following to domain XML:

+FreeBSD chang= eset r284894 +for 10-STABLE and +in changeset = r279225 +for -CURRENT. It's possible to use this in libvirt since 1.2.18, +just place the following to domain XML:

=20
 <domain type=3D"bhyve">
@@ -443,8 +446,8 @@ you'll need to explicitly specify 'localtime' in this c=
ase:

=20

e1000 NIC

=20 -

As of r302= 504 bhyve -supports Intel e1000 network adapter emulation. It's supported in libvirt +

As of Free= BSD changeset r302504 +bhyve supports Intel e1000 network adapter emulation. It's supported in li= bvirt since 3.1.0 and could be used as follows:

=20
@@ -497,7 +500,8 @@ be wired and cannot be swapped out as follows:

=20

Since 4.5.0, it's possible to specify gues= t CPU topology, if bhyve supports that. Support for specifying guest CPU topology was added to bhyv= e in -r332298 f= or -CURRENT. +FreeBSD chang= eset r332298 +for -CURRENT. Example:

 <domain type=3D"bhyve">
--=20
2.28.0