Installing Xen Orchestra (XOA) from Source
This is how you install Xen Orchestra (XOA); a standalone virtual machine.
Xen Orchestra is how you manage your environment with XCP-NG; a Virtualization Software to create virtual machines on a bare metal install (Type 1 hypervisor)
Xen Orchestra installed from the XCP-NG server wont have all the tools installed from the initial virtual machine provided by XC-PNG unless you pay for the service.
With Xen Orchestra from source, you may not get support from Xen Orchestra at all, but you will receive almost all of the tools for free to use for your environment.
Requirements
XCP-NG server installed
https://xcp-ng.org/
Can go one of two routes
Install XCPNG, deploy Xen Orchestra from within XCPNG
Guide - https://www.stephendick.tech/xcpng/how-to-install-xcp-ng
Install a distro of your choice on a type 2 virtualization software (VMware or Virtualbox), install a Debian based distro (Ubuntu or Debian)
Servers/Virtual machines
Ubuntu server 22.04 - https://ubuntu.com/download/server
Debian 11 - https://www.debian.org/download
Type 2 virtualization software for Linux and Windows
Virtualbox - https://www.virtualbox.org/wiki/Downloads
VMWare workstation Fusion Player - https://customerconnect.vmware.com/en/evalcenter?p=fusion-player-personal-13
Github link script to install Xen Orchestra from source (This will be using an HTTP and no certificates for HTTPS)
Considering the above, in my example I will be completing this installation guide on an Ubuntu server 22.04 minimal install on my XCP-NG Server from an initial Xen Orchestra install.
Navigate to the Xen Orchestra machine at the following IP address
IP – 192.168.80.25
Select the Home section > Choose New VM
Configure the Virtual Machine with the following configuration
1. Pool – aaa-004
2. Template – Other install media
3. Name - XOA from source
4. Description - XOA from source
5. vCPUs -2
6. RAM – 4 GiB
7. Topology – 1 socket with 2 cores per socket
8. ISO/DVD – Ubuntu 22.04 minimal server
9. Network – Management Interface (Due to managing virtual machines)
10. Storage Repository (SR) – Local Storage
11. Name - XOA from source
12. Description - XOA from source
13. Size - 50 GiB
14. Select Show advanced settings > Auto power on – Checked the box
Select Try or install Ubuntu Server
Select the language English
Update the server to the new installer
Select the following keyboard layout
Keyboard Layout – English (US)
Keyboard Variant – English (US)
Choose the two types of installation for Ubuntu Server
Ubuntu Server
Search for third-party drivers
In the network connections section, choose the drop down eth0 > Edit IPv4
Select the IPv4 Method drop down then choose Manual
Configure the interface as follows
1. Subnet – 192.168.80.0/24
2. Address – 192.168.80.210
3. Gateway – 192.168.80.254
4. Name servers – 8.8.8.8,9.9.9.9
5. Search domains - None
Confirm the configuration and select Done
Configure the proxy or leave as blank for defaults
Ensure the Mirror image passes the test and then select Done
Select the Use an entire disk and disable the LVM group (in my case)
Confirm the storage configuration
Confirm the installation of the virtual machine
Configure the following for the profile for the server and your user account to manage the machine
1. Your name – Stephen Dick
2. Your server’s name – xoa-from-source
3. Pick a username – sdick
4. Choose a password – Type your initial strong password
5. Confirm your password – Retype your password
Skip the upgrade to Ubuntu Pro
Install an OpenSSH server and import your keys if applicable
Install the third party drivers and continue if prompted
Leave the snap packages as default
Installing Ubuntu Serer 22.04 minimal begins, wait until updates and installation is finished and restart when prompted
Reboot the server
Sign into the virtual machine and clone the github repository at the link below
Link - https://github.com/ronivay/XenOrchestraInstallerUpdater
Command – git clone https://github.com/ronivay/XenOrchestraInstallerUpdater
Change to the Xen Orchestra Installer directory
Command – cd XenOrchestraInstallerUpdater/
Copy the file sample.xo-install.cfg with the following command below
Format – cp <inital file name and extension to copy> <new file name and extension copied to>
Command – cp sample.xo.install.cfg xo-installer.cfg
Modify the xo-install config file with the following command (vim is my text editor of choice)
Command – vim xo-install.cfg
Ensure the following in the config is set or set more settings per your configuration layout on your own
The plugins are set to all and can configure anything to your needs. Then save the configuration
Begin the install of the installation script with the following command with super user permissions
Command – sudo ./xo-install.sh
When prompted with the installation script prompt, select 1 to begin the install process
This will begin the install process and update services and install any missing packages/services in case the script requires it
Sign into the Xen Orchestra virtual machine with the default username and password
Username – admin@admin.net
Password - admin
Navigate to Settings > Users
At the top, create a new user with the username of your choice and a strong password, in this example it’s just the following
Permissions – Admin
Username – sdick
Password – password
Sign out of the current account
Sign into the new user you created
Go to Settings > Users
Select the trash can icon for the default admin user account and when prompted, select yes to confirm deletion of the default user account
Congratulations, you have created a virtual machine on an existing Xen Orchestra virtual machine from the default XCP-NG installation!