Diff for /wikisrc/ports/xen/howto.mdwn between versions 1.185 and 1.186

version 1.185, 2020/11/15 14:59:54 version 1.186, 2020/11/15 15:09:31
Line 27  xen itself).  It also addresses how to r Line 27  xen itself).  It also addresses how to r
 and how to deal with having a domU in a Xen environment run by someone  and how to deal with having a domU in a Xen environment run by someone
 else and/or not running NetBSD.  else and/or not running NetBSD.
   
   There are many choices one can make; the HOWTO recommends the standard
   approach and limits discussion of alternatives in many cases.
   
 ## Guest Styles  ## Guest Styles
   
 Xen supports different styles of guests.  Xen supports different styles of guests.
Line 126  In 2018-05, trouble booting a dom0 was r Line 129  In 2018-05, trouble booting a dom0 was r
   
 [Install NetBSD/amd64](/guide/inst/)  [Install NetBSD/amd64](/guide/inst/)
 just as you would if you were not using Xen.  just as you would if you were not using Xen.
   Therefore, use the most recent release, or a build from the most recent stable branch.
   
 ## Installation of Xen  ## Installation of Xen
   
 We will consider that you chose to use Xen 4.13, with NetBSD/amd64 as  Use the most recent version of Xen in pkgsrc, unless the DESCR says that it ss not suitable.
 dom0. In the dom0, install xenkernel48 and xentools48 from pkgsrc.  Therefore, choose 4.13.
   In the dom0, install xenkernel413 and xentools413 from pkgsrc.
   
 Once this is done, install the Xen kernel itself:  Once this is done, copy the Xen kernel from where pkgsrc puts it to
   where the boot process will be able to find it:
   
 [[!template id=programlisting text="""  [[!template id=programlisting text="""
 # cp /usr/pkg/xen48-kernel/xen.gz /  # cp -p /usr/pkg/xen413-kernel/xen.gz /
 """]]  """]]
   
 Then, place a NetBSD XEN3_DOM0 kernel in the `/` directory. Such kernel  Then, place a NetBSD XEN3_DOM0 kernel in the `/` directory. Such kernel
Line 143  can either be compiled manually, or down Line 149  can either be compiled manually, or down
 example at:  example at:
   
 [[!template id=programlisting text="""  [[!template id=programlisting text="""
 ftp.netbsd.org/pub/NetBSD/NetBSD-8.0/amd64/binary/kernel/netbsd-XEN3_DOM0.gz  ftp.netbsd.org/pub/NetBSD/NetBSD-9.1/amd64/binary/kernel/netbsd-XEN3_DOM0.gz
 """]]  """]]
   
 Add a line to /boot.cfg to boot Xen:  Add a line to /boot.cfg to boot Xen:
Line 173  more) and to pin that vcpu to a physical Line 179  more) and to pin that vcpu to a physical
 and other than dom0 memory and max_vcpus, they are generally not  and other than dom0 memory and max_vcpus, they are generally not
 necessary.  necessary.
   
 Copy the boot scripts into `/etc/rc.d`:  Ensure that the boot scripts installed in
   `/usr/pkg/share/examples/rc.d` are in `/etc/rc.d`, either because you
 [[!template id=programlisting text="""  have `PKG_RCD_SCRIPTS=yes`, or manually.  (This is not special to Xen,
 # cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d/  but a normal part of pkgsrc usage.)
 """]]  
   
 Enable `xencommons`:  Set `xencommons=YES` in rc.conf:
   
 [[!template id=filecontent name="/etc/rc.conf" text="""  [[!template id=filecontent name="/etc/rc.conf" text="""
 xencommons=YES  xencommons=YES

Removed from v.1.185  
changed lines
  Added in v.1.186


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