Diff for /wikisrc/ports/xen/howto.mdwn between versions 1.103 and 1.108

version 1.103, 2016/12/19 21:48:53 version 1.108, 2016/12/20 04:03:12
Line 49  specific PCI devices can be made availab Line 49  specific PCI devices can be made availab
 of the dom0.  This can be useful to let a domU run X11, or access some  of the dom0.  This can be useful to let a domU run X11, or access some
 network interface or other peripheral.  network interface or other peripheral.
   
 NetBSD used to support Xen2; this has been removed.  NetBSD 6 and earlier supported Xen 2; support was removed fro NetBSD
   7.  Xen 2 has been removed from pkgsrc.
   
 Prerequisites  Prerequisites
 -------------  -------------
Line 81  xenkernel and xentools.  We will refer o Line 82  xenkernel and xentools.  We will refer o
 but note that both packages must be installed together and must have  but note that both packages must be installed together and must have
 matching versions.  matching versions.
   
 xenkernel3 provides Xen 3.1.  This no longer receives security patches  xenkernel3 provides Xen 3.1.  It is no longer maintained by Xen, and the last applied security patch was in
 and should not be used.  It supports PCI passthrough, which is why  2011. Thus, it should not be used.  It supports PCI passthrough,
 people use it anyway. Xen 3.1 supports non-PAE on i386.  which is why people use it anyway. Xen 3.1 supports i386, both PAE and
   non-PAE.
 xenkernel33 provides Xen 3.3.  This no longer receives security  
 patches and should not be used.  Xen 3.3 supports non-PAE on i386.  xenkernel33 provides Xen 3.3.  It is no longer maintained by Xen, and
   the last applied security patch was in 2012.  Thus, it should not be
 xenkernel41 provides Xen 4.1.  This is no longer maintained by Xen,  used.  Xen 3.3 supports i386, but only in PAE mode.  There are no good
 but as of 2014-12 receives backported security patches.  There are no  reasons to run this version.
 good reasons to run this version.  
   xenkernel41 provides Xen 4.1.  It is no longer maintained by Xen, but
 xenkernel42 provides Xen 4.2. This is no longer maintained by Xen, but  as of 2016-11 received backported security patches.  Xen 4.1 supports
 as of 2014-12 receives backported security patches.  The only reason  i386, but only in PAE mode.  There are no good reasons to run this
 to run this is if you need to use xm instead of xl.  
   
 xenkernel45 provides Xen 4.5.  This is new to pkgsrc as of 2015-01 and  
 recommended for use as a conservative choice.  
   
 xenkernel46 provides Xen 4.6.  TODO: Probably this is the recommended  
 version.  version.
   
   xenkernel42 provides Xen 4.2.  It is no longer maintained by Xen, but
   as of 2016-11 received backported security patches.  Xen 4.2 supports
   i386, but only in PAE mode.  The only reason to run this is if you
   need to use xm instead of xl, or if you need to run an i386 dom0
   (because your hardware is i386 only).
   
   xenkernel45 provides Xen 4.5.  It is no longer maintained by Xen, but
   as of 2016-11 it received security patches.  Xen 4.5 requires an amd64
   dom0, but domUs can be amd64 or i386 PAE.  TODO: It is either a
   conservative choice or somewhat old.
   
   xenkernel45 provides Xen 4.6.  It is new to pkgsrc in 2016-05.  It is
   no longer maintained by Xen, but as of 2016-11 it received security
   patches.  Xen 4.6 requires an amd64 dom0, but domUs can be amd64 or
   i386 PAE.  TODO: It is either a somewhat aggressive choice or the
   standard choice
   
 See also the [Xen Security Advisory page](http://xenbits.xen.org/xsa/).  See also the [Xen Security Advisory page](http://xenbits.xen.org/xsa/).
   
 Ideally newer versions of Xen will be added to pkgsrc.  Ideally newer versions of Xen will be added to pkgsrc.
Line 117  dom0.  Starting in 4.1, a replacement pr Line 129  dom0.  Starting in 4.1, a replacement pr
 called xl is provided, but it does not work well in 4.1.  In 4.2, both  called xl is provided, but it does not work well in 4.1.  In 4.2, both
 xm and xl work fine.  4.4 is the last version that has xm.  You must  xm and xl work fine.  4.4 is the last version that has xm.  You must
 choose one or the other, because it affects which daemons you run.  choose one or the other, because it affects which daemons you run.
   However, the rc.d scripts provided by xentools packages expect a
   particular version, and you should use the version used by the
   scripts.
   
 NetBSD  NetBSD
 ------  ------
   
 The netbsd-5, netbsd-6, netbsd-7, and -current branches are all  The netbsd-6, netbsd-7, and -current branches are all reasonable
 reasonable choices, with more or less the same considerations for  choices, with more or less the same considerations for non-Xen use.
 non-Xen use.  Therefore, netbsd-6 is recommended as the stable version  Therefore, netbsd-7 is recommended as the stable version of the most
 of the most recent release for production use.  For those wanting to  recent release for production use.  For those wanting to learn Xen or
 learn Xen or without production stability concerns, netbsd-7 is likely  without production stability concerns, netbsd-7 is still likely most
 most appropriate.  appropriate, but -current is also a reasonable choice.  Xen runs fine
   on netbsd-5, but the xentools packages are likely difficult to build.
   
 As of NetBSD 6, a NetBSD domU will support multiple vcpus.  There is  As of NetBSD 6, a NetBSD domU will support multiple vcpus.  There is
 no SMP support for NetBSD as dom0.  (The dom0 itself doesn't really  no SMP support for NetBSD as dom0.  (The dom0 itself doesn't really
 need SMP; the lack of support is really a problem when using a dom0 as  need SMP for dom0 functions; the lack of support is really a problem
 a normal computer.)  when using a dom0 as a normal computer.)
   
 Architecture  Architecture
 ------------  ------------
   
 Xen itself can run on i386 or amd64 machines.  (Practically, almost  Xen itself can run on i386 (Xen < 3.1) or amd64 machines (all Xen
 any computer where one would want to run Xen today supports amd64.)  versions).  (Practically, almost any computer where one would want to
   run Xen today supports amd64.)
   
 Xen, the dom0 kernel, and each domU kernel can be either i386 or  Xen, the dom0 kernel, and each domU kernel can be either i386 or
 amd64.  When building a xenkernel package, one obtains i386 on an i386  amd64.  When building a xenkernel package, one obtains i386 on an i386
 host, and amd64 on an amd64 host.  If the xen kernel is i386, then the  host, and amd64 on an amd64 host.  If the xen kernel is i386, then the
 dom0 kernel and all domU kernels must be i386.  With an amd64 xen  dom0 kernel and all domU kernels must be i386.  With an amd64 xen
 kernel, an amd64 dom0 kernel is known to work, and an i386 dom0 kernel  kernel, an amd64 dom0 kernel is known to work, and an i386PAE dom0
 should in theory work.  An amd64 xen/dom0 is known to support both  kernel should in theory work.  An amd64 xen/dom0 is known to support
 i386 and amd64 domUs.  both i386PAE and amd64 domUs.
   
 i386 dom0 and domU kernels must be PAE (except for Xen 3.1); these are  i386 dom0 and domU kernels must be PAE (except for Xen 3.1); these are
 built by default.  (Note that emacs (at least) fails if run on i386  built by default.  (Note that emacs (at least) fails if run on i386
Line 170  However, there are some open PRs indicat Line 187  However, there are some open PRs indicat
  - [PR 47720](http://gnats.netbsd.org/47720)   - [PR 47720](http://gnats.netbsd.org/47720)
   
 Note also that there are issues with sparse vnd(4) instances, but  Note also that there are issues with sparse vnd(4) instances, but
 these are not about Xen.  these are not about Xen -- they just are noticed with sparse vnd(4)
   instances in support of virtual disks in a dom0.
   
 Recommendation  Recommendation
 --------------  --------------
   
 Therefore, this HOWTO recommends running xenkernel42 (and xentools42),  Therefore, this HOWTO recommends running xenkernel45 or xenkernel46,
 xl, the NetBSD 6 stable branch, and to use an amd64 kernel as the  xl, the NetBSD 7 stable branch, and to use an amd64 kernel as the
 dom0.  Either the i386 or amd64 of NetBSD may be used as domUs.  dom0.  Either the i386PAE or amd64 version of NetBSD may be used as
   domUs.
   
 Build problems  Build problems
 --------------  --------------

Removed from v.1.103  
changed lines
  Added in v.1.108


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb