diff --git a/README.md b/README.md index a4e7fc8..d64b73f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # In a nutshell -This repo consist of script to install and update [Xen Orchestra](https://xen-orchestra.com/#!/) for CentOS 7/Ubuntu 18/Debian 10 +This repo consist of script to install and update [Xen Orchestra](https://xen-orchestra.com/#!/) for CentOS 8/Ubuntu 18/Debian 10 Installation is done using latest xo-server and xo-web sources by default. With this method Xen-Orchestra has all features unlocked which are normally available only with monthly fee. @@ -62,17 +62,18 @@ notes: Tool has been tested to work with following distros: -- CentOS 7 (note LVM file level restore issue from below) +- CentOS 8 (note LVM file level restore issue from below) - Debian 10 - Ubuntu 18.04 Installation works but not tested frequently: +- CentOS 7 - Debian 8 - Debian 9 - Ubuntu 16.04 In order to use file level restore from delta backups, the service needs to be ran as root. -CentOS installation is currently not able to do file level restore if the backed up disk contains LVM. +CentOS installation is currently not able to do file level restore if the backed up disk contains LVM or only sees some of the partitions. CentOS setup is confirmed to work with fresh minimal installation and SELinux enabled. Although script doesn't do any SELinux checks or modifications, so you need to take care of possible changes by yourself according to your system. diff --git a/tests/CentOS/Vagrantfile b/tests/CentOS/Vagrantfile index e1bead9..ca13a93 100644 --- a/tests/CentOS/Vagrantfile +++ b/tests/CentOS/Vagrantfile @@ -12,7 +12,7 @@ Vagrant.configure(2) do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "centos/7" + config.vm.box = "centos/8" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs diff --git a/xo-install.sh b/xo-install.sh index f004f9d..8cd5463 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -107,7 +107,12 @@ function InstallDependenciesCentOS { if [[ -z $(which vhdimount) ]]; then echo echo -ne "${PROGRESS} Installing libvhdi-tools from forensics repository" - rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el7.rpm >/dev/null + if [[ $OSVERSION == "7" ]]; then + rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el7.rpm >/dev/null + fi + if [[ $OSVERSION == "8" ]]; then + rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el8.rpm >/dev/null + fi sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo yum --enablerepo=forensics install -y libvhdi-tools >/dev/null echo -e "\r${OK} Installing libvhdi-tools from forensics repository" @@ -116,7 +121,12 @@ function InstallDependenciesCentOS { # install echo echo -ne "${PROGRESS} Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils" - yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python git nfs-utils cifs-utils >/dev/null + if [[ $OSVERSION == "7" ]]; then + yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python git nfs-utils cifs-utils lvm2 >/dev/null + fi + if [[ $OSVERSION == "8" ]]; then + yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python3 git nfs-utils cifs-utils lvm2 >/dev/null + fi echo -e "\r${OK} Installing build dependencies, redis server, python, git, nfs-utils, cifs-utils" echo @@ -622,8 +632,8 @@ function CheckOS { if [ -f /etc/centos-release ] ; then OSVERSION=$(grep -Eo "[0-9]" /etc/centos-release | head -1) OSNAME="CentOS" - if [[ ! $OSVERSION == "7" ]]; then - echo -e "${FAIL} Only CentOS 7 supported" + if [[ ! $OSVERSION =~ ^(7|8) ]]; then + echo -e "${FAIL} Only CentOS 7/8 supported" exit 0 fi elif [[ -f /etc/os-release ]]; then