Xen Orchestra CE - Glowstudent777/xcpng-install-guide GitHub Wiki
Installing
Find the host ip using the XCP-ng host machine.
SSH into the host machine. The login will be root
/[password you set]
.
Install git
with yum
:
yum install git
Clone the Xen Orchestra Community Edition with this command:
git clone https://github.com/ronivay/XenOrchestraInstallerUpdater.git && cd XenOrchestraInstallerUpdater
Now run the install script:
sudo ./xo-vm-import.sh
You'll be asked what storage repository you want the VM to use:
Which storage repository should the VM use?
default will attempt to use pool default SR
1) [GUID]
2) default
Pick a number. CTRL+C to exit:
Next you'll be asked what network to use:
1) [GUID] Host internal management network
2) [GUID] Pool-wide network associated with eth0
Pick a number. CTRL+C to exit:
And finally you get to assign an IP to it:
Set network settings for VM. Leave IP-address as blank to use DHCP
IP address:
It will now start downloading and importing the VM image.
When it's done the XO Lite portal should show a new VM called xo-ce
.
On the host machine SSH run the command xsconsole
. Navigate to Virtual Machines
, All VMs
, and take note of the xo-ce
vm ip.
Now you can use the web interface or ssh into it with the ip.
The default gui login is [email protected]
/admin
.
The default ssh login is xo
/xopass
.
The vm installation folder can now be removed if you so choose:
cd ~ && sudo rm -rf XenOrchestraInstallerUpdater
Configuring
The first thing you'll want to do after installation is to link the Xen Orchestra to XO Lite.
Login to the Xen Orchestra portal and navigate to Settings > Servers
.
You'll be greeted with a form to add your host. Fill in the fields accordingly and hit Connect
, for example:
label | address[:port] | username | password | Unauthorized Certificates | Pool | HTTP proxy URL |
---|---|---|---|---|---|---|
xcp-ng | [XO Lite IP] | root | [password] | Yes | Leave Blank | Leave Blank |
If the information entered is correct the XO Lite host should show up with a green status dot and show Enabled
.
Updating
SSH into the Xen Orchestra vm.
If this is your first time updating it, run the following commands:
git clone https://github.com/ronivay/XenOrchestraInstallerUpdater.git && cd XenOrchestraInstallerUpdater
Before updating modify the config to keep using self-generated certificates.
cp sample.xo-install.cfg xo-install.cfg && sudo nano xo-install.cfg
Here are the values that need to be set:
PORT="443"
CONFIGUPDATE="true"
PATH_TO_HTTPS_CERT=$INSTALLDIR/xo.crt
PATH_TO_HTTPS_KEY=$INSTALLDIR/xo.key
AUTOCERT="true"
Finally to update Xen orchestra cd into the XenOrchestraInstallerUpdater
folder and run:
sudo ./xo-install.sh --update