--- wikisrc/ports/xen/howto.mdwn 2020/11/15 14:47:55 1.182 +++ wikisrc/ports/xen/howto.mdwn 2020/11/15 14:56:44 1.184 @@ -15,7 +15,7 @@ website](http://www.xenproject.org/). [[!toc]] -# Overview: Versions of Xen, Styles, NetBSD +# Overview The basic concept of Xen is that the hypervisor (xenkernel) runs on the hardware, and runs a privileged domain ("dom0") that can access @@ -60,7 +60,6 @@ is required. Thus, a dom0 can be PVHv2. The source code uses PVH and config files use pvh; this refers to PVHv2. See [PVH(v2)](https://wiki.xenproject.org/wiki/PVH_(v2\)_Domu). - At system boot, the dom0 kernel is loaded as a module with Xen as the kernel. The dom0 can start one or more domUs. (Booting is explained in detail in the dom0 section.) @@ -86,9 +85,9 @@ matching versions. Versions available in pkgsrc: [[!table data=""" -Xen Version |Package Name |Xen CPU Support |xm? |EOL'ed By Upstream -4.11 |xenkernel411 |x86_64 | |No -4.13 |xenkernel413 |x86_64 | |No +Xen Version |Package Name |Xen CPU Support |EOL'ed By Upstream +4.11 |xenkernel411 |x86_64 |No +4.13 |xenkernel413 |x86_64 |No """]] See also the [Xen Security Advisory page](http://xenbits.xen.org/xsa/). @@ -107,6 +106,15 @@ because the hypercall interface has rema Older Xen had a python-based management tool called xm, now replaced by xl. +## NetBSD versions + +Xen has been supported in NetBSD for a long time, at least since 2005. +Initially Xen was PV only. + +NetBSD 8 and up support PV and HVM modes. + +Support for PVHVM and PVH is available only in NetBSD-current. + # Creating a dom0 In order to install a NetBSD as a dom0, one must first install a normal @@ -506,7 +514,8 @@ It is also desirable to add powerd=YES 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. +`xl shutdown -R` or `xl shutdown -H` is used on the dom0. +\todo Check the translation to xl. It is not strictly necessary to have a kernel (as /netbsd) in the domU file system. However, various programs (e.g. netstat) will use that