Difference between revisions of "Dom0 Kernels for Xen"

From Xen
m
Line 4: Line 4:
   
 
= Choosing a dom0 kernel =
 
= Choosing a dom0 kernel =
If your Linux distribution includes Xen and dom0 kernel it is recommended to use them. This provides benefits such as ease of install, good integration with the distribution, support from the distribution, and provision of security updates.
+
If your Linux distribution includes Xen Project and dom0 kernel it is recommended to use them. This provides benefits such as ease of install, good integration with the distribution, support from the distribution, and provision of security updates.
   
Xen PV domU kernel versions can be different from dom0 kernel versions. There's no need to upgrade domU kernel when you upgrade Xen hypervisor and/or dom0 kernel. Xen hypervisor is backwards compatible, ie. it supports older domU kernels. If your domU distribution includes a Xen domU kernel, it's usually best to use it and not compile your own domU kernel.
+
Xen Project PV domU kernel versions can be different from dom0 kernel versions. There's no need to upgrade domU kernel when you upgrade Xen hypervisor and/or dom0 kernel. The Xen Project hypervisor is backwards compatible, ie. it supports older domU kernels. If your domU distribution includes a Xen Project domU kernel, it's usually best to use it and not compile your own domU kernel.
   
Also please notice that mainline vanilla Linux kernel already supports Xen. Instructions how to configure and build a Linux kernel for Dom0 and DomU support are reported here: [[ Mainline_Linux_Kernel_Configs ]] .
+
Also please notice that mainline vanilla Linux kernel already supports Xen Project. Instructions how to configure and build a Linux kernel for Dom0 and DomU support are reported here: [[ Mainline_Linux_Kernel_Configs ]] .
   
= Linux Distributions which have a Xen Dom0 kernel =
+
= Linux Distributions which have a Xen Project Dom0 kernel =
 
