XCP-NG in VMware nested virtualization


As many of you may already know from reading my previous blog posts, I really like playing around with hypervisors and different technologies. The nested virtualization capabilities in VMware vSphere provide a great way to do this without the need for physical hardware laying around to install a hypervisor. I have had a hankering to play around with XCP-NG hypervisor in the lab environment and finally got around to doing this recently. Let’s take a look at XCP-NG in VMware nested virtualization.

What is XCP-NG?

First of all, what is XCP-NG? XCP-NG is a virtualization platform based on the Xen Project hosted in the Linux Foundation. Being based on XenServer, it is a collaboration between individuals and businesses looking to deliver an open-source virtualization project that can meet the challenges of the enterprise today.

Its features include the following:

  • Modern UI – It offers a modern UI for management called Xen Orchestra. There is also a Windows-based management tool called XCP-NG center that allows managing your XCP-NG hosts, etc.
  • Live migration – This is probably what drew most of us to virtualization and got us hooked to begin with – live migration. XCP-NG offers the ability to move running virtual machines between hosts.
  • Scalability – You can grow and scale your infrastructure as needed. Simply add a host to your XCP-NG environment
  • Security – With XCP-NG, you can run your own private data center without the concerns of shared public cloud infrastructure.

You can learn more about XCP-NG and download the ISO installation from here:

XCP-NG in VMware nested virtualization

Let’s take a look at installing XCP-NG in VMware and see how you can do this with VMware nested virtualization, installing the XCP-NG hypervisor in your VMware vSphere environment is as simple as creating a new VMWare vSphere VM, enabling the CPU settings for nested virtualization and installing XCP-NG. Let’s see what that looks like.

Enable nested virtualization for your XCP NG virtual machine
Enable nested virtualization for your XCP NG virtual machine

Select the locality for the keyboard layout.

Choose the country for keyboard mapping
Choose the country for keyboard mapping

Press the OK button to move forward with the installation of XCP-NG.

Beginning the setup wizard
Beginning the setup wizard

Accept the EULA to move on with installation configuration.Accept the EULA for XCP NG installationAccept the EULA for XCP NG installation

Select the local disk you want to install XCP-NG on and the provisioning method.

Choose the disk on which to install XCP NG
Choose the disk on which to install XCP NG

Select the media from which you want to install XCP-NG.

Select your installation source for your XCP NG install
Select your installation source for your XCP NG install

You can choose to verify your media. Here I am skipping that step to save time. The media I am using is an ISO uploaded to the VMware vSphere datastore and selected in the virtual machine properties in the vSphere client.

Choose media verification option
Choose media verification option

Set an administrator password for the root account.

Set your admin password for XCP NG
Set your admin password for XCP NG

Choose your networking settings. You can set a static address or use DHCP. Also, you can choose the VLAN for the administrative interface also.

Configure networking for your XCP NG host
Configure networking for your XCP NG host

Select the geographic region for the XCP-NG server.

Choose your geographic region for XCP NG host
Choose your geographic region for XCP NG host

Set your locality for time zone purposes.

Choose your locality for time zone purposes
Choose your locality for time zone purposes

Choose how you want to configure the system time, using NTP or manually setting the time configuration.

Choose how you want to set the XCP NG host system time
Choose how you want to set the XCP NG host system time

Configure the NTP server you want to use for time configuration.

Configure your NTP servers
Configure your NTP servers

Choose the install XCP-NG button to begin the installation of XCP-NG.

Choose to install XCP NG and begin the install with configuration options chosen
Choose to install XCP NG and begin the install with configuration options chosen

The installation of XCP-NG begins.

Installation of XCP NG begins
Installation of XCP NG begins

Answer the question of whether you want to install any supplemental packs in your XCP-NG installation or not.

Answer question about installing supplemental packs
Answer question about installing supplemental packs

The installation completes and finalizes the settings.

XCP NG installation begins to finalize
XCP NG installation begins to finalize

Once the host reboots, you can browse to the IP of your XCP-NG server and choose the Xen Orchestra Quick Deploy option. Enter the root password for your XCP-NG server.

Beginning the installation of Xen Orchestra
Beginning the installation of Xen Orchestra

Choose the storage and networking options for the deployed Xen Orchestra Server.

Xen Orchestra VM quick deploy storage and networking options
Xen Orchestra VM quick deploy storage and networking options

Set up the admin account for XOA, register the account, and set the machine password. If you choose not to register your Xen Orchestra server, note you will not be able to pull down updates for it. However, this process is free and just requires you complete the registration process. Click Deploy.

Set the admin account register Xen Orchestra and set the XOA machine account
Set the admin account register Xen Orchestra and set the XOA machine account

After the XOA VM finishes deploying, browse to the IP you configured in the quick deploy process. Login with the admin password you configured.

Login to Xen Orchestra using the configured password
Login to Xen Orchestra using the configured password

If you browse to the VMs section, you should see your XOA VM running in your Xen Orchestra inventory.

Viewing running virtual machines using Xen Orchestra
Viewing running virtual machines using Xen Orchestra

XCP-NG FAQs

  • What is XCP-NG? XCP-NG is an open-source hypervisor that allows easily spinning up workloads using the solution with a nice UI, live migration capabilities, and other features. It is free to download, along with the management platform – Xen Orchestra.
  • What is Xen Orchestra? Xen Orchestra is a free, open-source management platform for your XCP-NG servers. It provides many management capabilities from a modern web UI and allows configuring VMs, hosts, and even backups for your XCP-NG environment.
  • How do you install XCP-NG in VMware? As we have shown in the post, it is fairly easy. You just need to create a new VM with nested virtualization (Exposed hardware-assisted virtualization) enabled, mount the XCP-NG ISO, and begin the installation. There are several screens to configure your way through, but all-in-all, it is straightforward to get XCP-NG along with Xen Orchestra up and running.

Final Notes

Coming from VMware vSphere with vCenter Server, it is amazing how powerful vSphere is when compared to open-source solutions. However, many of these solutions are powerful in their own right, due to their open-source nature, full features, and the ability to quickly stand up a hypervisor to start running workloads. XCP-NG and Xen Orchestra are compelling solutions that can certainly be used in many use cases. As shown, you can easily get up and running with XCP-NG in VMware environments for labbing purposes and familiarizing yourself with other solutions out there.

Post a Comment

0 Comments