From owner-svn-doc-head@freebsd.org Mon Aug 6 15:54:56 2018 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 BDFC1105CADF; Mon, 6 Aug 2018 15:54:56 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73AAD7D11E; Mon, 6 Aug 2018 15:54:56 +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 50FF4729F; Mon, 6 Aug 2018 15:54:56 +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 w76FsuE1057719; Mon, 6 Aug 2018 15:54:56 GMT (envelope-from bcr@FreeBSD.org) Received: (from bcr@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w76FsubR057718; Mon, 6 Aug 2018 15:54:56 GMT (envelope-from bcr@FreeBSD.org) Message-Id: <201808061554.w76FsubR057718@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bcr set sender to bcr@FreeBSD.org using -f From: Benedict Reuschling Date: Mon, 6 Aug 2018 15:54:56 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52081 - 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: 52081 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.27 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: Mon, 06 Aug 2018 15:54:57 -0000 Author: bcr Date: Mon Aug 6 15:54:55 2018 New Revision: 52081 URL: https://svnweb.freebsd.org/changeset/doc/52081 Log: The emulators/xen package does not exist anymore and there are two versions now. One is for Xen 4.7, intended for FreeBSD 11. The other is for -CURRENT and uses a more modern Xen 4.11. Adjust the description and examples to differentiate the two. The old 4.7 packages use dom0pvh=1 on the commandline, while Xen 4.11 is using dom0=pvh. Adjust those two as well for the supported FreeBSD versions. Submitted by: royger@ Reviewed by: royger@ Differential Revision: https://reviews.freebsd.org/D16590 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 Sun Aug 5 09:36:00 2018 (r52080) +++ head/en_US.ISO8859-1/books/handbook/virtualization/chapter.xml Mon Aug 6 15:54:55 2018 (r52081) @@ -1432,21 +1432,20 @@ kld_list="nmdm vmm" &xen; Dom0 Control Domain Setup - The emulators/xen package works with - &os; 11 amd64 binary snapshots and equivalent systems - built from source. This example assumes VNC output for - unprivileged domains which is accessed from a another system - using a tool such as net/tightvnc. + Users of &os; 11 should install the + emulators/xen-kernel47 and + sysutils/xen-tools47 packages that are + based on Xen version 4.7. Systems running on &os;-CURRENT + with at least revision r336475 or higher, can use Xen 4.11 + provided by emulators/xen-kernel411 and + sysutils/xen-tools411, respectively. - Install emulators/xen: - - &prompt.root; pkg install xen - Configuration files must be edited to prepare the host - for the Dom0 integration. An entry to - /etc/sysctl.conf disables the limit on - how many pages of memory are allowed to be wired. Otherwise, - DomU VMs with higher memory requirements will not run. + for the Dom0 integration after the Xen packages are installed. + An entry to /etc/sysctl.conf disables the + limit on how many pages of memory are allowed to be wired. + Otherwise, DomU VMs with higher memory requirements will not + run. &prompt.root; sysrc -f /etc/sysctl.conf vm.max_wired=-1 @@ -1479,9 +1478,18 @@ kld_list="nmdm vmm" console is also activated and logging options are defined. + The following command is used for Xen 4.7 packages: + &prompt.root; sysrc -f /boot/loader.conf hw.pci.mcfg=0 &prompt.root; sysrc -f /boot/loader.conf xen_kernel="/boot/xen" &prompt.root; sysrc -f /boot/loader.conf xen_cmdline="dom0_mem=8192M dom0_max_vcpus=4 dom0pvh=1 console=com1,vga com1=115200,8n1 guest_loglvl=all loglvl=all" + + For Xen versions 4.11 and higher, the following command + should be used instead: + + &prompt.root; sysrc -f /boot/loader.conf hw.pci.mcfg=0 +&prompt.root; sysrc -f /boot/loader.conf xen_kernel="/boot/xen" +&prompt.root; sysrc -f /boot/loader.conf xen_cmdline="dom0_mem=8192M dom0_max_vcpus=4 dom0=pvh console=com1,vga com1=115200,8n1 guest_loglvl=all loglvl=all" Log files that &xen; creates for the Dom0 and DomU VMs are stored in /var/log/xen. This