Skip to main content

Installing XCP-NG

Download the ISO

Head over to https://xcp-ng.org/, and choose Download to download the XCP-NG Installer ISO.

As of 2023-01-29, the latest version of XCP-NG is 8.2.1

Screenshot 2023-01-29 234902.png

Screenshot 2023-01-29 235134.png

Once the ISO is downloaded, you can burn it to a USB Flash drive using Rufus (https://rufus.ie/en_US/) or Etcher (https://www.balena.io/etcher/), or loaded onto a multi-boot tool like Ventoy (https://www.ventoy.net/en/index.html).

Screenshot 2023-01-23 230326.png

Starting the Install

Plug in the newly flashed USB, and boot into the XCP-NG Installer ISO.

Screenshot 2023-01-23 230354.png

Screenshot 2023-01-23 230410.png

Select your keyboard type.

Screenshot 2023-01-23 230508.png

Choose Ok to continue.

Screenshot 2023-01-23 230623.pngScreenshot 2023-01-23 230639.png

Accept the EULA.

Screenshot 2023-01-23 230709.png

You will be presented with a list of drives to choose from to install XCP-NG on.

Screenshot 2023-01-23 230733.png

RAID Setup - If you have more than 1 storage device

If you have more than 1 storage device, you can setup Software RAID to have redundancy for the XCP-NG OS. XCP-NG uses MDADM for the software RAID.

Tab to the Software RAID, and hit Enter.

Screenshot 2023-01-23 230758.png

Select the drives you want to be in the Software RAID, and press Space. An asterisk will appear next to the selected drives.

Screenshot 2023-01-23 230813.png

Choose Create. If the selected drives are different size, the final RAID volume will be set to the size of the smallest drive.

Screenshot 2023-01-23 230832.png

Screenshot 2023-01-23 230847.png

Once created, you will be presented with the RAID option to install XCP-NG on.

Screenshot 2023-01-23 230912.png

Choose the drive you want to install XCP-NG on, and hit Ok.

Screenshot 2023-01-23 230912.png

The entire XCP-NG OS takes up about 46GB of space. Any remaining space on the drive can be setup as another partition and be used for VMs.

Choose the same drive you have chose before, and select Ok. I recommend also choosing the use EXT option to benefit from thin provisioning.

Screenshot 2023-01-23 230952.png

Since we are installing using an USB, select Local Media and continue.

Screenshot 2023-01-23 231005.png

You can choose to Verify the installation source before proceeding to the full install, just in case.

Screenshot 2023-01-23 231034.png

Screenshot 2023-01-23 231046.png

Screenshot 2023-01-23 231055.png

Set a password for the root user account. You can always change this later by running passwd when logged in as root.

Screenshot 2023-01-23 231116.png

Select the Ethernet NIC that will be used for the management network.

Screenshot 2023-01-23 231239.png

Give your host a static IP, or leave it set to DHCP.

Screenshot 2023-01-23 231254.png

Set a hostname.

Screenshot 2023-01-23 231313.png

Select the Time Zone.

Screenshot 2023-01-23 231327.png

Screenshot 2023-01-23 231340.png

Use NTP servers so that the time can stay in sync.

Screenshot 2023-01-23 231354.png

Screenshot 2023-01-23 231406.png

Start the XCP-NG install on the machine.

Screenshot 2023-01-23 231419.png

Screenshot 2023-01-23 231431.png

Screenshot 2023-01-23 231503.png

Once the base install is finished, you will be asked if you want to install any additional Supplement Packs. Choose No to continue.

Screenshot 2023-01-23 231729.png

Screenshot 2023-01-23 231741.png

Screenshot 2023-01-23 232022.png

Host will reboot now.

Screenshot 2023-01-23 232035.png

Finished Install

When the host starts back up, you should see the following local console screen.

Screenshot 2023-01-23 234058.png

Congrats! You have finished installing XCP-NG.

Initial System Update

Right after the XCP-NG installation, you should always login to it via SSH to do an initial system update.

XCP-NG is based on CentOS, and uses the yum package manager.

Login to the XCP-NG host, and run the following:

yum update -y

Screenshot 2023-01-23 234526.png

If you set a temporary password before for the root user, you can run passwd now to change it to a permanent one.

passwd

Screenshot 2023-01-23 234331.png