From owner-svn-doc-head@freebsd.org Fri Feb 22 19:21:11 2019 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73CB714F766E; Fri, 22 Feb 2019 19:21:11 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F2CE18311B; Fri, 22 Feb 2019 19:21:10 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C52729A8F; Fri, 22 Feb 2019 19:21:10 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1MJLACR065506; Fri, 22 Feb 2019 19:21:10 GMT (envelope-from bcr@FreeBSD.org) Received: (from bcr@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1MJLAqn065505; Fri, 22 Feb 2019 19:21:10 GMT (envelope-from bcr@FreeBSD.org) Message-Id: <201902221921.x1MJLAqn065505@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bcr set sender to bcr@FreeBSD.org using -f From: Benedict Reuschling Date: Fri, 22 Feb 2019 19:21:10 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52827 - head/en_US.ISO8859-1/books/handbook/virtualization X-SVN-Group: doc-head X-SVN-Commit-Author: bcr X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/virtualization X-SVN-Commit-Revision: 52827 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F2CE18311B X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.965,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 19:21:11 -0000 Author: bcr Date: Fri Feb 22 19:21:10 2019 New Revision: 52827 URL: https://svnweb.freebsd.org/changeset/doc/52827 Log: A few changes to the Xen setup: 1) The line sysrc -f /etc/sysctl.conf vm.max_wired=-1 does not work, it only returns an error about a name containing characters not allowed in shell. Instead, use echo to add the line to sysctl.conf. 2) Fix the rules for automatic bridge creation, taken from the bridging chapter of the handbook. 3) Add a note that FreeBSD's Dom0 requires booting in legacy (BIOS) mode. 4) Remove mention of xen.4th for the loader menu. It's not working anymore with the Lua loader that we have now. Until this is fixed, don't refer readers to it. Thanks to royger@ for providing the patch. Submitted by: royger@ Approved by: me Differential Revision: https://reviews.freebsd.org/D19294 Modified: head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml Fri Feb 22 15:22:24 2019 (r52826) +++ head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml Fri Feb 22 19:21:10 2019 (r52827) @@ -1444,6 +1444,12 @@ kld_list="nmdm vmm" and Input/Output Memory Management Unit (IOMMU) support in the host processor. + + + In order to run a FreeBSD &xen; Dom0 the box must be + booted using legacy boot (BIOS). + + @@ -1464,7 +1470,7 @@ kld_list="nmdm vmm" Otherwise, DomU VMs with higher memory requirements will not run. - &prompt.root; sysrc -f /etc/sysctl.conf vm.max_wired=-1 + &prompt.root; echo 'vm.max_wired=-1' >> /etc/sysctl.conf Another memory-related setting involves changing /etc/login.conf, setting the @@ -1516,12 +1522,6 @@ kld_list="nmdm vmm" experiencing issues. - &xen; provides a boot menu to activate and de-activate - the hypervisor on demand in - /boot/menu.rc.local: - - &prompt.root; echo "try-include /boot/xen.4th" >> /boot/menu.rc.local - Activate the xencommons service during system startup: @@ -1532,12 +1532,12 @@ kld_list="nmdm vmm" DomU machines. To fix that, define a bridged interface with the main NIC of the system which the DomU VMs can use to connect to the network. Replace - igb0 with the host network + em0 with the host network interface name. - &prompt.root; sysrc autobridge_interfaces=bridge0 -&prompt.root; sysrc autobridge_bridge0=igb0 -&prompt.root; sysrc ifconfig_bridge0=SYNCDHCP + &prompt.root; sysrc cloned_interfaces="bridge0" + &prompt.root; sysrc ifconfig_bridge0="addm em0 SYNCDHCP" + &prompt.root; sysrc ifconfig_em0="up" Restart the host to load the &xen; kernel and start the Dom0.