version 1.182, 2020/11/15 14:47:55
|
version 1.185, 2020/11/15 14:59:54
|
Line 15 website](http://www.xenproject.org/).
|
Line 15 website](http://www.xenproject.org/).
|
|
|
[[!toc]] |
[[!toc]] |
|
|
# Overview: Versions of Xen, Styles, NetBSD |
# Overview |
|
|
The basic concept of Xen is that the hypervisor (xenkernel) runs on |
The basic concept of Xen is that the hypervisor (xenkernel) runs on |
the hardware, and runs a privileged domain ("dom0") that can access |
the hardware, and runs a privileged domain ("dom0") that can access |
Line 60 is required. Thus, a dom0 can be PVHv2.
|
Line 60 is required. Thus, a dom0 can be PVHv2.
|
The source code uses PVH and config files use pvh; this refers to 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). |
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. |
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 |
The dom0 can start one or more domUs. (Booting is explained in detail |
in the dom0 section.) |
in the dom0 section.) |
Line 86 matching versions.
|
Line 85 matching versions.
|
Versions available in pkgsrc: |
Versions available in pkgsrc: |
|
|
[[!table data=""" |
[[!table data=""" |
Xen Version |Package Name |Xen CPU Support |xm? |EOL'ed By Upstream |
Xen Version |Package Name |Xen CPU Support |EOL'ed By Upstream |
4.11 |xenkernel411 |x86_64 | |No |
4.11 |xenkernel411 |x86_64 |No |
4.13 |xenkernel413 |x86_64 | |No |
4.13 |xenkernel413 |x86_64 |No |
"""]] |
"""]] |
|
|
See also the [Xen Security Advisory page](http://xenbits.xen.org/xsa/). |
See also the [Xen Security Advisory page](http://xenbits.xen.org/xsa/). |
|
|
Multiprocessor (SMP) support in NetBSD differs depending on the domain: |
Older Xen had a python-based management tool called xm, now replaced |
|
by xl. |
|
|
[[!table data=""" |
## NetBSD versions |
Domain |Supports SMP |
|
dom0 |No |
Xen has been supported in NetBSD for a long time, at least since 2005. |
domU |Yes |
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. |
|
|
|
NetBSD as a dom0 does not run SMP, because some drivers are not yet |
|
safe for this. \todo Link to more information about what needs work. |
|
|
|
NetBSD, when run as a domU, can and does typically run SMP. |
|
|
Note: NetBSD support is called XEN3. However, it does support Xen 4, |
Note: NetBSD support is called XEN3. However, it does support Xen 4, |
because the hypercall interface has remained identical. |
because the hypercall interface has remained identical. |
|
|
Older Xen had a python-based management tool called xm, now replaced |
|
by xl. |
|
|
|
# Creating a dom0 |
# Creating a dom0 |
|
|
In order to install a NetBSD as a dom0, one must first install a normal |
In order to install a NetBSD as a dom0, one must first install a normal |
Line 506 It is also desirable to add
|
Line 511 It is also desirable to add
|
powerd=YES |
powerd=YES |
|
|
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. |
`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 |
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 |
file system. However, various programs (e.g. netstat) will use that |