Getting Started

This page guides you through getting Xen up and running on your hardware for the first time.

Prerequisites

Before installing Xen, check that your hardware meets these requirements:

  • A 64-bit x86 processor with hardware virtualization extensions (Intel VT-x or AMD-V). These are present on virtually all modern server and desktop processors.

  • Enough RAM for dom0 and at least one guest VM. A minimum of 4 GB is recommended; more is better.

  • A Linux distribution that supports Xen as dom0.

Getting Xen

The recommended way to install Xen is through your Linux distribution. Most major distributions include Xen packages in their repositories and handle configuration automatically.

Distributions with good Xen support include:

  • Debian and Ubuntu

  • Fedora

  • openSUSE / SLES

  • XCP-ng (a dedicated Xen-based platform)

Install the Xen hypervisor package using your distribution’s package manager. The exact package name varies by distribution, but is typically xen or xen-hypervisor.

Tip

Check your distribution’s documentation for Xen-specific setup steps. For example, Debian has an xen-system meta-package that installs everything needed.

Building from source

If you need a specific version or want to contribute to Xen development, you can build from source. See Compiling Xen From Source on the wiki for instructions.

Configuring the bootloader

After installing Xen, you need to configure your bootloader to start the Xen hypervisor instead of the Linux kernel directly. Xen then starts Linux as dom0.

On most distributions, this is handled automatically when you install the Xen package. Check that your bootloader menu includes a Xen entry, and reboot.

After rebooting, verify that Xen is running:

xl info

This should print information about the hypervisor, including the Xen version and the amount of physical memory available.

Toolstack

The toolstack is the software that manages VMs. The standard toolstack for the Xen Project hypervisor is xl, which is included in the xen-tools package.

Some distributions also support libvirt with Xen, which allows you to use tools like virsh or virt-manager.

For most users, xl is the right choice. It is simple, well-documented, and closely follows Xen’s capabilities.

Next steps

Once Xen is running with dom0 active, you can start creating guest VMs. See Managing Guests for how to create and manage guests.