Saturday, November 16, 2024
Google search engine
HomeGuest BlogsInstall and Configure OpenMediaVault NAS Storage Server

Install and Configure OpenMediaVault NAS Storage Server

Welcome to this guide on how to install and configure OpenMediaVault NAS Storage Server. But before we dive into the nub of this tool, we need to know what this tool is all about.

What is OpenMediaVault?

This can be defined as a Debian-based next-generation network-attached storage (NAS) solution. It offers several services including; SMB/CIFS, SSH, FTP, Rsync, DAAP media server, BitTorrent client e.t.c. Furthermore, its modular design allows its functionality to be enhanced using plugins. OpenMediaVault is designed to be primarily used in homes and small offices. It is simple to use and one can install and use the NAS without the deeper knowledge required.

Features of OpenMediaVault NAS Storage Server

The OpenMediaVault NAS Storage Server has several amazing features, among them are:

  • The core features are:
    • Based on Debian Linux
    • User management
    • It offers a web-based administration
    • Easy system updates via Debian package management
    • Multilanguage support
    • Service announcement via DNS-SD
    • Scheduled jobs
  • Networking – OpenMediaVault offers Link aggregation, Wake On Lan, and IPv6 support
  • Volume management – with EXT3/EXT4/XFS/JFS/BTRF filesystem support, GPT partitions, ACL, HDD power management (APM/AAM), Share management, Software RAID JBOD/0/1/5/6/
  • Monitoring – with Watchdog, Syslog, S.M.A.R.T., Email notifications, SNMP (v1/2c/3) (read-only), Proactive process, and system state monitoring.
  • Plugin Support – OpenMediaVault supports innumerable plugins such as; SNMP, LVM, Antivirus, Shairport, USB Backup, UPS, TFTP, DAAP/MPD/RSP server e.t.c
  • Services – It supports several services that include; SMB/CIFS, NFS (v3/v4), FTP, RSync, and SSH

With the provided knowledge, we are set to dive into the installation but first, ensure you meet the below specifications.

System Requirements

Before you install OpenMediaVault, ensure that your system meets the below specifications:

  • Memory: 1 GiB capacity
  • CPU: Any x86-64 or ARM-compatible processor
  • Storage:
    • System Drive – minimum 4 GiB capacity (but more than the capacity of the RAM)
    • Data Drive – capacity according to your needs

Install OpenMediaVault NAS Storage Server

This guide covers two methods on how one can install the OpenMediaVault NAS Storage Server. These methods are:

  • Installation on Debian
  • ISO installation

Method 1: Install OpenMediaVault NAS Storage Server on Debian

It is possible to install OpenMediaVault on a Debian installation. Begin by installing Debian using the Debian netinst images. Remember you do not need to install the Graphical environment, just do a minimal installation.

Now proceed and install OpenMediaVault on Debian. First import the GPG keys signing:

sudo apt update
sudo apt install --yes gnupg
sudo wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key
sudo apt-key add "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc"

Then add the OpenMediaVault package repositories on Debian.

sudo tee /etc/apt/sources.list.d/openmediavault.list<<EOF
deb https://packages.openmediavault.org/public usul main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul main
## Uncomment the following line to add software from the proposed repository.
# deb https://packages.openmediavault.org/public usul-proposed main
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb https://packages.openmediavault.org/public usul partner
# deb https://downloads.sourceforge.net/project/openmediavault/packages usul partner
EOF

Install OpenMediaVault NAS Storage Server on Debian using the below commands:

export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
sudo apt-get update
sudo apt-get --yes --auto-remove --show-upgraded \
    --allow-downgrades --allow-change-held-packages \
    --no-install-recommends \
    --option DPkg::Options::="--force-confdef" \
    --option DPkg::Options::="--force-confold" \
    install openmediavault-keyring openmediavault

If the installation fails, install the packages below and retry:

sudo apt reinstall systemd-timesyncd
wget https://iweb.dl.sourceforge.net/project/openmediavault/packages/pool/main/p/php-pam/php-pam_2.2.3-1%2Bdeb11u1_amd64.deb
sudo dpkg -i php-pam_2.2.3-1+deb11u1_amd64.deb

