XCP NG and Xen Orchestra¶
In order to install Xen Orchestra, a VM need to be created in XO Lite.
Creating the VM¶
- After XCP-NG is installed, navigate to the IP address of the host (XO Lite) from a web browser.
- Login as root user created during installation of node
- Create a VM, and boot into PXE
- From netboot, select a Linux distro to install.
- After installation is completed, shutdown the VM.
- Login to XCP NG with root user via SSH
- Get the UUID of the VM
- Change the boot order to boot from disk first, then network:
- Go back to XO Lite and start the VM. The VM should now boot from disk
- Set static IP address of the VM from the VM console.
Installation of Xen Orchestra¶
- SSH to the create VM and clone XenOrchestraInstallerScript
- Change directory to the cloned folder
- Copy the sample config file
- Not much configuration need to be done, but the wiki show more information on the configuration parameters available.
- Run the install script
- Select
Installand wait for the installation to complete. - Once installation is completed, navigate to the IP address set in step 10 [[#Creating the VM]] from a web browser
Tips and configuration¶
Increase API token max validity period¶
- SSH to Xen Orchestra VM as user and change user to root.
- Change directory to user config folder
~/.config/xo-server - Create a new configuration file
- Restart xo-server service
systemctl restart xo-server
Creating cloudinit template¶
Xen Orchestra and XCP only support raw or vhd images. Thus, a “middle” VM is needed to convert to the correct format.
- Create a a VM of any Linux distro. Install qemu tools
- Download the qcow2 cloud init images into the VM.
- Convert to vhd format
- Copy this file to XCP host via scp or rsync
- Create a VM with empty disk. Click Advanced Settings, and uncheck “Boot VM after creation”.
- Make sure to disable network boot under Advanced tab after VM creation.
- In Xen Orchestra, navigate to Home > Storage > Local Storage, and click rescan all disk. Make sure the newly imported disk from step 4 is present. Rename the disk to something recognizable.
- Go to Home > VM > name of VM created in step 6.
- Go to Disk tab, and click Attach disk. Attach the disk from step 7.
- Go to Advance tab > and click convert to template.