Just decided to start over with XEN on a completly different box I have.

In preparation, I started to look into the package details based on information found on both the Ubuntu howto wiki for Xen installation and information found on the Xen Project website.

Based on what I read on the XenProject website, it recommends using XAPI as the toolstack of choice. XenProject Wiki - Toolstack Comparison

Now I know XCP is deprecated and no longer in use for the most part. But it doesn't appear that the XAPI toolstack has been deprecated. At least I'm not seeing any information to that effect.

And when I'm trying to find information on this, specifically to Ubuntu 14.04, I'm just finding information on using the xl toolstack.

What am I missing here? Is the XAPI toolstack now integrated into other components (hypervisor, kernel, etc)? Did the XL toolstack replace XAPI completely?

3 Answers 3


The Answer

The XAPI toolstack is not dead. It is in active development here: https://github.com/xapi-project/xen-api

However, xapi never really ran right(imo) on debian derivatives. That has been changing since xen became a linux foundation project. If you really want xapi on debian, then I'd recommend you compile the xenserver core referenced in the xen-api github readme.

There are a couple of things you need to know..

First, some terminology,

The Xen Hypervisor is the thin layer that domains (or vms, referred to as dom0 or domu) talk to when they want resources. It is now part of the linux kernel, so it no longer requires a custom kernel to run. The hypervisor does not have a shell or any easy way to mess with it directly. It is generally configured and managed from a SPECIAL vm we call dom0, on which the toolstack is installed.

The Toolstack is a set of programs used to manage all domains on a host and to generally tell the Xen Hypervisor what to do. As you know, the primary toolstacks of choice are xe(XAPI/XCP), xl(xenlight/libxl), and xm(xend).

There exist other tools that talk to the various toolstacks and provide another layer of abstraction. The most well known of these is libvirt.

Not too long ago(ok, maybe awhile ago), xen hypervisor development was taken over by the linux foundation, which opened up a lot of doors as far as development was concerned. The most important things that you need to know are:

  1. xm is going away. This limits your future-proof toolstack choices to xl(libxl) or xapi.
  2. The xapi toolstack is working towards building xapi on top of libxl.

Ok, now to the effectively useful information. The differences between libxl and xapi.

xenlight, libxl, the xl toolstack

The xl toolstack is effectively a command line tool to manage the xen hypervisor. It generally is given a vm .cfg file like the ones in the ubuntu archive (http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/xen/xm-debian.cfg) and turns them into running vms via xl create .

It doesn't manage the creation of filesystems on iscsi targets or lvm systems. It is pretty dead simple and if you are starting with xen, it is imho the best place to get started as you can get a feel for what xen is doing and why. Additionally, the config files are human readable plain text, and when something is misconfigured it's easy to figure out how.

Here are some useful xl commands:

  • xl list
  • xl console
  • xl info

xe, xapi, XCP(misnomer, XCP is now known as XenServer, which is a full distro)

The xapi toolstack makes scaling xen vm deployment trivial. There are two parts to xapi, the xe command line tool and the xapi api which is accessible via rpc via a web interface. XAPI is what XenCenter talks to and is a fundamentally different experience from the simplicity of xl. With xapi, there are tools for managing lvm partitions, snapshots, remote storage, advanced networking, performance statistics, patches, etc etc etc.

It is much much more than a hypervisor toolstack in that it manages all parts of the host system. If you want to get used to xapi, the best route is to install Citrix XenServer and manage it from XenCenter. Once you get a feel for the GUI, ssh into your XenServer and start playing with the xe command. Everything, including the uuids that are associated with vms, are tab-completable and the help documentation is fairly complete.

The End

If you have more questions you can email me at b@ethe.us



I have a tutorial in the Ubuntu Forum, which I put together by going through the woefully inadequate material which you mention above. I'm afraid that it always has been very poor around XCP/XAPI, but I did actually manage to get it to work.

I Updated my tutorial today after attempting a fresh install on 14.04 LTS (Trusty Tahr), Because it is now broken. Here's my comment:

Broken: Xen Cloud Platform (XCP) on Ubuntu Server 14.04 LTS (Trusty Tahr)

Update 28th May 2014:

I was today in the process of installing a new XCP visualisation server and found that the xcp-xapi package is missing from the repo.

A brief look at xcp-xapi 1.3.2-15ubuntu2 (amd64 binary) in ubuntu trusty and “xen-api” 1.3.2-15ubuntu2 source package in The Trusty Tahr shows:

Status: Deleted


1.3.2-15ubuntu2 DELETED: Trusty pocket Release in component universe and section admin. Removal requested on 2013-12-24. Deleted on 2013-12-24 by Matthias Klose. ocaml transition: doesn’t build

I'm guessing that this is because XCP on Debian/Ubuntu and all platforms other than CentOS is no longer supported by Citrix, XCP has deprecated and major dependencies are now broken, but I must say that this is a terrible situation. As far as I'm aware, OpenStack and some others use XCP on Ubuntu for their infrastructure and this would appear to be a cynical method of getting them to switch to XenServer/CentOS. Personally I'd like to stick with Ubuntu and also don't like the Idea of switching to an inferior Xen Toolstack. Perhaps I aught to start from scratch and learn to use KVM?

If anyone knows anything about this situation and if it is likely to be remedied please let me know, I'd really appreciate it!

I will endeavour to get xcp-xapi installed by other means and report back as soon as I am able. Don't hold your breath though...

Hopefully this might get fixed soon, but until then I'm going to see if I can find a way to get xcp-xapi installed by some other means.

If I do, I'll post the solution here.

(If this helps in any way, vote me up, I could do with the rep.) ;)

  • Did you find a way to get xapi running. I am trying to use openxenmanager and its not working so far
    – NRJ
    Feb 28, 2016 at 6:21
  • I still use XENServer all of the time for my home server needs, but I am currently disappointed by the fact that you can’t pass Nvidia graphics cards through to the VMs. I want to pass an Nvidia 970 GPU through to a Windows gaming VM and due to Nvidia's decisions around it's drivers; cannot do so (Most AMD cards - including consumer ones - just work). Beside that, the answer is no: All development into getting XEN/XAPI running on platforms other than Citrix's Centos-based XenServer platform ceased around the time of the original post: Project Chronos is dead (as far as I can tell).
    – Rich.T.
    Mar 2, 2016 at 14:29
  • Put the XenServer i ISO onto a USB stick and work from there. Also consider using XenOrchestra for your management needs.
    – Rich.T.
    Mar 2, 2016 at 14:31

See this tutorial for instructions on Installing and configuring XAPI (XenAPI)

  • 1
    This tutorial mentioned above does not work for Ubuntu 14.04 and Xen 4.4! If you install the xen-hypervisor-4.4 the XAPI seems to be installed with it. There is no xcp-xapi for Trusty (even though there are contradicting infos on the web). Have a look at /etc/xen/xend-config.sxp to setup your Xen-API server configuration.
    – jhort
    May 16, 2014 at 0:03
  • 1
    @jhort - you should publish your comment as an answer - it does look like XAPI has been integrated into the hypervisor stack
    – Andrew
    Jul 20, 2014 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.