xenorchestra_installer/README.md

103 lines
5.5 KiB
Markdown
Raw Normal View History

2018-04-11 12:49:12 +00:00
# Xen-Orchestra (Community Edition) Installer
2018-04-10 20:59:51 +00:00
2020-07-22 13:19:19 +00:00
Xen-Orchestra (Community Edition) allows you to administer Citrix Hypervisor (aka XenServer) and XCP-ng as well as backup any VM's running on these systems. The single line installation script allows you to go from a bare-minimal installation of [Ubuntu](https://ubuntu.com/download/server) or [Debian (Server)](https://www.debian.org/distrib/netinst) to fully operational XOCE server.
2016-01-13 22:30:11 +00:00
2020-07-22 13:19:19 +00:00
## System Minimum Requirements for installation
2020-07-22 13:13:39 +00:00
* 1 vCPU
* 3 GiB RAM
* 10 GiB disk space
## System recommendations for operation
* 2 vCPU recommended
* 3 GiB of RAM (for environments containing 500+ VMs increase the amount RAM)
2020-07-22 13:19:19 +00:00
* 20 GiB disk space (for system updates)
## Assumptions
2020-07-22 13:19:19 +00:00
* We assume you have a Virtual or physical server running a currently supported Ubuntu or Debian server installation with internet connectivity
* You've read this community and understand what installation entails and does on your soon to be XOCE server
## Installation
Run the following steps from a root shell on your **Ubuntu or Debian** host.
curl https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/master/xo_install.sh | sudo bash
<password>
2018-03-30 18:36:18 +00:00
The default username and password are applied, admin@admin.net and admin for the password
2018-04-17 12:13:19 +00:00
If you don't want NFS capabilities run ```sudo apt-get remove nfs-common```.
2018-04-10 13:14:49 +00:00
2018-04-10 21:04:10 +00:00
* Do not use LAMP
2018-04-17 12:14:45 +00:00
* SSH Access is optional, but highly recommended
2018-04-10 21:04:10 +00:00
# Declarations
2019-06-17 13:44:41 +00:00
This script automates the manual process which can be [found here](https://xen-orchestra.com/docs/from_the_sources.html) as well as removes a few feature restrictions that otherwise would need to be changed manually if following the manual installation process. This script is not officially supported by the Vates team, but is supported by this community.
# Prepacked installation
2020-07-26 18:32:45 +00:00
* *This is a very small installation and while it will operate, it may not meet all of your requirements, use at your own discretion*
2020-07-22 18:58:30 +00:00
To download and deploy a prepacked Ubuntu 20.04 installation of Xen Orchestra (CE) run the below from an SSH session on your XCP-NG/Citrix Hypervisor (XenServer) host(s)
2020-07-25 13:50:13 +00:00
bash -c "$(curl -s https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/master/xoce-import.sh)"
2020-07-22 18:58:30 +00:00
2020-07-24 17:56:32 +00:00
MD5 Checksum `5db537c4b6388a4323583357b6e13d20`
SHA256 Checksum `c487d63f2eef67fcaf0e9c4e4998d4a3948fdad960cb1af5a70fcb80b07c2551`
2020-07-22 18:58:30 +00:00
For verification of SHA256 checksum the XVA file can be downloaded directly and verified/imported.
2020-07-25 11:10:21 +00:00
Direct Download https://srv-file8.gofile.io/download/CYaI0l/XOCE.xva
2020-07-22 18:58:30 +00:00
2020-07-24 17:19:44 +00:00
To login to the console use:
2020-07-24 17:20:08 +00:00
Username: **XOCE**
2020-07-24 17:19:44 +00:00
Password: **XOCE**
2020-07-24 17:17:52 +00:00
2020-07-25 11:10:21 +00:00
**Change the password if you are using this in production**
2020-07-24 16:04:19 +00:00
# Self-signed SSL
2020-07-25 11:10:21 +00:00
If you are running this internally and need SSL (recommended) follow the below steps to create a self-signed SSL key and certificate; while browsers will still say the connection is unsecured, this is because the certificate isn't from a public authority and is on your LAN. You can add this cert to your systems root authority if it want to to remove the warning. Alternatively a reverse proxy can be used for public facing installations.
2020-07-24 16:04:19 +00:00
## Generate your key and cert from your XOCE installation
2020-07-24 16:04:19 +00:00
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/ssl/private/key.pem -out /etc/ssl/certs/certificate.pem
Now edit the xo-server.toml file
vi /opt/xen-orchestra/packages/xo-server/.xo-server.toml
2020-07-24 16:08:01 +00:00
Comment-out or edit the port from 80 to 443 and add the cert and key to the appropriate locations within this file.
2020-07-24 16:04:19 +00:00
port = 443
cert = '/etc/ssl/certs/certificate.pem'
key = '/etc/ssl/private/key.pem'
Restart xo-server.service
systemctl restart xo-server.service
Reload your XOCE website using SSL (https://your-host-ip)
2019-05-02 10:38:52 +00:00
# Problems?
2019-05-02 12:45:37 +00:00
Check out our [Troubleshooting Page](https://github.com/Jarli01/xenorchestra_installer/blob/master/TROUBLESHOOTING.md)!
2018-04-11 12:49:12 +00:00
# Goals/Backstory for this script
2018-04-17 12:11:54 +00:00
I'm often asked "why can't this be run on CentOS or Fedora" to which my only reply is and has ever been: The goal was to be the XCP-ng of XS. Which means I wanted a solution that offered as much as XOA offers, while using what is available freely and from open sources. Without restrictions.
2018-04-11 12:49:12 +00:00
That isn't to say that this installation script won't work on other distributions, please contribute and help us to spread XOCE to other platforms.
2020-04-03 17:41:13 +00:00
Initially my goal was to simply setup and start using XOCE for a tiny production shop to be able to use an open source hypervisor (Citrix XenServer at the time) and have a management tool/backup solution. Which was initially [NAUBackup](https://github.com/NAUbackup/VmBackup) and XenCenter, when I found XOA and that there was an open source management solution and backup solution that wasn't script based I jumped for it, taking the manual installation process provided by Olivier and his team and automating it.
2018-04-11 12:49:12 +00:00
2018-04-11 13:13:34 +00:00
That goal transformed into the desire to assist the developers of XOA by using and hopefully finding any bugs or quirks that needed to be worked out while staying in line with the original goal of being as nearly compatibile as possible to XOA.
2018-04-11 12:49:12 +00:00
2018-04-17 12:09:55 +00:00
While the goal initially was to have a solution as close to XOA as possible, with the script came the ability and goal to automate the installation. This is a big deal for these scripts today, while providing an as near-match solution to XOA as possible.
2018-09-13 20:55:43 +00:00
To keep XOCE up to date I recommend that anyone who's used this installation script or the sources installation to use this: https://github.com/Jarli01/xenorchestra_updater