Xen 4.1 Release Notes

= Xen 4.1 release notes =
Xen 4.1.0 release announcement:
* Xen hypervisor 4.1.0 was released on 25th March 2011.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.0 release announcement
* Download url: http://xen.org/download/index_4.1.0.html
Xen 4.1.1 release announcement:
* Xen hypervisor 4.1.1 was released on 15 Jun 2011.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.1 release announcement
* Download url: http://xen.org/products/xen_source.html
Xen 4.1.2 release announcement:
* Xen hypervisor 4.1.2 was released on 21 Oct 2011.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.2 release announcement
* Download url: http://xen.org/products/xen_source.html
Xen 4.1.3 release announcement:
* Xen hypervisor 4.1.3 was released on 10 Aug 2012.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.3 release announcement
* Download url: http://xen.org/download/index_4.1.3.html
Xen 4.1.4 release announcement:
* Xen hypervisor 4.1.4 was released on 18 Dec 2012.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.4 release announcement
* Download url: http://xen.org/download/index_4.1.4.html
Xen 4.1.5 release announcement:
* Xen hypervisor 4.1.5 was released on 25 Apr 2013.
* Official release announcement email from xen-devel mailinglist: mailing list announcement
* blog.xen.org Xen 4.1.5 release announcement
* Download url: http://www.xenproject.org/downloads/xen-archives/supported-xen-41-series/xen-415.html
For a full list of available Xen hypervisor downloads see: http://xen.org/products/xen_archives.html .
== Overview of Xen 4.1 ==
Xen 4.1 is the core hypervisor with basic command line management tools. You can use it with your favourite Linux distribution to build your own custom, secure, high performance virtualization solution. Some users add additional third party management tools and interfaces to create their own virtualization platform. More information about the available external 3rd party management tools and (web) interfaces in the XenManagementTools wiki page.
If you're looking for an easy to start with "appliance" type version of Xen, shipped as ISO-image, take a look at Xen Cloud Platform (XCP): http://www.xen.org/products/cloudxen.html . XCP is integrated, well tested, ready made and dedicated open source virtualization platform offering remote management APIs (not a generic Linux distribution).
== Xen 4.1 new features ==
See Xen4.0 wiki page for features in previous Xen4.0 release. 
Changes since Xen 4.0:
* A re-architected and improved XL toolstack that is functionally nearly equivalent to XM/XEND.
* Prototype credit2 scheduler designed for latency-sensitive workloads and very large systems.
* CPU Pools for advanced partitioning.
* Support for large systems (>255 processors and 1GB/2MB super page support).
* Support for x86 Advanced Vector eXtension (AVX).
* New Memory Access API enabling integration of 3rd party security solutions into Xen virtualized environments.
* Optimizations for Linux HVM guest IRQ delivery when running PV-on-HVM drivers.
* Fixes to xenpaging and memory sharing, but they are still considered as 'Tech Previews'.
* Tmem fixes, but still disabled as a default (enable with hypervisor cmdline option).
* Remus FT (Fault Tolerance) fixes.
* Documentation additions (vbd-interface.txt, vbd numbering and naming, xl disk configuration syntax, etc).
* Fixes to properly support jumbo frames (mtu 9000) with vif-bridge script.
* Many IOMMU fixes (both Intel VT-d IOMMU and AMD IOMMU).
* Many toolstack and buildsystem fixes for Linux and NetBSD hosts.
* Thirdparty libs: libvirt driver for libxl has been merged to upstream libvirt.
* HVM guest PXE boot enhancements, replacing gPXE with iPXE.
* Interrupt (IRQ) delivery fixes, fixing keyboard/mouse on some laptops.
* Xentrace and xenoprofile fixes for analysing the hypervisor and VMs.
* Userspace qemu-based block device backend driver to use when dom0 kernel does not have kernel based xen-blkback driver available (upstream Linux 3.0 was the first version to include kernel xen-blkback driver, so if using older dom0 kernels you'll benefit from the userspace qemu blockback driver).
* Even better stability through our new automated regression tests.
See for more information about some of the new feature highlights in Xen 4.1.
For full list of changes see the mercurial history/log at: http://xenbits.xen.org/xen-4.1-testing.hg .
== Requirements for compiling Xen 4.1 from source ==
All the requirements and instructions for building Xen 4.0 also apply to Xen 4.1, so please check the Xen4.0 wiki page for more information about required packages/dependencies, installation instructions etc.
Additional requirements in Xen 4.1, on top of those for Xen 4.0:
* If you have ocaml installed, you also need to install ocaml-findlib, otherwise building Xen 4.1 fails.
== Known issues in Xen 4.1 ==
* PVGRUB (based on MiniOS) seems broken for 32bit PV domUs, but works OK for 64bit PV domUs. This is a regression, since PVGRUB works in Xen 4.0.x for both 32b and 64b.
* Xen 4.1.1 if compiled with gcc 4.6 (Ubuntu 11.10+, Debian testing/unstable, Fedora 15+) has an issue where xen hvmloader is known to miscompile and thus crash on start when trying to run Xen HVM guests. This bug has been fixed in xen-4.1-testing.hg repository and thus the fix is included in Xen 4.1.2 and later releases. See this email for more info about the bugfix patches: http://lists.xensource.com/archives/html/xen-devel/2011-07/msg00922.html
* Xen 4.1.1 has a bug where the emulated CDROM/DVD drive in an HVM guest fails to work properly. This bug has been fixed in Xen 4.1.2 and later versions. The symptoms of this bug are lost interrupts and frozen ata commands in the kernel dmesg log. See this email thread for more information: http://old-list-archives.xen.org/archives/html/xen-devel/2011-10/msg02147.html .
* Xen 4.1.2 has a bug where the emulated virtual Realtek RTL8139 NIC fails to work properly in an HVM guest. This bug has been fixed in xen-4.1-testing.hg and thus the fix will be part of Xen 4.1.3 release. Some Linux distros, Fedora 16 for example, already ship packages with the fix backported. The symptoms of this bug are "transmit queue 0 timed out" errors in the kernel dmesg and the network freezing. The current workaround is to use Intel e1000 emulation instead, or apply the bugfix patch from xen-4.1-testing.hg. See this email thread for more information: http://old-list-archives.xen.org/archives/html/xen-devel/2011-10/msg02149.html .
* Pygrub support for Fedora 16 PV domUs using GRUB2 and/or GPT partitions is included in xen-4.1-testing.hg (and xen-unstable) so pygrub in upcoming Xen 4.1.3 and 4.2.0 releases will support F16 PV domUs out-of-the-box. Some distros, Fedora 16 for example, already include backported pygrub support for F16 in their current Xen 4.1.2 packages. 
== Toolstacks ==
Xen 4.1 still includes the old xm/xend toolstack, but xl/libxl toolstack is considered the new primary toolstack. All new development should be done against xl/libxl. The old xm/xend toolstack will probably get removed during upcoming Xen 4.2 development phase.
XL / libxl toolstack is the new lightweight Xen management toolstack written in C, which makes it fast and compact. The old xm/xend toolstack was written in Python. Libxl provides all the common lowlevel functionality so that libxl can be shared by all the higher level toolstacks, such as XCP XAPI and libvirt, avoiding code duplication, making Xen hypervisor management more robust and integration to other programming languages easier.
Presentation about libxl (libxenlight) from Xen Summit 2010 North America: http://www.slideshare.net/xen_com_mgr/xen-summit-amd2010v3 .
== Migrating from xm/xend toolstack to xl/libxl ==
Please check the MigrationGuideToXen4.1+ wiki page for instructions how to migrate from xm/xend to xl/libxl toolstack.
== Features in xl/libxl ==
Xen 4.1 xl/libxl toolstack has most of the features of xm/xend. xl is supposed to be a drop in replacement for xm. The command line syntax and domain configuration file syntax of xl is the same as xm has.
List of missing features from xl/libxl in Xen 4.1:
* PVUSB (for more info see PVUSB sections of: XenUSBPassthrough)
* PVSCSI (for more info see: XenPVSCSI)
* Remus FT (Fault Tolerance)
* VGA graphics card passthru
* NUMA-aware memory allocation for VMs. xl in Xen 4.1 will allocate equal amount of memory from every NUMA node for the VM. xm/xend allocates all the memory from the same NUMA node.
== Xen 4.1 and dom0 network configuration ==
In Xen 4.1 with xl/libxl toolstack you need to set up the networking bridges manually by using the networking scripts provided by your dom0 distribution. Even if still using the old xm/xend toolstack the usage of Xen "network-bridge" network-script is NOT recommended because it's known to be problematic on many systems and especially on more custom setups, for example with IPv6. It has been the best practice for a long time already to use the Linux distribution default networking scripts and/or configuration files to set up the Xen dom0 (host) networking and bridges for Xen.
See HostConfiguration/Networking wiki page for more information how to set up the dom0 networking/bridges in most commonly used Linux distributions. It's also good to read XenBestPractices wiki page.
== Xen 4.1 init scripts on Debian/Ubuntu ==
When installing Xen from source (.tar.gz) on Debian/Ubuntu, this is how you can enable automatic start of Xen related services on system startup:
update-rc.d xencommons defaults 19 18
update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20
update-rc.d xen-watchdog defaults 22 23
After making those changes reboot the system.
Category:Xen
Category:Release Notes
Category:Users
Category:Beginners