Deploy Xen Orchestra devices on Xen/XCP-ng via CLI

You can download this article in PDF format via the link below to support us.
Download the guide in PDF formatshut down

In our recent article, we captured the installation steps of Xen Orchestra (XO) on an Ubuntu/Debian server by building a package from source code. XO is software built using a server and a client (such as the web client xo-web) and a client with CLI functions (called xo-cli). There is another installation method that involves deployment using Xen Orchestra Virtual Appliance (XOA). This is the installation that will be performed in this guide.

XOA is a virtual machine with Xen Orchestra installed, so it can be used immediately. The only dependency is that the running Xen/XCP-ng hypervisor host has a network and storage configuration. A bash script will be executed on the hypervisor shell, which will download the VM device and create a new virtual machine from it.

Import XOA XCP-ng server on XenServer

Start a new SSH session to the XenServer host, and then run the following command.

[18:18 xcp-node-01 ~]# bash -c "$(curl -sS https://xoa.io/deploy)"

If you are using a DHCP server on the default network, please agree to continue the installation:

Welcome to the XOA auto-deploy script!

Network settings:
IP address? [dhcp]

For static IP addresses, please provide all necessary IP-related information, such as netmask, gateway, and DNS server.

Using the DHCP option, the VM should then begin to import:

Your XOA will be started using DHCP

Importing XOA VM...

Booting XOA VM...
Waiting for your XOA to be ready…

Your XOA is ready on https://192.168.20.24/

Default UI credentials: [email protected]/admin
Default console credentials: xoa/xoa

VM UUID: 84f59294-a20c-3658-db12-6ed7152c6e08

If you visit the Xen cluster, you should see that the VM import is in progress.Install Xen Orchestra on Xen XCP ng from XOA 01

When it’s done, it’s called “XOA“Should be visible. You can access the shell using the IP address assigned to the instance.Install Xen Orchestra on Xen XCP ng from XOA 02

During XOA import, the default login information has been printed out

Your XOA is ready on https://192.168.20.24/

Default UI credentials: [email protected]/admin
Default console credentials: xoa/xoa

Use the given username and password to log in to the XO Web console.Install Xen Orchestra Ubuntu Debian 01

navigation”Set value“>”User number“Partially update the administrator password to improve security.Install Xen Orchestra Ubuntu Debian 02

Select the admin user and click “editThe “” under the “Password” section can update the user’s password.

Install Xen Orchestra Ubuntu Debian 03

Access the device through the shell:

$ ssh [email protected]
Linux xoa 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64
 __   __             ____           _               _
   / /            / __          | |             | |
   V / ___ _ __   | |  | |_ __ ___| |__   ___  ___| |_ _ __ __ _
   > < / _  '_   | |  | | '__/ __| '_  / _ / __| __| '__/ _` |
  / .   __/ | | | | |__| | | | (__| | | |  __/__  |_| | | (_| |
 /_/ ____|_| |_|  ____/|_|  ___|_| |_|___||___/__|_|  __,_|

Welcome to XOA Unified Edition, with Pro Support.

* Restart XO: sudo systemctl restart xo-server.service
* Display status: sudo systemctl status xo-server.service
* Display logs: sudo journalctl -u xo-server.service
* Register your XOA: sudo xoa-updater --register
* Update your XOA: sudo xoa-updater --upgrade

OFFICIAL XOA DOCUMENTATION HERE: https://xen-orchestra.com/docs/xoa.html

Support available at https://xen-orchestra.com/#!/member/support

In case of issues, use `xoa check` for a quick health check.

Build number: 21.01.02

Based on Debian GNU/Linux 10 (Stable) 64bits in PVHVM mode

The service xo-server should be running:

$ systemctl status xo-server.service
● xo-server.service - XO Server
   Loaded: loaded (/etc/systemd/system/xo-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-04-20 11:25:13 EDT; 19h ago
 Main PID: 504 (node)
    Tasks: 18 (limit: 2331)
   Memory: 144.9M
   CGroup: /system.slice/xo-server.service
           ├─ 504 node /usr/local/bin/xo-server
           └─2285 /usr/local/bin/node /usr/local/lib/node_modules/xo-server/node_modules/jest-worker/build/workers/processChild.js

Check and update if there is an update available. But registration is required to update.

sudo xoa-updater --register
sudo xoa-updater --upgrade

Add XenServer | XCP-ng server

By going to “Add Xen | XCP-ng Server”Home“>”Add serverInstall Xen Orchestra Ubuntu Debian 04

Enter the server label, IP address, username and password used to log in.Install Xen Orchestra Ubuntu Debian 05

Confirm that the connection is successful. The status should automatically change to “activatedInstall Xen Orchestra Ubuntu Debian 06

You can get the Xen cluster details-pool, host, VM and used capacity from the console.Install Xen Orchestra Ubuntu Debian 07

Similar articles on the Xen virtualization platform.

Install Xen Orchestra on Ubuntu | Debian to manage Xen/XCP-ng

Add and use ISO library repository in Xen XCP-ng

Use XenCenter to manage the XCP-ng hypervisor | XCP-ng中心

You can download this article in PDF format via the link below to support us.
Download the guide in PDF formatshut down

Sidebar