The OpenMediaVault installation will proceed as below:

Install and Configure OpenMediaVault NAS Storage Server

Configure PostFix and proceed as below

Install and Configure OpenMediaVault NAS Storage Server 1

Once complete, you will see this.

Install and Configure OpenMediaVault NAS Storage Server 2

Finally, issue the below command:

sudo omv-confdbadm populate

Method 2: Install OpenMediaVault NAS Storage Server using ISO

This method requires one to download the ISO file from the official downloads page. Once downloaded, create a bootable media.

There are several methods to create bootable media for physical machine installation. These include:

You can also create a bootable USB stick using the commands below:

# Identify USB device
$ sudo lsblk

# Flash OpenMediaVault to USB drive
$ sudo dd bs=4M if=OpenMediaVault.iso of=/dev/sdX status=progress oflag=sync

In the command, replace OpenMediaVault.iso with the ISO path and /dev/sdx with the USB disk path.

OpenMediaVault can as well be installed in a Virtualized environment with Virtualbox, Xen-ng, Vmware e.t.c. Here, you need to create a VM and load the ISO file to it.

Once the VM/the machine has been powered on with the bootable media, install OpenMediaVault as below:

Install and Configure OpenMediaVault NAS Storage Server 3

Select the preferred language.

Install and Configure OpenMediaVault NAS Storage Server 4

Select your location.

Install and Configure OpenMediaVault NAS Storage Server 5

Set the locales

Install and Configure OpenMediaVault NAS Storage Server 6

Set the preferred keyboard layout.

Install and Configure OpenMediaVault NAS Storage Server 7

The installer will load packages from the media.

Install and Configure OpenMediaVault NAS Storage Server 8

Provide the hostname of the server.

Install and Configure OpenMediaVault NAS Storage Server 9

Set the domain name.

Install and Configure OpenMediaVault NAS Storage Server 10 1

Set the root password. This password is for the shell login and not for the web interface.

Install and Configure OpenMediaVault NAS Storage Server 11

Partition the disk.

Install and Configure OpenMediaVault NAS Storage Server 12

Select the disk to be partitioned.

Install and Configure OpenMediaVault NAS Storage Server 13

The installation will then start as shown below.

Install and Configure OpenMediaVault NAS Storage Server 14

Next, set where you want the package manager to fetch packages. Remember to set a location near you.

Install and Configure OpenMediaVault NAS Storage Server 15

Proceed and set the mirror server.

Install and Configure OpenMediaVault NAS Storage Server 16

If you are using an HTTP proxy to access the internet, you need to provide the details. Otherwise, proceed by hitting Enter

Install and Configure OpenMediaVault NAS Storage Server 17

Packages will be downloaded as below:

Install and Configure OpenMediaVault NAS Storage Server 18

Once complete, you need to reboot the system.

Install and Configure OpenMediaVault NAS Storage Server 19

Remember to eject the installation media to avoid booting into it again. The system will boot as below.

Install and Configure OpenMediaVault NAS Storage Server 20

Login using the created root user credentials.

Install and Configure OpenMediaVault NAS Storage Server 21

Obtain the IP address of the machine:

ifconfig

Configure OpenMediaVault NAS Storage Server

Once installed using any of the above methods, access the OpenMediaVault web interface using the URL http://IP_Address/

Install and Configure OpenMediaVault NAS Storage Server 22

Here provide the default credentials as:

User: admin
Password: openmediavault

On successful login, you will be granted the below dashboard.

Install and Configure OpenMediaVault NAS Storage Server 23

Now we need to make several configurations on the OpenMediaVault NAS Storage Server.

First, change the default admin password by navigating to General Settings ->Web Administrator Password

Install and Configure OpenMediaVault NAS Storage Server 24

Enable FTP on OpenMediaVault by navigating to Services > FTP and enable by checking the box

Install and Configure OpenMediaVault NAS Storage Server 25

Once enabled, save the made changes.

Enable SMB / CIFS just with the same procedure; Services > SMB / CIFS and enable

Install and Configure OpenMediaVault NAS Storage Server 26

