XCP-ng is a turnkey open source virtualization platform based on Xen Source and Citrix® Hypervisor (formerly known as XenServer). XCP-ng stands for Xen Cloud Platform and is a tribute to the old open source project XCP, which was abandoned when XenServer was open sourced in 2013.
The XCP-ng project is the result of large-scale cooperation between individuals and companies, with the goal of delivering a powerful Type 1 hypervisor. Product components, documentation, repositories, and development processes are easily accessible and available to the public.
The functioning XCP-ng platform consists of the following infrastructure components:
- The internet
- API (Xen API)
We will install the XCP-ng virtualization platform step by step. This will be the first article, and subsequent guides will be included in a mini series for easy reference when building the final virtualization solution.
XCP-ng can only be installed on 64-bit x86 server-class computers dedicated to hosting virtual machines-Linux, Unix, Windows, etc. After XCP-ng is installed, an optimized and hardened Linux partition will be created, which contains a Xen-enabled kernel. The kernel controls the interaction between the virtual machine hardware and the actual physical hardware.
In the XCP-ng virtualization platform, the hardware supported by the computing level is:
- Up to 5 TB of RAM
- Up to 16 physical NICs
- Each host has a maximum of 288 logical processors.
Listed devices Citrix Hypervisor’s hardware compatibility list XCP-ng support.
Step 1: Download XCP-ng 8.x ISO
We will perform the installation of the XCP-ng version in the supported LTS version until 2025-06-25. You can choose from many installation options, namely:
- ISO installation
- Network installation
- PXE boot installation
- Install iPXE via HTTP
- Automatic installation
ISO installation is the most commonly used method because it can be done completely offline without the need for DHCP, PXE and web servers.
In this article, we will use the ISO installation method. But first, you need to download the latest LTS ISO image of XCP-ng from: iso release page.
At the time of writing, this is the version 8.2.0
You can also download the file directly from the URL in the browser.
Step 2: Create bootable USB or attach ISO to virtual media
If you are installing via a KVM switch or a direct server console, you can use the following command to create a bootable USB key:
dd if=xcp-ng-8.2.0.iso of=/dev/sdX bs=8M oflag=direct
On Windows, you can use Rufus Create a bootable USB memory stick.
In order to install via IPMI, you can attach the ISO to the virtual media:
Step 3: Install XCP-ng 8.2 virtualization platform
Boot the created media-USB or attached ISO to start installing the XCP-ng 8.2 virtualization platform on the physical device.
Select the keyboard key map you used in this installation.
Agree to clear the data so that the XCP-ng virtualization server can be installed.
Accept the end user license agreement to continue the installation.
Select the disk that will be used for virtual machine storage. Other configurations can be done after installation.
Select the file source for installation. Since we are performing the ISO installation method, it will be “local media”.
Verify the installation source to check the integrity of the files.
Before we continue, expect to receive a success message.
Specify the root user password-at least it must be 6 characters In length.
Select the network interface used to connect to the management server on the host.
Specify whether to use DHCP or a static IP address for the management interface. For a static network, please provide the server IP address, subnet mask and gateway IP address.
If the interface is a Trunk and a VLAN is required, please set the IP information and specify the VLAN ID:
Set the correct DNS server IP address:
Select the geographic area of the XCP-ng host
Select a city in the selected geographic area.
Select the local time configuration method. NTP takes precedence over manual time configuration.
If you choose NTP, you need to enter the NTP server details on the next screen.
After providing all the information required to install XCP-ng, you can confirm to continue.
Soon after confirmation, the installation is ready to begin.
The installation may take a few minutes, so please be patient!
select”Do not“Used for supplemental pack installation.
If your screen displays output similar to the following, the installation steps are almost complete.
This is my successful installation message. You need to detach the installation media and restart the system,
After restarting, you will see the TUI console as shown below:
You can start the command shell by clicking “Local Command Shell” in the options.
log in root Username and password set during installation
The installer creates a smaller partition for the operating system and allocates the remaining space to the virtual machine using LVM.
Before using the installed XCP-ng to manage virtual machines, please upgrade the software package of the system.
Use Confirm Upgrade ÿ key:
After a successful upgrade, reboot the host.
Step 4: Install XenCenter | XCP-ng Center (optional)
Please refer to the guide in the link below:
Use XenCenter to manage the XCP-ng hypervisor | XCP-ng中心
In this guide, we have been able to install the XCP-ng 8.2 virtualization platform on a dedicated server using the ISO downloaded from the website. In the next guide, we will delve deeper into more configuration and environment preparations before creating a virtual machine in the platform.