xen

{{About|the virtualization software}}

{{Short description|Type-1 hypervisor}}

{{Use mdy dates|date=June 2016}}

{{Infobox software

| title =

| name = Xen Project

| logo = Xen hypervisor logo black.svg

| screenshot = Xen screenshot.png

| caption = Xen running NetBSD and three Linux distributions

| collapsible =

| author = Keir Fraser, Steven Hand, Ian Pratt, University of Cambridge Computer Laboratory

| developer = Linux Foundation
Intel

| released = {{Start date and age|2003|10|02}}

| discontinued =

| latest release version = {{wikidata|property|preferred|references|edit|P348|P548=Q2804309}}

| latest release date = {{Start date and age|{{wikidata|qualifier|preferred|single|P348|P548=Q2804309|P577}}}}

| latest preview version =

| latest preview date =

| programming language = C

| operating system =

| platform =

| size =

| language =

| genre = Hypervisor

| license = GPLv2

| website = {{URL|https://xenproject.org/}}

}}

Xen (pronounced {{IPAc-en|ˈ|z|ɛ|n}}) is a free and open-source type-1 hypervisor, providing services that allow multiple computer operating systems to execute on the same computer hardware concurrently. It was

originally developed by the University of Cambridge Computer Laboratory and is now being developed by the Linux Foundation with support from Intel, Citrix, Arm Ltd, Huawei, AWS, Alibaba Cloud, AMD, Bitdefender and EPAM Systems.

The Xen Project community develops and maintains Xen Project as free and open-source software, subject to the requirements of the GNU General Public License (GPL), version 2. Xen Project is currently available for the IA-32, x86-64 and ARM instruction sets.{{cite news |last1=jgross |title=What's New In XEN 4.12 |url=https://xenproject.org/2019/04/02/whats-new-in-xen-4-12/ |access-date=6 May 2019 |work=xenproject.org |date=2 April 2019}}

Software architecture

Xen Project runs in a more privileged CPU state than any other software on the machine, except for firmware.

Responsibilities of the hypervisor include memory management and CPU scheduling of all virtual machines ("domains"), and for launching the most privileged domain ("dom0") - the only virtual machine which by default has direct access to hardware. From the dom0 the hypervisor can be managed and unprivileged domains ("domU") can be launched.{{cite web |url=http://wiki.xen.org/wiki/Xen_Overview#Introduction_to_Xen_Architecture |title=Xen Overview |access-date=April 5, 2015}}

The dom0 domain is typically a version of Linux or BSD. User domains may either be traditional operating systems, such as Microsoft Windows under which privileged instructions are provided by hardware virtualization instructions (if the host processor supports x86 virtualization, e.g., Intel VT-x and AMD-V),{{cite web |url=http://wiki.xenproject.org/wiki/Category:Compatibility#OSCompatibility |title=OSCompatibility - Xen Project Wiki |publisher=Wiki.xenproject.org |date=February 8, 2007 |access-date=June 8, 2013}} or paravirtualized operating systems whereby the operating system is aware that it is running inside a virtual machine, and so makes hypercalls directly, rather than issuing privileged instructions.

Xen Project boots from a bootloader such as GNU GRUB, and then usually loads a paravirtualized host operating system into the host domain (dom0).

History

Xen originated as a research project at the University of Cambridge led by Ian Pratt, a senior lecturer in the Computer Laboratory, and his PhD student Keir Fraser. According to Anil Madhavapeddy, an early contributor, Xen started as a bet on whether Fraser could make multiple Linux Kernels boot on the same hardware in a weekend.{{cite web |title=What is an Operating System? |url=https://signalsandthreads.com/what-is-an-operating-system/ |date=3 Nov 2021 |archive-url=https://archive.today/20211107121800/https://signalsandthreads.com/what-is-an-operating-system/ |archive-date=7 Nov 2021 |publisher=Jane Street}} The first public release of Xen was made in 2003, with v1.0 following in 2004. Soon after, Pratt and Fraser along with other Cambridge alumni including Simon Crosby and founding CEO Nick Gault created XenSource Inc. to turn Xen into a competitive enterprise product.

To support embedded systems such as smartphone/ IoT with relatively scarce hardware computing resources, the Secure Xen ARM architecture on an ARM CPU was exhibited at Xen Summit on April 17, 2007, held in IBM TJ Watson.{{Cite web|url=http://www-archive.xenproject.org/xensummit/xensummit_spring_2007.html|title=Xen Summit April 2007|date=April 2007|website=Xen Project}}{{Cite web|url=http://www-archive.xenproject.org/files/xensummit_4/Secure_Xen_ARM_xen-summit-04_07_Suh.pdf|last=Suh|first=Sang-bum|date=April 2007|title=Secure Architecture and Implementation of Xen on the ARM for Mobile Devices|website=Xen Project}} The first public release of Secure Xen ARM source code was made at Xen Summit on June 24, 2008{{Cite web|url=http://www-archive.xenproject.org/xensummit/xensummit_summer_2008.html|title=Xen Summit Boston 2008|date=June 2008|website=Xen Project}}{{Cite web|url=http://www-archive.xenproject.org/files/xensummitboston08/SecureXenARM_XenSummitNorthAmerica2008.pdf|last=Suh|first=Sang-bum|date=June 2008|title=Secure Xen on ARM: Source Code Release and Update|website=Xen Project}} by Sang-bum Suh,{{Cite web|url=http://www-archive.xenproject.org/files/xensummitspeakers.pdf|title=XenSummit Speaker Profiles|date=June 2008|website=Xen Summit Boston 2008}} a Cambridge alumnus, in Samsung Electronics.

On October 22, 2007, Citrix Systems completed its acquisition of XenSource,{{cite web |title=Citrix Systems » Citrix Completes Acquisition of XenSource |publisher=Citrix Systems |date=July 12, 2007 |url=http://www.citrix.com/English/NE/news/news.asp?newsID=683171 |access-date=October 26, 2007 |archive-url=https://web.archive.org/web/20120206091534/http://www.citrix.com/English/NE/news/news.asp?newsID=683171 |archive-date=February 6, 2012 |url-status=dead}} and the Xen Project moved to the xen.org domain. This move had started some time previously, and made public the existence of the Xen Project Advisory Board (Xen AB), which had members from Citrix, IBM, Intel, Hewlett-Packard, Novell, Red Hat, Sun Microsystems and Oracle. The Xen Advisory Board advises the Xen Project leader and is responsible for the Xen trademark,{{cite web |url=http://www-archive.xenproject.org/projects/trademark.html |title=Trademark |publisher=Xen.org |access-date=June 8, 2012}} which Citrix has freely licensed to all vendors and projects that implement the Xen hypervisor.{{cite web |url=http://www-archive.xenproject.org/files/XenTMPolicy2008June.pdf |title=Trademark Policy |publisher=Xen.org |type=PDF |date=June 1, 2008 |access-date=June 8, 2013}} Citrix also used the Xen brand itself for some proprietary products unrelated to Xen, including XenApp and XenDesktop.

On April 15, 2013, it was announced that the Xen Project was moved under the auspices of the Linux Foundation as a Collaborative Project.{{cite web |url=http://www.linuxfoundation.org/content/xen-project |title=Linux Foundation Project |publisher=LinuxFoundation.org |access-date=May 3, 2013}} The Linux Foundation launched a new trademark for "Xen Project" to differentiate the project from any commercial use of the older "Xen" trademark. A new community website was launched at xenproject.org{{cite web |url=http://www.xenproject.org/ |title=XenProject.org Website |publisher=XenProject.org |access-date=May 3, 2013}} as part of the transfer. Project members at the time of the announcement included: Amazon, AMD, Bromium, CA Technologies, Calxeda, Cisco, Citrix, Google, Intel, Oracle, Samsung, and Verizon.{{cite web |url=http://www.xenproject.org/directory/project-members.html |title=Linux Foundation Xen Project Members |publisher=XenProject.org |access-date=May 3, 2013}} The Xen project itself is self-governing.{{cite web |url=http://xenproject.org/governance.html |title=Project Governance (Updated) |publisher=XenProject.org |access-date=May 3, 2013}}

Since version 3.0 of the Linux kernel, Xen support for dom0 and domU exists in the mainline kernel.{{cite web |url=http://blog.xen.org/index.php/2011/06/02/xen-celebrates-full-dom0-and-domu-support-in-linux-3-0/ |title=Xen celebrates full dom0 and domU support in Linux 3.0 – |publisher=Blog.xen.org |date=May 30, 2011 |access-date=October 18, 2012 |archive-url=https://web.archive.org/web/20110607003740/http://blog.xen.org/index.php/2011/06/02/xen-celebrates-full-dom0-and-domu-support-in-linux-3-0/ |archive-date=June 7, 2011 |url-status=dead}}

= Release history =

class="wikitable sortable"
Version

! style="min-width: 100px;"| Release date

! Notes

1.0

| {{dts|2003-10-02}}{{cite web |url=http://sourceforge.net/mailarchive/message.php?msg_id=5533663 |title=Xen |publisher=SourceForge.net |date=October 2, 2003 |access-date=October 18, 2012}}{{cite web |author=Jonathan Corbet |url=https://lwn.net/Articles/52033/ |title=The first stable Xen release |publisher=Lwn.net |date=October 2, 2003 |access-date=October 18, 2012}}

|

2.0

| {{dts|2004-11-05}}{{cite web |author=Jonathan Corbet |url=https://lwn.net/Articles/109789/ |title=Xen 2.0 released |publisher=Lwn.net |date=November 5, 2004 |access-date=October 18, 2012}}

| Live migration of PV guests.

3.0

| {{dts|2005-12-05}}{{cite web |author=Jonathan Corbet |url=https://lwn.net/Articles/162841/ |title=Xen 3.0 released |publisher=Lwn.net |date=December 6, 2005 |access-date=October 18, 2012}}{{cite web |url=http://www2.getxen.com/news/pr120505b.html |archive-url=https://web.archive.org/web/20051210024853/http://www2.getxen.com/news/pr120505b.html |archive-date=December 10, 2005 |title=XenSource: Press Releases |publisher=XenSource, Inc. |date=December 10, 2005 |access-date=October 18, 2012}}

|

The releases up to 3.0.4 also added:

  • Support for the AMD SVM virtualization extensions.{{cite web |url=http://lists.xenproject.org/archives/html/xen-devel/2005-12/msg00543.html|title=AMD SVM Xen port is public|publisher=lists.xenproject.org |date=December 14, 2005 |access-date=June 8, 2013}}
  • Support for the PowerPC architecture.{{cite web |url=http://lists.xenproject.org/archives/html/xen-devel/2006-10/msg00733.html |title=[Xen-devel] Xen 3.0.3 released! - Xen Source |publisher=Lists.xenproject.org |date=October 17, 2006 |access-date=June 8, 2013}}
  • Graphical framebuffer support for paravirtualized guests.{{cite web |url=http://lists.xenproject.org/archives/html/xen-devel/2006-12/msg00889.html |title=[Xen-devel] FW: Xen 3.0.4 released! - Xen Source |publisher=Lists.xenproject.org |date=December 20, 2006 |access-date=June 8, 2013}}
3.1

| {{dts|2007-05-18}}{{cite web |url=http://lists.xenproject.org/archives/html/xen-announce/2007-05/msg00002.html |title=[Xen-devel] Xen 3.1 released! - Xen Source |publisher=Lists.xenproject.org |date=May 18, 2007 |access-date=June 8, 2013}}

| Live migration for HVM guests, XenAPI

3.2

| {{dts|2008-01-17}}{{cite web |url=http://vmblog.com/archive/2008/01/17/xen-3-2-0-officially-released.aspx |title=Xen 3.2.0 Officially Released : VMblog.com - Virtualization Technology News and Information for Everyone |publisher=VMblog.com |access-date=October 18, 2012}}

| PCI passthrough and ACPI S3 standby mode for the host system.

3.3

| {{dts|2008-08-24}}{{cite web |url=http://www.h-online.com/newsticker/news/item/Xen-3-3-0-hypervisor-ready-for-download-737027.html |archive-url=https://web.archive.org/web/20120314024846/http://www.h-online.com/newsticker/news/item/Xen-3-3-0-hypervisor-ready-for-download-737027.html |archive-date=March 14, 2012 |title=Xen 3.3.0 hypervisor ready for download - The H: Open Source, Security and Development |publisher=H-online.com |date=August 25, 2008 |access-date=October 18, 2012}}

| Improvements for the PCI passthrough and the power management. Xen ARM hypervisor source code released for ARM CPU support

3.4

| {{dts|2009-05-18}}{{cite web |url=http://community.citrix.com/display/ocb/2009/05/18/Xen.org+Announces+Release+of+Xen+3.4+Hypervisor |title=Xen.org Announces Release Of Xen 3.4 Hypervisor | Citrix Blogs |publisher=Community.citrix.com |date=May 18, 2009 |access-date=October 18, 2012 |archive-url=https://web.archive.org/web/20110315025808/http://community.citrix.com/display/ocb/2009/05/18/Xen.org+Announces+Release+of+Xen+3.4+Hypervisor |archive-date=March 15, 2011 |url-status=dead}}

| Contains a first version of the "Xen Client Initiative", shortly XCI.

4.0

| {{dts|2010-04-07}}{{cite web |url=http://www.h-online.com/open/news/item/Virtualisation-Xen-is-looking-to-catch-up-by-releasing-version-4-974405.html |archive-url=https://web.archive.org/web/20120314024856/http://www.h-online.com/open/news/item/Virtualisation-Xen-is-looking-to-catch-up-by-releasing-version-4-974405.html|archive-date=March 14, 2012|title=Virtualisation: Xen is looking to catch up by releasing version 4 - The H Open: News and Features |publisher=H-online.com |date=April 9, 2010 |access-date=October 18, 2012}}

| Makes it possible to use a dom0 Linux kernel, which has been implemented by using PVOps. A Linux kernel of version 2.6.31 has been modified for this purpose, because the official Linux kernel actually does not support the usage as dom0 kernel (date July 2010).{{cite web |url=http://www.xen.org/files/Xen_4_0_Datasheet.pdf |title=Xen 4.0 Datasheet |publisher=Xen.org |type=PDF |access-date=October 18, 2012 |archive-date=May 10, 2012 |archive-url=https://web.archive.org/web/20120510232212/http://xen.org/files/Xen_4_0_Datasheet.pdf |url-status=dead }}

4.1

| {{dts|2011-03-25}}{{cite web |url=http://blog.xen.org/index.php/2011/03/25/xen-4-1-releases/ |title=Xen 4.1 releases – |publisher=Blog.xen.org |date=March 25, 2011 |access-date=October 18, 2012 |archive-url=https://web.archive.org/web/20110829033741/http://blog.xen.org/index.php/2011/03/25/xen-4-1-releases/ |archive-date=August 29, 2011 |url-status=dead}}

| Some of the improvements: Support for more than 255 processors, better stability. Linux kernel v2.6.37 and onward support usage as dom0 kernel.{{cite web |url=http://wiki.xenproject.org/wiki/XenParavirtOps |title=XenParavirtOps - Xen Wiki |publisher=Wiki.xenproject.org |access-date=June 8, 2013}}

4.2

| {{dts|2012-09-08}}{{cite web |url=https://blog.xenproject.org/2015/10/13/xen-4-6/ |title=Best Quality and Quantity of Contributions in the New Xen Project 4.6 Release |publisher=Xenproject.org |date=October 13, 2015 |access-date=October 13, 2015}}

| XL became the default toolstack. Support for up to 4095 host processors and up to 512 guest processors.

4.3

| {{dts|2013-07-09}}{{cite web |url=http://blog.xen.org/index.php/2013/07/09/xen-4-3-0-released/ |title=Xen 4.3 released! – |publisher=Blog.xen.org |date=July 9, 2013 |access-date=July 16, 2013 |archive-url=https://web.archive.org/web/20130713083743/http://blog.xen.org/index.php/2013/07/09/xen-4-3-0-released/ |archive-date=July 13, 2013 |url-status=dead}}

| Experimental ARM support. NUMA-aware scheduling. Support for Open vSwitch.

4.4

| {{dts|2014-03-10}}{{cite web |url=http://blog.xen.org/index.php/2014/03/10/xen-4-4-released/ |title=Xen 4.4 releases – |publisher=Blog.xen.org |date=March 10, 2014 |access-date=March 10, 2014 |archive-url=https://web.archive.org/web/20140310184516/http://blog.xen.org/index.php/2014/03/10/xen-4-4-released/ |archive-date=March 10, 2014 |url-status=dead}}

| Solid libvirt support for libxl, new scalable event channel interface, hypervisor ABI for ARM declared stable, Nested Virtualization on Intel hardware.{{cite web |url=http://wiki.xenproject.org/wiki/Xen_4.4_Release_Notes |title=Xen Project 4.4 Release Notes |publisher=Wiki.xenproject.org |access-date=March 10, 2014}}{{cite web |url=http://wiki.xenproject.org/wiki/Xen_4.4_Feature_List |title=Xen 4.4 Feature List |publisher=Wiki.xenproject.org |access-date=March 10, 2014}}

4.5

| {{dts|2015-01-17}}{{cite web |url=https://blog.xenproject.org/2015/01/15/less-is-more-in-the-new-xen-project-4-5-release/ |title=Less is More in the New Xen Project 4.5 Release – |publisher=Blog.xen.org |date=January 15, 2015 |access-date=January 17, 2015}}

| With 43 major new features, 4.5 includes the most updates in the project's history.

4.6

| {{dts|2015-10-13}}

| Focused on improving code quality, security hardening, enablement of security appliances, and release cycle predictability.

4.7

| {{dts|2016-06-24}}{{cite web |url=https://blog.xenproject.org/2017/04/12/xen-project-4-8-1-is-available/|title=Xen Project 4.8.1 is available |publisher=Xenproject.org|date=April 12, 2017|access-date=June 1, 2017}}

| Improved: security, live migrations, performances and workload. Hardware support (ARM and Intel Xeon).{{cite web|url=http://wiki.xenproject.org/wiki/Xen_Project_4.7_Feature_List|title=Xen Project 4.7 Feature List|publisher=Xen project|date=2016-06-24}}

4.8.1

|April 12, 2017{{Cite web|url=https://blog.xenproject.org/2017/04/12/xen-project-4-8-1-is-available/|title=Xen Project 4.8.1 is available {{!}} Xen Project Blog|website=blog.xenproject.org|date=April 12, 2017|access-date=2018-02-19}}

4.9

|June 28, 2017{{Cite web|url=https://blog.xenproject.org/2017/06/28/whats-new-in-the-xen-project-hypervisor-4-9/|title=What's New in the Xen Project Hypervisor 4.9|date=June 28, 2017|access-date=2018-04-26}}

|[https://wiki.xen.org/wiki/Xen_Project_4.9_Release_Notes Xen Project 4.9 Release Notes]

4.10

|December 12, 2017{{Cite web|url=https://blog.xenproject.org/2017/12/12/whats-new-in-the-xen-project-hypervisor-4-10/|title=What's New in the Xen Project Hypervisor 4.10|date=December 12, 2017|access-date=2018-04-26}}

|[https://wiki.xenproject.org/wiki/Xen_Project_4.10_Release_Notes Xen Project 4.10 Release Notes]

4.11

|July 10, 2018{{Cite web|url=https://blog.xenproject.org/2018/07/10/whats-new-in-the-xen-project-hypervisor-4-11/|title=What's New in the Xen Project Hypervisor 4.11|last=Gross|first=Juergen|date=July 10, 2018|access-date=January 17, 2018}}

|[https://wiki.xenproject.org/wiki/Xen_Project_4.11_Release_Notes Xen Project 4.11 Release Notes]

4.12

|April 2, 2019{{Cite web|url=https://xenproject.org/2019/04/02/whats-new-in-xen-4-12/|title=WHAT'S NEW IN XEN 4.12|last=Gross|first=Juergen|date=April 2, 2019|access-date=April 29, 2019}}

|[https://wiki.xenproject.org/wiki/Xen_Project_4.12_Release_Notes Xen Project 4.12 Release Notes]

4.13

|December 18, 2019{{Cite web|url=https://xenproject.org/2019/12/18/whats-new-in-xen-4-13/|title=What's new in Xen 4.13|last=Kurth|first=Lars|date=December 18, 2019|access-date=December 23, 2019}}

|[https://wiki.xenproject.org/wiki/Xen_Project_4.13_Release_Notes Xen Project 4.13 Release Notes]

4.14

|July 24, 2020

|[https://wiki.xenproject.org/wiki/Xen_Project_4.14_Release_Notes Xen Project 4.14 Release Notes]

4.15

|April 8, 2021

|[https://wiki.xenproject.org/wiki/Xen_Project_4.15_Release_Notes Xen Project 4.15 Release Notes]

4.16

|December 2, 2021

|[https://wiki.xenproject.org/wiki/Xen_Project_4.16_Release_Notes Xen Project 4.16 Release Notes]

4.17

|December 14, 2022

|[https://wiki.xenproject.org/wiki/Xen_Project_4.17_Release_Notes Xen Project 4.17 Release Notes]

4.18

|November 23, 2023

|[https://wiki.xenproject.org/wiki/Xen_Project_4.18_Release_Notes Xen Project 4.18 Release Notes]

4.19

|July 29, 2024

|[https://wiki.xenproject.org/wiki/Xen_Project_4.19_Release_Notes Xen Project 4.19 Release Notes]

4.20

|March 5, 2025

|[https://wiki.xenproject.org/wiki/Xen_Project_4.20_Release_Notes Xen Project 4.20 Release Notes]

Uses

{{update|date=May 2016}}

Internet hosting service companies use hypervisors to provide virtual private servers. Amazon EC2 (from August 2006 to November 2017),{{Cite web|url=https://aws.amazon.com/es/blogs/aws/amazon_ec2_beta/|title = Amazon EC2 Beta|date = August 25, 2006}} IBM SoftLayer,{{cite web |url=http://cdn.softlayer.com/PS_EC2vsCL.pdf |title=CloudLayer Computing vs. Amazon EC2 |type=PDF |access-date=April 5, 2015 |archive-date=December 12, 2014 |archive-url=https://web.archive.org/web/20141212111150/http://cdn.softlayer.com/PS_EC2vsCL.pdf |url-status=dead }} Liquid Web, Fujitsu Global Cloud Platform,{{cite web |url=http://m.zdnetasia.com/fujitsu-s-global-cloud-launches-in-aus-62207108.htm |title=Fujitsu's global cloud launches in Aus |publisher=ZDNet Australia |author=Suzanne Tindal |date=February 28, 2011 |access-date=October 11, 2011 |archive-url=https://web.archive.org/web/20141031195924/http://www.zdnet.com/fujitsus-global-cloud-launches-in-aus-1339310379/ |archive-date=October 31, 2014 |url-status=dead}} Linode, OrionVM{{cite web |url=http://wiki.xenproject.org/wiki/Guest_VM_Images#OrionVM_PV-HVM_Templates |title=Xen Project - Guest VM Images - OrionVM PV-HVM Templates |date=April 1, 2012 |access-date=June 27, 2014}} and Rackspace Cloud use Xen as the primary VM hypervisor for their product offerings.{{cite web |url=http://www.rackspace.com/cloud/cloud_hosting_faq/ |title=Cloud FAQ |publisher=Rackspace.com |date=September 13, 2011 |access-date=October 18, 2012 |archive-date=October 17, 2012 |archive-url=https://web.archive.org/web/20121017104345/http://www.rackspace.com/cloud/cloud_hosting_faq/ |url-status=dead }}

Virtual machine monitors (also known as hypervisors) also often operate on mainframes and large servers running IBM, HP, and other systems.{{Citation needed|date=April 2013}}

Server virtualization can provide benefits such as:

  • Consolidation leading to increased utilization
  • Rapid provisioning
  • Dynamic fault tolerance against software failures (through rapid bootstrapping or rebooting)
  • Hardware fault tolerance (through migration of a virtual machine to different hardware)
  • Secure separations of virtual operating systems
  • Support for legacy software as well as new OS instances on the same computer

Xen's support for virtual machine live migration from one host to another allows load balancing and the avoidance of downtime.

Virtualization also has benefits when working on development (including the development of operating systems): running the new system as a guest avoids the need to reboot the physical computer whenever a bug occurs. Sandboxed guest systems can also help in computer-security research, allowing study of the effects of some virus or worm without the possibility of compromising the host system.

Finally, hardware appliance vendors may decide to ship their appliance running several guest systems, so as to be able to execute various pieces of software that require different operating systems. {{Citation needed|date=May 2019}}

Types of virtualization

Xen offers five approaches to running the guest operating system:{{cite web |title=Understanding the Virtualization Spectrum |url=https://wiki.xenproject.org/wiki/Understanding_the_Virtualization_Spectrum |archive-date=5 February 2023 |archive-url=https://archive.today/20230205230022/https://wiki.xenproject.org/wiki/Understanding_the_Virtualization_Spectrum |website=xenproject.org |access-date=9 March 2022 }}{{cite web |url=http://bhyvecon.org/bhyvecon2015-Roger.pdf |title=Xen virtualization on FreeBSD |author=Roger Pau Monne |type=PDF |access-date=April 6, 2015}}{{cite web |url=https://support.rackspace.com/how-to/choosing-a-virtualization-mode-pv-versus-pvhvm/ |title=Choosing a virtualization mode (PV versus PVHVM) |author= |date=January 12, 2016 |website=Rackspace Support Network |publisher=Rackspace |access-date=January 25, 2018 |archive-date=January 26, 2018 |archive-url=https://web.archive.org/web/20180126184949/https://support.rackspace.com/how-to/choosing-a-virtualization-mode-pv-versus-pvhvm/ |url-status=dead }}

  • PV (paravirtualization): Virtualization-aware Guest and devices.
  • HVM (hardware virtual machine): Fully hardware-assisted virtualization with emulated devices.
  • HVM with PV drivers: Fully hardware-assisted virtualization with PV drivers for IO devices.
  • PVHVM (paravirtualization with hardware virtualization): PV supported hardware-assisted virtualization with PV drivers for IO devices.
  • PVH (PV in an HVM container): Fully paravirtualized Guest accelerated by hardware-assisted virtualization where available.

Xen provides a form of virtualization known as paravirtualization, in which guests run a modified operating system. The guests are modified to use a special hypercall ABI, instead of certain architectural features. Through paravirtualization, Xen can achieve high performance even on its host architecture (x86) which has a reputation for non-cooperation with traditional virtualization techniques.Robin and Irvine, [http://www.usenix.org/events/sec2000/robin.html "Analysis of the Intel Pentium's Ability to Support a Secure Virtual Machine Monitor"], 9th Usenix Security Symposium, 2000Gil Neiger, Amy Santoni, Felix Leung, Dion Rodgers, Rich Uhlig. [http://www.intel.com/technology/itj/2006/v10i3/1-hardware/3-software.htm Intel Virtualization Technology: Software-only virtualization with the IA-32 and Itanium architectures], Intel Technology Journal, Volume 10 Issue 03, August 2006. Xen can run paravirtualized guests ("PV guests" in Xen terminology) even on CPUs without any explicit support for virtualization. Paravirtualization avoids the need to emulate a full set of hardware and firmware services, which makes a PV system simpler to manage and reduces the attack surface exposed to potentially malicious guests. On 32-bit x86, the Xen host kernel code runs in Ring 0, while the hosted domains run in Ring 1 (kernel) and Ring 3 (applications).

CPUs that support virtualization make it possible to run unmodified guests, including proprietary operating systems (such as Microsoft Windows). This is known as hardware-assisted virtualization, however, in Xen this is known as hardware virtual machine (HVM). HVM extensions provide additional execution modes, with an explicit distinction between the most-privileged modes used by the hypervisor with access to the real hardware (called "root mode" in x86) and the less-privileged modes used by guest kernels and applications with "hardware" accesses under complete control of the hypervisor (in x86, known as "non-root mode"; both root and non-root mode have Rings 0–3). Both Intel and AMD have contributed modifications to Xen to exploit their respective Intel VT-x and AMD-V architecture extensions.[http://www.intel.com/technology/itj/2006/v10i3/3-xen/1-abstract.htm Extending Xen with Intel Virtualization Technology], intel.com Use of ARM v7A and v8A virtualization extensions came with Xen 4.3.{{cite web |url=http://www.xenproject.org/developers/teams/arm-hypervisor.html |title=The ARM Hypervisor — The Xen Project's Hypervisor for the ARM architecture |access-date=April 6, 2015}} HVM extensions also often offer new instructions to allow direct calls by a paravirtualized guest/driver into the hypervisor, typically used for I/O or other operations needing high performance. These allow HVM guests with suitable minor modifications to gain many of the performance benefits of paravirtualized I/O. In current versions of Xen (up to 4.2) only fully virtualized HVM guests can make use of hardware facilities for multiple independent levels of memory protection and paging. As a result, for some workloads, HVM guests with PV drivers (also known as PV-on-HVM, or PVH) provide better performance than pure PV guests. Xen HVM has device emulation based on the QEMU project to provide I/O virtualization to the virtual machines. The system emulates hardware via a patched QEMU "device manager" (qemu-dm) daemon running as a backend in dom0. This means that the virtualized machines see an emulated version of a fairly basic PC. In a performance-critical environment, PV-on-HVM disk and network drivers are used during the normal guest operation, so that the emulated PC hardware is mostly used for booting.

Features

Administrators can "live migrate" Xen virtual machines between physical hosts across a LAN without loss of availability. During this procedure, the LAN iteratively copies the memory of the virtual machine to the destination without stopping its execution. The process requires a stoppage of around 60–300 ms to perform final synchronization before the virtual machine begins executing at its final destination, providing an illusion of seamless migration. Similar technology can serve to suspend running virtual machines to disk, "freezing" their running state for resumption at a later date.

Xen can scale to 4095 physical CPUs, 256 VCPUs{{clarify|date=October 2024}} per HVM guest, 512 VCPUs per PV guest, 16 TB of RAM per host, and up to 1 TB of RAM per HVM guest or 512 GB of RAM per PV guest.{{cite web |url=http://wiki.xenproject.org/wiki/Xen_Release_Features |title=Xen Release Features | publisher = Xen Project | access-date=October 18, 2012}}

Availability

The Xen hypervisor has been ported to a number of processor families:

  • Intel: IA-32, IA-64 (before version 4.2{{cite web |url=http://wiki.xen.org/wiki/Xen_4.2_Feature_List#Removed_Functionality |title=Xen 4.2 Feature List | publisher = Xen Project |date=December 17, 2012 |access-date=January 22, 2014}}), x86-64
  • PowerPC: previously supported under the XenPPC project, no longer active after Xen 3.2{{cite web |url=http://new-wiki.xen.org/old-wiki/xenwiki/XenPPC.html |title=XenPPC | publisher = Xen Project |date=August 15, 2010 |access-date=January 22, 2014}}
  • ARM: previously supported under the XenARM project for older versions of ARM without virtualization extensions, such as the Cortex-A9. Currently{{when|date=March 2015}} supported since Xen 4.3 for newer versions of the ARM with virtualization extensions, such as the [[ARM Cortex-A15 MPCore|

Cortex-A15]].

  • MIPS: XLP832 experimental port{{cite web |author=Mashable |url=http://www.slideshare.net/xen_com_mgr/porting-xen-paravirtualization-to-mips-architecture |title=Porting Xen Paravirtualization to MIPS Architecture |publisher=Slideshare.net |date=September 4, 2012 |access-date=January 22, 2014}}

{{Anchor|XENSERVER}}Hosts

Xen can be shipped in a dedicated virtualization platform, such as XCP-ng or XenServer (formerly Citrix Hypervisor, and before that Citrix XenServer, and before that XenSource's XenEnterprise).

Alternatively, Xen is distributed as an optional configuration of many standard operating systems. Xen is available for and distributed with:

  • Alpine Linux offers a minimal dom0 system (Busybox, UClibc) that can be run from removable media, like USB sticks.
  • Arch Linux provides the necessary packages with detailed setup instructions on their Wiki.{{cite web |url=https://aur.archlinux.org/packages/xen/|title=AUR (en) - xen|publisher=Aur.archlinux.org|access-date=April 12, 2018}}{{cite web|url=https://wiki.archlinux.org/index.php/Xen|title=Xen - ArchWiki |publisher=Wiki.archlinux.org |access-date=April 12, 2018}}
  • Debian Linux (since version 4.0 "etch") and many of its derivatives;
  • FreeBSD 11 includes experimental host support.{{cite web |url=https://wiki.freebsd.org/Xen |title=Xen - FreeBSD Wiki |publisher=wiki.freebsd.org |access-date=September 28, 2015}}
  • Gentoo has the necessary packages available to support Xen, along with instructions on their Wiki.{{cite web |url=https://wiki.gentoo.org/wiki/Xen?style=printable|title=Xen|publisher=Wiki.gentoo.org|access-date=April 12, 2018}}
  • Mageia (since version 4);
  • NetBSD can function as domU and dom0.{{cite web |url=http://www.netbsd.org/ports/xen/ |title=NetBSD/xen |publisher=Netbsd.org |access-date=June 8, 2013}}
  • OpenSolaris-based distributions can function as dom0 and domU from Nevada build 75 onwards.
  • openSUSE 10.x to 12.x:{{cite web |url=http://wiki.xenproject.org/wiki/XenDom0Kernels |title=XenDom0Kernels - Xen Wiki |publisher=Wiki.xenproject.org |date=November 8, 2011 |access-date=June 8, 2013}} only 64-bit hosts are supported since 12.1;
  • Qubes OS uses Xen to isolate applications for a more secure desktop.{{cite web |url=https://wiki.xen.org/wiki/Xen_in_Qubes_OS_Security_Architecture |title=Xen in Qubes OS Security Architecture|publisher=xenp.org|access-date=April 12, 2018}}
  • SUSE Linux Enterprise Server (since version 10);
  • Solaris (since 2013 with Oracle VM Server for x86, before with Sun xVM);
  • Ubuntu (since 8.04 "Hardy Heron", but no dom0-capable kernel in 8.10 "Intrepid Ibex" until 12.04 "Precise Pangolin".{{cite web |url=http://web.archiveorange.com/archive/v/UsR4nzBeS5vYtX5ylWMY |title=Xen dom0 support in Lucid - Kernel team discussions - ArchiveOrange |publisher=Web.archiveorange.com |access-date=January 22, 2014 |archive-url=https://web.archive.org/web/20110913013002/http://web.archiveorange.com/archive/v/UsR4nzBeS5vYtX5ylWMY |archive-date=September 13, 2011 |url-status=dead}}{{cite web |url=https://help.ubuntu.com/community/Xen |title=Xen - Community Ubuntu Documentation |publisher=Help.ubuntu.com |date=September 5, 2012 |access-date=October 18, 2012}})

Guests

Guest systems can run fully virtualized (which requires hardware support), paravirtualized (which requires a modified guest operating system), or fully virtualized with paravirtualized drivers (PVHVM{{cite web |url=https://wiki.xen.org/wiki/PV_on_HVM |title=PV on HVM |publisher=Wiki.xen.org |access-date=April 12, 2018}}).{{cite web |url=https://wiki.xenproject.org/wiki/Understanding_the_Virtualization_Spectrum |title=Understanding the Virtualization Spectrum|publisher=Wiki.xenproject.org |access-date=April 12, 2018}} Most operating systems which can run on PCs can run as a Xen HVM guest. The following systems can operate as paravirtualized Xen guests:

  • Linux
  • FreeBSD in 32-bit, or 64-bit through PVHVM;{{cite web |url=http://wiki.freebsd.org/FreeBSD/Xen |title=FreeBSD/Xen - FreeBSD Wiki |publisher=Wiki.freebsd.org |date=June 25, 2012 |access-date=October 18, 2012 |archive-date=October 12, 2012 |archive-url=https://web.archive.org/web/20121012063521/http://wiki.freebsd.org/FreeBSD/Xen |url-status=dead }}{{cite web |url=https://www.freebsd.org/releases/11.0R/relnotes.html#hardware-virtualization |title=FreeBSD 11.0-RELEASE Release Notes |publisher=The FreeBSD Documentation Project |date=September 22, 2016 |access-date=October 23, 2016}}
  • OpenBSD, through PVHVM;{{cite web|url=https://man.openbsd.org/xen.4|title=xen(4) - OpenBSD Manual Pages|access-date=December 30, 2017}}
  • NetBSD
  • MINIX
  • GNU Hurd (gnumach-1-branch-Xen-branch)
  • Plan 9 from Bell Labs

Xen version 3.0 introduced the capability to run Microsoft Windows as a guest operating system unmodified if the host machine's processor supports hardware virtualization provided by Intel VT-x (formerly codenamed Vanderpool) or AMD-V (formerly codenamed Pacifica). During the development of Xen 1.x, Microsoft Research, along with the University of Cambridge Operating System group, developed a port of Windows XP to Xen — made possible by Microsoft's Academic Licensing Program. The terms of this license do not allow the publication of this port, although documentation of the experience appears in the original Xen SOSP paper.{{cite conference |last1=Barham |first1=Paul |last2=Dragovic |first2=Boris |last3=Fraser |first3=Keir |last4=Hand |first4=Steven |last5=Harris |first5=Tim |last6=Ho |first6=Alex |last7=Neugebauer |first7=Rolf |last8=Pratt |first8=Ian |last9=Warfield |first9=Andrew |title=Xen and the art of virtualization |date=19 October 2003 |pages=164–177 |doi=10.1145/945445.945462 |conference=SOSP '03: Proceedings of the nineteenth ACM symposium on Operating systems principles |url=https://www.cl.cam.ac.uk/research/srg/netos/papers/2003-xensosp.pdf}} James Harper and the Xen open-source community have started developing free software paravirtualization drivers for Windows. These provide front-end drivers for the Xen block and network devices and allow much higher disk and network performance for Windows systems running in HVM mode. Without these drivers all disk and network traffic has to be processed through QEMU-DM.{{cite web |url=https://wiki.xen.org/wiki/Xen_Windows_GplPv |title=Xen Windows GplPv |access-date=June 26, 2019}} Subsequently, Citrix has released under a BSD license (and continues to maintain) PV drivers for Windows.{{cite web |url=https://www.slideshare.net/xen_com_mgr/xpdds18-windows-pv-drivers-project-status-and-updates-paul-durrant-citrix-systems |title=XPDDS18: Windows PV Drivers Project: Status and Updates - Paul Durrant, Citrix Systems |date=June 29, 2018 |access-date=June 26, 2019}}

Management

Third-party developers have built a number of tools (known as Xen Management Consoles) to facilitate the common tasks of administering a Xen host, such as configuring, starting, monitoring and stopping of Xen guests. Examples include:

  • The OpenNebula cloud management toolkit
  • On openSUSE YaST and virt-man offer graphical VM management
  • OpenStack natively supports Xen as a Hypervisor/Compute target
  • Apache CloudStack also supports Xen as a Hypervisor
  • Novell's PlateSpin Orchestrate also manages Xen virtual machines for Xen shipping in SUSE Linux Enterprise Server.
  • [https://xen-orchestra.com Xen Orchestra] for both XCP-ng and Citrix Hypervisor platforms

Commercial versions

  • XCP-ng (Open Source, within the Linux Foundation and Xen Project, originally a fork of XenServer)
  • XenServer{{Cite web |last=Sharwood |first=Simon |title=XenServer split from Citrix, promises per-socket prices |url=https://www.theregister.com/2023/01/23/xenserver_socket_licences/ |access-date=2023-05-29 |website=www.theregister.com |language=en}} (Formerly Citrix Hypervisor {{cite web |author=Mikael Lindholm |date=Apr 25, 2019 |title=Citrix Hypervisor 8.0 is here! |url=https://www.citrix.com/blogs/2019/04/25/citrix-hypervisor-8-0-is-here/ |website=Citrix Blog |publisher=Citrix}} until 2023 and formerly Citrix XenServer until 2019)
  • Huawei FusionSphere[https://www.theregister.co.uk/2014/07/25/huawei_virtualisation_strategy/ Huawei to virtual world: Give us your desktops and no-one gets hurt]
  • Oracle VM Server for x86
  • Thinsy Corporation
  • Virtual Iron (discontinued by Oracle)
  • Crucible (hypervisor) by Star Lab Corp.[https://starlab.io/products/crucible/ Crucible - Secure Embedded Virtualization]

The Xen hypervisor is covered by the GNU General Public Licence, so all of these versions contain a core of free software with source code. However, many of them contain proprietary additions.

See also

{{Portal|Free and open-source software}}

References

{{reflist|1=30em}}

Further reading

  • Paul Venezia (April 13, 2011) [http://www.infoworld.com/d/virtualization/virtualization-shoot-out-citrix-microsoft-red-hat-and-vmware-666 Virtualization shoot-out: Citrix, Microsoft, Red Hat, and VMware. The leading server virtualization contenders tackle InfoWorld's ultimate virtualization challenge], InfoWorld