Diff for /wikisrc/ports/xen/howto.mdwn between versions 1.86 and 1.92

version 1.86, 2015/01/28 13:27:38 version 1.92, 2015/03/04 01:36:07
Line 142  running an i386 NetBSD kernel as a domU, Line 142  running an i386 NetBSD kernel as a domU,
 (Note that emacs (at least) fails if run on i386 with PAE when built  (Note that emacs (at least) fails if run on i386 with PAE when built
 without, and vice versa, presumably due to bugs in the undump code.)  without, and vice versa, presumably due to bugs in the undump code.)
   
   Stability
   ---------
   
   Mostly, NetBSD as a dom0 or domU is quite stable.
   However, there are some open PRs indicating problems.
   
    - [PR 48125](http://gnats.netbsd.org/48125)
    - [PR 47720](http://gnats.netbsd.org/47720)
   
   Note also that there are issues with sparse vnd(4) instances, but
   these are not about Xen.
   
 Recommendation  Recommendation
 --------------  --------------
   
Line 344  to configure the dom0 tools.  The daemon Line 356  to configure the dom0 tools.  The daemon
 with Xen version and with whether one is using xm or xl.  Note that  with Xen version and with whether one is using xm or xl.  Note that
 xend is for supporting "xm", and should only be used if you plan on  xend is for supporting "xm", and should only be used if you plan on
 using "xm".  Do NOT enable xend if you plan on using "xl" as it will  using "xm".  Do NOT enable xend if you plan on using "xl" as it will
 cause problems.  cause problems.  Running xl without xencommons=YES (and starting it)
   will result in a hang (so don't do that; follow the HOWTO!).
   
 The installation of NetBSD should already have created devices for xen  The installation of NetBSD should already have created devices for xen
 (xencons, xenevt), but if they are not present, create them:  (xencons, xenevt), but if they are not present, create them:
Line 400  With xl, the commands are the same, and  Line 413  With xl, the commands are the same, and 
 different.  TODO: add example output for xl before the xm example,  different.  TODO: add example output for xl before the xm example,
 after confirming on 4.2 and resolving the TODO about rc.conf.  after confirming on 4.2 and resolving the TODO about rc.conf.
   
   ### Issues with xencommons
   
   xencommons starts xenstored, which stores data on behalf of dom0 and
   domUs.  It does not currently work to stop and start xenstored.
   Certainly all domUs should be shutdown first, following the sort order
   of the rc.d scripts.  However, the dom0 sets up state with xenstored,
   and is not notified when xenstored exits, leading to not recreating
   the state when the new xenstored starts.  Until there's a mechanism to
   make this work, one should not expect to be able to restart xenstored
   (and thus xencommons).  There is currently no reason to expect that
   this will get fixed any time soon.
   
 anita (for testing NetBSD)  anita (for testing NetBSD)
 --------------------------  --------------------------
   
Line 501  In 2015-01, the following combination wa Line 526  In 2015-01, the following combination wa
         dom0 kernel: NetBSD/amd64 6.1.5          dom0 kernel: NetBSD/amd64 6.1.5
         Xen tools: xentools42-4.2.5 from pkgsrc          Xen tools: xentools42-4.2.5 from pkgsrc
   
 See http://gnats.netbsd.org/47720 for a problem with dom0 shutdown.  See [PR 47720](http://gnats.netbsd.org/47720) for a problem with dom0
   shutdown.
   
 Unprivileged domains (domU)  Unprivileged domains (domU)
 ===========================  ===========================
Line 563  domain, and see if it has finished stopp Line 589  domain, and see if it has finished stopp
         xm console foo          xm console foo
         xm create -c foo          xm create -c foo
         xm shutdown foo          xm shutdown foo
         xm list          xm list
   
 Typing ^] will exit the console session.  Shutting down a domain is  Typing ^] will exit the console session.  Shutting down a domain is
 equivalent to pushing the power button; a NetBSD domU will receive a  equivalent to pushing the power button; a NetBSD domU will receive a
Line 623  create an empty 4G virtual disk, simply  Line 649  create an empty 4G virtual disk, simply 
   
         dd if=/dev/zero of=foo-xbd0 bs=1m count=4096          dd if=/dev/zero of=foo-xbd0 bs=1m count=4096
   
   Do not use qemu-img-xen, because this will create sparse file.  There
   have been recent (2015) reports of sparse vnd(4) devices causing
   lockups, but there is apparently no PR.
   
 With the lvm style, one creates logical devices.  They are then used  With the lvm style, one creates logical devices.  They are then used
 similarly to vnds.  TODO: Add an example with lvm.  similarly to vnds.  TODO: Add an example with lvm.
   
Line 779  It is also desirable to add Line 809  It is also desirable to add
 in rc.conf. This way, the domain will be properly shut down if  in rc.conf. This way, the domain will be properly shut down if
 `xm shutdown -R` or `xm shutdown -H` is used on the dom0.  `xm shutdown -R` or `xm shutdown -H` is used on the dom0.
   
   It is not strictly necessary to have a kernel (as /netbsd) in the domU
   filesystem.  However, various programs (e.g. netstat) will use that
   kernel to look up symbols to read from kernel virtual memory.  If
   /netbsd is not the running kernel, those lookups will fail.  (This is
   not really a Xen-specific issue, but because the domU kernel is
   obtained from the dom0, it is far more likely to be out of sync or
   missing with Xen.)
   
 Your domain should be now ready to work, enjoy.  Your domain should be now ready to work, enjoy.
   
 Creating an unprivileged Linux domain (domU)  Creating an unprivileged Linux domain (domU)

Removed from v.1.86  
changed lines
  Added in v.1.92


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