DRLM Installation

The pourpose of this manual is explain, step by step, the installation and configuration of DRLM. At the end of this guide you should have a fully functional DRLM server.

DRLM uses DHCP, NFS, TFTP, RSYNC, NBD and HTTPS. On the following steps, is assumed you have a minimal installation, of the selected distribution, full dedicated to run DRLM server in order to avoid interference with existing services.

Debian & Ubuntu

Supported versions

  • Debian 9 (Stretch)
  • Debian 10 (Buster)
  • Debian 11 (Bullseye)
  • Ubuntu 18.04 LTS (Bionic Breaver)
  • Ubuntu 20.04 LTS (Focal Fossa)

Build DRLM package

You can obtain the DRLM package building it from the source code.

~# apt update && apt -y upgrade
~# apt -y install git build-essential debhelper golang bash-completion
~$ git clone https://github.com/brainupdaters/drlm
~$ cd drlm
~$ make deb
~$ cd ..

Install DRLM package

The DEB package can be installed executing the next command

~# apt -y install ./drlm_2.4.0_all.deb

Debian 10 Asciinema Installation

CentOS & RHEL

Supported versions

  • CentOS 7
  • CentOS 8
  • RHEL 7
  • RHEL 8

Requirements

It is not really a requirement, but to facilitate the installation we will disable SELinux and Firewalld. Selinux and Firewalld can be properly configured to work with DRLM Server, but will not be explained at this point.

Disable selinux

Edit “/etc/sysconfig/selinux” and change the variable SELINUX value from enforcing to disable in order to disable SELinux policies on system load. Use you favourite editor.

~$ vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Disable SELinux in the current instance, to avoid a reboot.

~# setenforce 0

Disable firewalld

~# systemctl stop firewalld
~# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Install EPEL repos

  • CentOS 7 & 8:
~# yum -y install epel-release
  • RHEL7:
~# yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • RHEL8:
~# dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Build DRLM package

You can obtain the DRLM package building it from the source code

~# yum -y install git rpm-build golang make bash-completion
~$ git clone https://github.com/brainupdaters/drlm
~$ cd drlm
~$ make rpm

Install DRLM package

The RPM package can be installed executing the next command

~# yum -y install ./drlm-2.4.0-1git.el*.noarch.rpm

CentOS 8 Asciinema Installation

OpenSUSE & SLES

Supported versions

  • OpenSUSE Leap 15
  • SLES 12
  • SLES 15

Requirements

It is not really a requirement, but to facilitate the installation we will disable Firewalld. Firewalld can be properly configured to work with DRLM Server, but will not be explained at this point.

Disable firewalld

~# systemctl stop firewalld
~# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Build DRLM package

You can obtain the DRLM package building it from the source code

~# zypper install git-core rpm-build go bash-completion
~$ git clone https://github.com/brainupdaters/drlm
~$ cd drlm
~$ go env -w GO111MODULE=auto
~$ make rpm

Install DRLM package

The RPM package can be installed as follows executing the next command

~# zypper in ./drlm-2.4.0-1git.noarch.rpm

Note

You will need to accept to install the package even though it’s not signed

openSUSE Leap 15.2 Asciinema Installation

Firewalld Configuration

If you don’t want to disable Firewalld, you will need to accept connections on the following ports:

  • 69/tcp (Used for TFTP)
  • 69/udp (Used for TFTP)
  • 443/tcp (Used for DRLM API)
  • 873/tcp (Used for RSYNCD)