Diff for /wikisrc/ports/xen/howto.mdwn between versions 1.193 and 1.197

version 1.193, 2021/03/03 14:22:24 version 1.197, 2021/03/03 23:17:59
Line 176  want to set it as default.  It is highly Line 176  want to set it as default.  It is highly
 trouble at some point, and keeping an up-to-date GENERIC for use in  trouble at some point, and keeping an up-to-date GENERIC for use in
 fixing problems is the standard prudent approach.  fixing problems is the standard prudent approach.
   
   \todo Explain why rndseed is not set with Xen as part of the dom0
   subconfiguration.
   
   Beware that userconf statements must be attached to the dom0 load, and
   may not be at top-level, because then they would try to configure the
   hypervisor, if there is a way to pass them via multiboot .  It appears
   that adding `userconf=pckbc` to `/boot.cfg` causes Xen to crash very
   early with a heap overflow.
   
 ### Console selection  ### Console selection
   
 See boot_console(8).  Understand that you should start from a place of  See boot_console(8).  Understand that you should start from a place of
Line 197  must also configure it for Xen. Line 206  must also configure it for Xen.
 By default, the hypervisor (Xen itself) will use some sort of vga  By default, the hypervisor (Xen itself) will use some sort of vga
 device as the console, much like GENERIC uses by default.  The vga  device as the console, much like GENERIC uses by default.  The vga
 console is relinquished at the conclusion of hypervisor boot, before  console is relinquished at the conclusion of hypervisor boot, before
 the dom0 is started.  the dom0 is started.  Xen when using a vga console does not process
   console input.
 \todo Explain if there is any notion of input to the Xen console;  
 there is something about 3 CTRL-As in a row.  Perhaps this is about  
 the serial console which is not relinquished?  
   
 The hypervisor can be configured to use a serial port console, e.g.  The hypervisor can be configured to use a serial port console, e.g.
 [[!template id=filecontent name="/boot.cfg" text="""  [[!template id=filecontent name="/boot.cfg" text="""
 menu=Xen:losad /netbsd-XEN3_DOM0.gz console=com0;multiboot /xen.gz dom0_mem=512M console=com1 com1=9600,8n1  menu=Xen:losad /netbsd-XEN3_DOM0.gz console=com0;multiboot /xen.gz dom0_mem=512M console=com1 com1=9600,8n1
 """]]  """]]
 This exampulee uses the first serial port (Xen counts from 1; this is  This example uses the first serial port (Xen counts from 1; this is
 what NetBSD would call com0), and sets speed and parity.  (The dom0 is  what NetBSD would call com0), and sets speed and parity.  (The dom0 is
 then configured to use the same serial port in this example.)  then configured to use the same serial port in this example.)
   
   With the hypervisor configured for a serial console, it can get input,
   and there is a notion of passing this input to the dom0.  \todo
   Explain why, if Xen has a serial console, the dom0 console is
   typically also configured to open that same serial port, instead of
   getting the passthrough input via the xen console.
   
 One also configures the console for the dom0.  While one might expect  One also configures the console for the dom0.  While one might expect
 console=pc to be default, following behavior of GENERIC, a hasty read  console=pc to be default, following behavior of GENERIC, a hasty read
 of the code suggests there is no default and booting without a  of the code suggests there is no default and booting without a
Line 400  file by "memory = N" (in megabytes).  In Line 412  file by "memory = N" (in megabytes).  In
 sum of the the memory allocated to the dom0 and all domUs must be less  sum of the the memory allocated to the dom0 and all domUs must be less
 than the available memory.  than the available memory.
   
 Xen also provides a "balloon" driver, which can be used to let domains  ## Balloon driver
 use more memory temporarily.  
   Xen provides a `balloon` driver, which can be used to let domains use
   more memory temporarily.
   
   \todo Explain how to set up a aystem to use the balloon scheme in a
   useful manner.
   
 ## Virtual disks  ## Virtual disks
   
Line 560  missing with Xen.) Line 577  missing with Xen.)
 Note that NetBSD by default creates only xbd[0123].  If you need more  Note that NetBSD by default creates only xbd[0123].  If you need more
 virtual disks in a domU, run e.g. "./MAKEDEV xbd4" in the domU.  virtual disks in a domU, run e.g. "./MAKEDEV xbd4" in the domU.
   
 ## Creating a Linux domU  ## Creating a Linux PV domU
   
 Creating unprivileged Linux domains isn't much different from  Creating unprivileged Linux domains isn't much different from
 unprivileged NetBSD domains, but there are some details to know.  unprivileged NetBSD domains, but there are some details to know.
Line 605  tty to the xen console. Line 622  tty to the xen console.
   
 ## Creating a NetBSD HVM domU  ## Creating a NetBSD HVM domU
   
 Use type='hmv', probably.  Use a GENERIC kernel within the disk image.  Use type='hvm', probably.  Use a GENERIC kernel within the disk image.
   
 ## Creating a NetBSD PVH domU  ## Creating a NetBSD PVH domU
   
 Use type='pvh'.  This only works with a current kernel in the domU.
   
   Use type='pvh'.  Probably, use a GENERIC kernel within the disk image,
   which in current has PV support.
   
   \todo Verify.
   
 \todo Explain where the kernel comes from.  \todo Verify if one can have current PVH domU on a 9 dom0.
   
 ## Creating a Solaris domU  ## Creating a Solaris domU
   
Line 621  See possibly outdated Line 643  See possibly outdated
 ## PCI passthrough: Using PCI devices in guest domains  ## PCI passthrough: Using PCI devices in guest domains
   
 NB: PCI passthrough only works on some Xen versions and as of 2020 it  NB: PCI passthrough only works on some Xen versions and as of 2020 it
 is not clear that it works on any version in pkgsrc.  Reports  is not clear that it works on any version in pkgsrc.  \todo Reports
 confirming or denying this notion should be sent to port-xen@.  confirming or denying this notion should be sent to port-xen@.
   
 The dom0 can give other domains access to selected PCI  The dom0 can give other domains access to selected PCI

Removed from v.1.193  
changed lines
  Added in v.1.197


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