Skip to content

OpenMediaVault

OpenMediaVault is my NAS that serves both NFS and SAMBA shares to my network. It runs on VM on the system that is directly connected to my external hard drive.

🛠 Installation

pve

(
  cd /var/lib/vz/template/iso && \
  wget $(curl -s https://sourceforge.net/projects/openmediavault/rss?path=/iso | \
  grep -oP '<link>https://sourceforge.net/projects/openmediavault/files/iso/[^<]+</link>' | \
  head -n 1 | \
  sed 's/<link>//; s/<\/link>//'| \
  sed 's/\/download$//')
)
  • Create new VM

General

Name: omv

Start at boot: ✅

OS

ISO image: *.iso

Disks

Bus/Device: SATA

Disk size (GiB): 16

CPU

Cores: 2

Memory

Memory (MiB): 4096

Look for disk

lsblk
  • Install omv into VM.

Default Access

Port: 80

Username: admin

Password: openmediavault

🔑 Change Password

Top right person icon -> Change Password

New User

Users -> Users

Groups: openmediavault-admin,users

Reinstall

Recover drive

Mounted after reinstall and not before.

Remount

omv-firstaid

Static IP

GUI

Network -> Interfaces -> ens18

Method: Static

Address: 192.168.2.19

Netmask: 255.255.0.0

Gateway: 192.168.0.0

NFS

Server

Client: 192.168.2.0/24

Permission: Read/Write

Extra options: subtree_check,insecure,no_root_squash

Client

Installation

apt install autofs

/etc/auto.master

echo "/mnt /etc/auto.nfs --ghost --timeout=60" | tee -a /etc/auto.master
+auto.master
/mnt /etc/auto.nfs --ghost --timeout=60

/etc/auto.nfs

echo "storage -fstype=nfs4,rw,insecure 192.168.2.19:/storage" | tee /etc/auto.nfs
storage -fstype=nfs4,rw,insecure 192.168.2.19:/storage

Test

showmount -e 192.168.2.19

Mount

(
  systemctl restart autofs.service && \
  systemctl status autofs.service
)

🚀 Upgrade

Code

omv-upgrade

🔗 References