Add optional flag to enable libvhdi-tools install on RHEL installs

This commit is contained in:
Ben Erickson
2025-01-27 11:44:30 -08:00
parent 66d2f2767d
commit 8e4bbcf8e4
3 changed files with 19 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ Supported Linux distributions and versions:
- Ubuntu 22.04 - Ubuntu 22.04
- Ubuntu 20.04 - Ubuntu 20.04
NOTE: RHEL based distros cannot do file level restore from backups in XO due to missing libvhdi-tools. See: https://github.com/ronivay/XenOrchestraInstallerUpdater/issues/256 NOTE: By default, libvhdi-tools is not installed on RHEL based distros; so file-level restores from delta backups within XOA will not work. However, users MAY install libvhdi-tools via a small, third-party maintained by a user of XenOrchestraInstallerUpdater specifically for XenOrchestraInstallerUpdater in order to re-enable file-level restore. To do so, set the INSTALL_EL_LIBVHDI variable to "true" in xo-install.cfg. See: https://github.com/ronivay/XenOrchestraInstallerUpdater/pull/274
Only x86_64 architecture is supported. For all those raspberry pi users out there, check [container](https://hub.docker.com/r/ronivay/xen-orchestra) instead. Only x86_64 architecture is supported. For all those raspberry pi users out there, check [container](https://hub.docker.com/r/ronivay/xen-orchestra) instead.

View File

@@ -121,6 +121,13 @@ PRESERVE="3"
# default: true # default: true
#INSTALL_REPOS="true" #INSTALL_REPOS="true"
# If set to true, this will install a small third-party copr repository necessary to install the libvhdi and libvhdi-tools rpms as-well-as the libvhdi and libvhdi-tools rpms.
# If set to false, this repository and the corresponding libvhdi and libvhdi-tools rpms will not be installed. As as result, file-level restore from delta backups within XOA will NOT work.
# This is specific to Redhat/RockyLinux/AlmaLinux installs ONLY.
# options: true/false
# default: false
#INSTALL_EL_LIBVHDI="false"
# Send xo-server logs to remote syslog # Send xo-server logs to remote syslog
# syntax is: <protocol>://<target-address>:<port> # syntax is: <protocol>://<target-address>:<port>
# supported protocols are udp and tcp # supported protocols are udp and tcp

View File

@@ -244,20 +244,17 @@ function InstallDependenciesRPM {
printok "Installing yarn" printok "Installing yarn"
fi fi
# Disabled for now due to forensics.cert.org going away # Only install libvhdi-tools if vhdimount is not present
# only install libvhdi-tools if vhdimount is not present if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
# if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then echo
# echo printprog "Installing libvhdi-tools"
# printprog "Installing libvhdi-tools" if [[ "$INSTALL_REPOS" == "true" ]] && [[ "$INSTALL_EL_LIBVHDI" == "true" ]]; then
# if [[ "$INSTALL_REPOS" == "true" ]]; then runcmd "dnf copr enable -y bnerickson/libvhdi"
# runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el${OSVERSION}.rpm" else
# runcmd "sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo" runcmd "dnf install -y libvhdi-tools"
# runcmd "dnf --enablerepo=forensics install -y libvhdi-tools" fi
# else printok "Installing libvhdi-tools"
# runcmd "dnf install -y libvhdi-tools" fi
# fi
# printok "Installing libvhdi-tools"
# fi
echo echo
printprog "Enabling and starting redis service" printprog "Enabling and starting redis service"