Ubuntu Linux

Step-by-Step Guide to Install XCP-ng on Your Server

Richard
Written by
Richard
Apr 21, 2021 Updated Mar 18, 2026 5 min read

This brief tutorial shows students and new users how to install the XCP-ng virtualization server and XCP-ng management client.

XCP-ng is an open-source Hypervisor based on XenServer that started as a result of massive cooperation between individuals and companies to deliver the best Hypervisor platform for free.

With XCP-ng, you can control your VMs on your bare metal servers in your environments, grow your cloud without limits, perform live migration amongst VMs without interruptions, and comes with a mighty web-based Xen Orchestra to manage your hosts.

If you want to run your cloud on your servers in your environments without unnecessary cost, you might want to look at the XCP-ng platform.

To get started with installing XCP-ng on Ubuntu, follow the steps below:

Install XCP-ng

First, grab the latest ISO image of XCP-ng from the link below.

Index of /isos/ (xcp-ng.org)

After downloading the ISO image, create a bootable USB disk or CD/DVD by running the commands below from a Linux machine.

💻Code
dd if=xcp-ng-8.2.0.iso of=/dev/sdX bs=8M oflag=direct

Or Use a Rufus to create a bootable disk on Windows machines.

After creating the bootable disk, please insert it into your host server and boot from it.

You should see a Welcome to XCP-ng screen. Press the Enter key to begin the installation wizard. For more options, press F2.

Welcome screen for the XCP-ng virtualization server installation wizard

Next, select the keymap you would like to use. The default is [qwerty] us.

Selecting the keyboard layout during XCP-ng server installation

Next, click Ok to use the setup tool to install XCP-ng on your system. To load additional drivers, press F9.

XCP-ng installation setup tool screen for server configuration

After that, accept the End User License Agreement to continue with the installation.

XCP-ng end user license agreement screen during installation

Next, select the virtual machine storage to use for storage. Our tutorial only installed a single disk, so it defaulted to that.

If you want to use EXT instead of LVM for local storage, choose that and click Ok.

Configuring virtual machine storage settings for XCP-ng server

Then select the installation source. Since we’re installing from a local USB or CD, select local media and click Ok.

Selecting the installation source for the XCP-ng hypervisor

Next, you can choose to verify the installation media or skip it. Verification makes sure that the content on the disk is not corrupted.

Verifying installation media for the XCP-ng server setup

After that, create a password for the root account. This is the administrator account that will be used to manage the server.

Setting the root password for the XCP-ng virtualization server

Next, choose how the server networking should be configured. In most cases, you may set a static IP configuration. However, in our case, we will be using automatic configuration (DHCP).

Configuring network interface settings for the XCP-ng host

We’ll also be using automatic DNS configuration. In a production environment, these would be static DNS servers.

Setting up DNS server addresses for XCP-ng network configuration

When you’re done, choose the local time zone of the server.

Selecting the time zone for the XCP-ng server installation

Then select the city the server will be stationed.

Choosing the local city for XCP-ng server time zone settings

Next, use NTP to determine the server’s local time and continue.

Configuring NTP server settings for XCP-ng system time synchronization

Because we’re using automatic IP configurations, choose the have a DHCP server automatically assigned to the NTP servers. In production environments, these will statically be entered.

Setting NTP server via DHCP for XCP-ng server configuration

Next, click Install XCP-ng to begin the installation. This will erase all data on the disk you’re installing on.

Final confirmation screen to begin XCP-ng server installation

Wait for the installation to complete.

Progress bar showing the XCP-ng server installation in progress

When prompted if you want to install any additional packs, choose No. Many have complained that this might hang the installation.

You can also install these packages after the software is installed and working.

Installing supplemental packs during the XCP-ng server setup process

After that, the installation should be complete. Remove any disk in the computer and press Enter to reboot.

Installation complete screen for the XCP-ng virtualization platform

Login with the root password created above and start configuring your environment.

Post-installation configuration screen for the XCP-ng server

That should do it.

Install XCP-ng Center

To manage the server via a graphical client, you’ll need to install it. The official graphical client for XCP-ng is Xen Orchestra, which gets support from a team of several developers.

XCP-ng Center is maintained by community members in their free time and hosted by the XCP-ng project.

Download the latest release from the link below and install it on your Windows machine.

Releases · xcp-ng/xenadmin · GitHub

Enjoy!

XCP-ng Center management console for controlling virtual machines

That should do it.

Conclusion:

  • XCP-ng is a powerful open-source virtualization platform based on XenServer, enabling efficient management of virtual machines.
  • The installation process on bare metal servers is straightforward, requiring only a few steps to get started.
  • Users have the flexibility to choose between different storage options and network configurations during installation.
  • After installation, managing your virtual environment is simplified with the use of graphical clients like Xen Orchestra and XCP-ng Center.
  • XCP-ng offers a cost-effective solution for building and managing cloud infrastructure without sacrificing features or performance.
  • Community support and ongoing development ensure that XCP-ng remains a reliable choice for virtualization needs.

Frequently Asked Questions

What is XCP-ng and why should I use it?

XCP-ng is an open-source hypervisor based on XenServer, designed for virtualization. It allows you to manage virtual machines on bare metal servers, offering features like live migration and a web-based management interface, making it a cost-effective solution for cloud environments.

How do I create a bootable USB for XCP-ng installation?

To create a bootable USB for XCP-ng, download the latest ISO image and use the 'dd' command on a Linux machine or a tool like Rufus on Windows. This will prepare the USB drive to boot the XCP-ng installation wizard.

What are the system requirements for installing XCP-ng?

XCP-ng requires a 64-bit processor with virtualization support, at least 4 GB of RAM, and sufficient disk space for your virtual machines. It's recommended to have a dedicated server for optimal performance.

Can I use DHCP for network configuration during installation?

Yes, during the installation of XCP-ng, you can choose to configure the server's networking using DHCP. This is suitable for environments where static IP addresses are not necessary, but for production, static configurations are recommended.

How do I manage my XCP-ng server after installation?

After installing XCP-ng, you can manage your server using Xen Orchestra, a web-based management tool. It provides a user-friendly interface to control your virtual machines and monitor server performance.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version