{| class="prettytable sortable" style="width: 90%;" cellpadding="2" cellspacing="0"
 
{| class="prettytable sortable" style="width: 90%;" cellpadding="2" cellspacing="0"
 
! '''Distributions'''
 
! '''Distributions'''
Line 22: Line 22:
 
|-
 
|-
 
| [http://www.centos.org CentOS 6.4+]
 
| [http://www.centos.org CentOS 6.4+]
| 6.4 and newer (see [http://blog.xen.org/index.php/2013/06/20/welcome-to-the-xen4centos6-project-first-release/ announcement])
+
| 6.4 and newer (see [http://blog.xenproject.org/index.php/2013/06/20/welcome-to-the-xen4centos6-project-first-release/ announcement])
 
|-
 
|-
 
| [http://www.debian.org/ Debian]
 
| [http://www.debian.org/ Debian]
Line 37: Line 37:
 
|-
 
|-
 
| [http://www.opensuse.org/ OpenSUSE]
 
| [http://www.opensuse.org/ OpenSUSE]
| 10.x, 11.x, 12.x
+
| 10.x, 11.x, 12.x, 13.x
 
|-
 
|-
 
| [http://www.oracle.com/us/technologies/virtualization/oraclevm/index.html Oracle VM for x86 (OVS)]
 
| [http://www.oracle.com/us/technologies/virtualization/oraclevm/index.html Oracle VM for x86 (OVS)]
Line 68: Line 68:
 
{{Footnote|4}} Based on Ubuntu 12.04 and 12.10 resp.
 
{{Footnote|4}} Based on Ubuntu 12.04 and 12.10 resp.
   
= Xen Dom0 support in BSDs and other Unix systems =
+
= Xen Project Dom0 support in BSDs and other Unix systems =
   
 
This list is currently incomplete. We are in the process of verifying support for other Unixes.
 
This list is currently incomplete. We are in the process of verifying support for other Unixes.
Line 86: Line 86:
 
|}
 
|}
   
{{Footnote|1}} See [http://www.netbsd.org/ports/xen/howto.html#netbsd-dom0 NetBSD Xen HowTo] for more information
+
{{Footnote|1}} See [http://www.netbsd.org/ports/xen/howto.html#netbsd-dom0 NetBSD Xen Project HowTo] for more information
{{Footnote|2}} See [http://multiplicity.bsd.lv/netbsd-xen.html NetBSD Xen User Guide]
+
{{Footnote|2}} See [http://multiplicity.bsd.lv/netbsd-xen.html NetBSD Xen Project User Guide]
{{Footnote|3}} OpenSolaris has been discontinued by Oracle, but Xen dom0 support is present in the latest 2009.06 release and later development snapshots before OpenSolaris was discontinued.
+
{{Footnote|3}} OpenSolaris has been discontinued by Oracle, but Xen Project dom0 support is present in the latest 2009.06 release and later development snapshots before OpenSolaris was discontinued.
{{Footnote|4}} Illumos [http://www.illumos.org] is a fork of OpenSolaris, and Xen dom0 support is present in the Illumos sources, but it's currently unmaintained and untested. Interested developers should be able to make it work again, because it was working earlier in OpenSolaris.
+
{{Footnote|4}} Illumos [http://www.illumos.org] is a fork of OpenSolaris, and Xen Project dom0 support is present in the Illumos sources, but it's currently unmaintained and untested. Interested developers should be able to make it work again, because it was working earlier in OpenSolaris.
{{Footnote|5}} See [http://www.netbsd.org/ports/xen/ NetBSD Xen News]
+
{{Footnote|5}} See [http://www.netbsd.org/ports/xen/ NetBSD Xen Project News]
   
 
[[Category:NetBSD]]
 
[[Category:NetBSD]]
Line 96: Line 96:
   
 
= Mini-OS=
 
= Mini-OS=
Mini-OS is a tiny OS kernel distributed with the Xen hypervisor sources (see extras/mini-os in the Xen source code). It is mainly used as operating system for [[Device_Model_Stub_Domains|stub domains]] that are used for [[Dom0 Disaggregation]].
+
Mini-OS is a tiny OS kernel distributed with the Xen Project hypervisor sources (see extras/mini-os in the Xen Project source code). It is mainly used as operating system for [[Device_Model_Stub_Domains|stub domains]] that are used for [[Dom0 Disaggregation]].
   
 
= FAQ =
 
= FAQ =
Line 105: Line 105:
 
Simple answer: pv_ops. Xen 4.0 switched to using Linux pv_ops based dom0 kernel as a default, and it's the most up-to-date and is undergoing active development.
 
Simple answer: pv_ops. Xen 4.0 switched to using Linux pv_ops based dom0 kernel as a default, and it's the most up-to-date and is undergoing active development.
   
Longer answer: There are two different types of Xen dom0 capable kernels available today:
+
Longer answer: There are two different types of Xen Project dom0 capable kernels available today:
   
 
* pvops kernels, featuring new rewritten Xen support based on the upstream (kernel.org) Linux pvops framework. This work has been included in upstream kernel.org kernel since Linux 2.6.37.
 
* pvops kernels, featuring new rewritten Xen support based on the upstream (kernel.org) Linux pvops framework. This work has been included in upstream kernel.org kernel since Linux 2.6.37.
Line 116: Line 116:
 
[[Category:Compatibility|D]]
 
[[Category:Compatibility|D]]
 
[[Category:Xen|D]]
 
[[Category:Xen|D]]
  +
[[Category:Fundamentals]]

Revision as of 18:55, 18 April 2014

If you don't know what "dom0" or a "dom0 kernel" is, take look at the detailed explanation here.

This page contains information on Xen dom0 support, if you are looking for information on guest (domU) support see XenDomUSupport.

Choosing a dom0 kernel

If your Linux distribution includes Xen Project and dom0 kernel it is recommended to use them. This provides benefits such as ease of install, good integration with the distribution, support from the distribution, and provision of security updates.

Xen Project PV domU kernel versions can be different from dom0 kernel versions. There's no need to upgrade domU kernel when you upgrade Xen hypervisor and/or dom0 kernel. The Xen Project hypervisor is backwards compatible, ie. it supports older domU kernels. If your domU distribution includes a Xen Project domU kernel, it's usually best to use it and not compile your own domU kernel.

Also please notice that mainline vanilla Linux kernel already supports Xen Project. Instructions how to configure and build a Linux kernel for Dom0 and DomU support are reported here: Mainline_Linux_Kernel_Configs .

Linux Distributions which have a Xen Project Dom0 kernel

Distributions Versions
Alpine Linux 2.4.x[2]
CentOS and other RHEL clones 5.x
CentOS 6.4+ 6.4 and newer (see announcement)
Debian 4.0 (Etch), 5.0 (Lenny), 6.0 (Squeeze)[1], 7.0 / 7.1 / 7.2 (Wheezy)[1]
Fedora 15 (Lovelock)[4], 16 (Verne), 17 (Beefy Miracle) [1]
Mageia All versions
Ubuntu 11.10 [1], 12.04 LTS [1]
OpenSUSE 10.x, 11.x, 12.x, 13.x
Oracle VM for x86 (OVS) All versions
Redhat Enterprise Linux (RHEL) 5.x
SUSE Linux Enterprise Server (SLES) 10.x, 11.x
XenServer All versions, but open source from XenServer 6.2. Before that XCP was available as an open source subset of XenServer.


1) Please note that this kernel requires Xen >= 4.0.
2) See wiki for more info
3) Dom0 kernel provided via this (unofficial) repository
4) Based on Ubuntu 12.04 and 12.10 resp.

Xen Project Dom0 support in BSDs and other Unix systems

This list is currently incomplete. We are in the process of verifying support for other Unixes.

Distributions Versions
NetBSD 5.1, 6 [1] [2] [5]
OpenSolaris 2009.06 [3]
Illumos Incomplete [4]


1) See NetBSD Xen Project HowTo for more information
2) See NetBSD Xen Project User Guide
3) OpenSolaris has been discontinued by Oracle, but Xen Project dom0 support is present in the latest 2009.06 release and later development snapshots before OpenSolaris was discontinued.
4) Illumos [1] is a fork of OpenSolaris, and Xen Project dom0 support is present in the Illumos sources, but it's currently unmaintained and untested. Interested developers should be able to make it work again, because it was working earlier in OpenSolaris.
5) See NetBSD Xen Project News

Mini-OS

Mini-OS is a tiny OS kernel distributed with the Xen Project hypervisor sources (see extras/mini-os in the Xen Project source code). It is mainly used as operating system for stub domains that are used for Dom0 Disaggregation.

FAQ

Please see XenKernelFeatures for more information about available features in different Xen enabled kernels.

Q: I've seen mentions of 'pv_ops' and 'xenlinux' kernels. Which one should I choose?

Simple answer: pv_ops. Xen 4.0 switched to using Linux pv_ops based dom0 kernel as a default, and it's the most up-to-date and is undergoing active development.

Longer answer: There are two different types of Xen Project dom0 capable kernels available today:

  • pvops kernels, featuring new rewritten Xen support based on the upstream (kernel.org) Linux pvops framework. This work has been included in upstream kernel.org kernel since Linux 2.6.37.
  • xenlinux kernels based on the "old" patches originally for Linux 2.6.18. These Xenlinux patches won't be integrated to upstream Linux.

However, the pv_ops kernel requires Xen >=4.0. If you desperately need the Xenlinux patches, SLES/OpenSUSE has been forward-porting the patches.