You also need to save the changes made and apply them.

Create the data storage volume

With OpenMediaVault, you need a disk partition to act as a storage volume. For this guide, I have the partition as /dev/sdb.

Install and Configure OpenMediaVault NAS Storage Server 27

So I will add it under Storage > File Systems > Create

Install and Configure OpenMediaVault NAS Storage Server 28

Allow the disk to be formatted.

Install and Configure OpenMediaVault NAS Storage Server 29

Once added, the volume will appear as below. Mount the disk and apply the changes.

Install and Configure OpenMediaVault NAS Storage Server 30

Once mounted, the disk will appear as shown.

Install and Configure OpenMediaVault NAS Storage Server 31

Create a user

The created user will have rights to the shares. The user is created under Access Rights Management > User > Add

Install and Configure OpenMediaVault NAS Storage Server 32

Provide the required credentials for the user and confirm the made changes.

For the changes to take effect, apply them.

Create a file share

To be able to share/store files on the OpenMediaVault NAS Storage, we need to create a file that can be accessed by the user. Navigate to Access Rights Management> Shared Folders > Add

Install and Configure OpenMediaVault NAS Storage Server 33

Now I will set the shared folder as Downloads. This folder will be added to the data disk.

Save and apply the changes made.

Next, grant read/write permissions to the user. This is done by clicking on the added share and selecting Privileges. On the opened window, enable Read/Write for the user and save the changes.

Install and Configure OpenMediaVault NAS Storage Server 34

Finally, you need to enable services to access the share. First, enable FTP by navigating to Services > FTP > Shares. Click add and select the share.

Install and Configure OpenMediaVault NAS Storage Server 35 1

Apply the changes.

Also, enable SMB/CIFS with the same procedure used above. Navigate to Services > SMB/CIFS > Shares. Add the share and save the changes and apply them.

Install and Configure OpenMediaVault NAS Storage Server 36

Now you have your NAS device configured with the shared folder set. Proceed and access the storage with FTP or SMB/CIFS protocol.

For SMB, access it as below:

Install and Configure OpenMediaVault NAS Storage Server 37 1

Provide the created user credentials.

Install and Configure OpenMediaVault NAS Storage Server 38

Now you should be able to access the shared folder. Create a new folder/file here as shown below.

Install and Configure OpenMediaVault NAS Storage Server 39

Voila!

From the output, we can agree that the OpenMediaVault NAS Storage Server is working perfectly.

(Optional)- Secure OpenMediaVault installation with Custom SSL and Let’s Encrypt.

SSL certificates created can be used for secure connections to the web interface or the FTP server.

You can issue SSL certificates with Let’s Encrypt for your domain name or issue self-signed certificates. Create certificates under settings > Certificates > SSL. Here, you can add or import certificates. To import certificates say from Let’s Encrypt, copy the contents of the certificates and paste them here appropriately

Install and Configure OpenMediaVault NAS Storage Server 40 1

You can also generate self-signed certificates by clicking add and providing the required details.

Install and Configure OpenMediaVault NAS Storage Server 41

Once created/imported, the certificates will appear as below

Install and Configure OpenMediaVault NAS Storage Server 42

Now enable Secure Connection on the web interface by navigating to General Settings > Web administration. Now enable the SSL/TLS and you can also force the SSL connection only.

Install and Configure OpenMediaVault NAS Storage Server 43

When you save and apply changes, your connection will be lost. Proceed and access the page using HTTPS as below.

Install and Configure OpenMediaVault NAS Storage Server 44

Also, enable Secure Connection for FTP by navigating to Services > FTP > SSL/TLS and enable secure connections using the created certificates.

Install and Configure OpenMediaVault NAS Storage Server 45

Configure Samba / CIFS / NFS Shares on OpenMediaVault

After installation of OpenMediaVault server you can now configure and use Samba,CIFS and NFS shares. Refer to our guide below for a detailed how-to.

That is it!

We have triumphantly installed and configured the OpenMediaVault NAS Storage Server. Now you can share files across the network with ease. I hope this was significant.

Related posts:

RELATED ARTICLES

Most Popular

Recent Comments