genn.tech field notes — homelab

field notes

Storage day on the Proxmox box

A fresh install on a 500GB SATA SSD, a 1TB NVMe sitting idle in the same machine, and a Synology already humming on the network. Here is the full build log: the repo error nobody warns you about anymore, ZFS on the NVMe, NFS back to the NAS for ISOs, and every small thing that almost went wrong along the way.

proxmox ve, latest release zfs · nfs · macos casula homelab
root@pve: ~
root@pve:~# apt update Error: The list of sources could not be read. # fresh install, day one, before a single package has updated
01

The repo error before anything else

Every fresh Proxmox install ships with the enterprise repository switched on by default, and that repo is gated behind a paid subscription key. Try to update without one and apt refuses outright. Nothing wrong with the install, the box is just pointed at a door it doesn't have a key for.

The fix that's all over older guides, commenting out a line in a .list file, doesn't apply on the latest release. Proxmox moved its apt sources to the deb822 format, so the enterprise repo now lives in its own .sources file with a structured set of fields instead of one line.

Checking what was actually there first:

/etc/apt/sources.list.d/pve-enterprise.sources
Types: deb URIs: https://enterprise.proxmox.com/debian/pve Suites: trixie Components: pve-enterprise Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

Disabling it is one line, appended rather than commented out, since that's how the new format expects to be switched off:

root@pve: ~
root@pve:~# echo 'Enabled: false' >> /etc/apt/sources.list.d/pve-enterprise.sources

Then a new file for the free, no subscription repository, written in the same field based style:

/etc/apt/sources.list.d/pve-no-subscription.sources
Types: deb URIs: http://download.proxmox.com/debian/pve Suites: trixie Components: pve-no-subscription Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

And the update that should have run the first time:

root@pve: ~
root@pve:~# apt update && apt full-upgrade -y Reading package lists... Done ...packages upgraded, kernel included

Full upgrade rather than a plain upgrade matters here. A plain upgrade holds back anything that needs a new dependency, and on Proxmox that usually means the kernel and the pve manager packages get left behind.

02

Giving the NVMe to ZFS

1TB NVMe, previously a Windows data drive, fully idle going into this

Before anything gets wiped, this box turned out to have more drives in it than expected. Worth the five seconds it takes to check:

root@pve: ~
root@pve:~# lsblk sda 1.8T disk (spinner, not in use) sdb 447G disk (the proxmox os drive, leave alone) sdc 28.7G disk (usb installer media, removable) nvme1n1 466G disk (existing windows install) nvme0n1 932G disk (the target — had old ntfs data on it)

One of those NVMe drives already had an NTFS partition labeled from a previous build. Mounted it read only first with ntfs-3g, eyeballed the contents, confirmed nothing on it mattered, then wiped.

Clearing the old partition table and any leftover filesystem signatures:

root@pve: ~
root@pve:~# wipefs -a /dev/nvme0n1p1 root@pve:~# wipefs -a /dev/nvme0n1p2 root@pve:~# wipefs -a /dev/nvme0n1

Then the ZFS pool itself, aligned to 4K sectors and with trim turned on so the drive can reclaim space properly over time:

root@pve: ~
root@pve:~# zpool create -o ashift=12 vmdata /dev/nvme0n1 root@pve:~# zpool set autotrim=on vmdata

And registering it as usable Proxmox storage, available to both VM disks and container root filesystems:

root@pve: ~
root@pve:~# pvesm add zfspool vmdata --pool vmdata --content images,rootdir root@pve:~# pvesm status vmdata zfspool active 900G available
03

NFS to the Synology, for ISOs

Synology, two bays, already on the network

NFS over CIFS for this one, since both ends are Linux underneath and it skips the username and password dance entirely, just IP based permissions. On the Synology side: enable the NFS service, then on the shared folder itself, add an NFS permission rule scoped to the Proxmox node's IP.

Back on Proxmox, finding the exact export path rather than guessing it:

root@pve: ~
root@pve:~# showmount -e 192.168.0.13 Export list for 192.168.0.13: /volume2/Virtual 192.168.0.66

That second column is worth a glance too, it's the host allow list. This export was locked to one IP, which made sense, that was the Proxmox box. Registering the storage:

root@pve: ~
root@pve:~# pvesm add nfs synology-isos --server 192.168.0.13 --export /volume2/Virtual --content iso

The share showed up fine in Proxmox, but ISOs sitting at the share root didn't appear anywhere in the UI. Proxmox doesn't browse the whole share, it only looks inside fixed subfolders, template/iso for ISOs, template/cache for templates, dump for backups.

The fix was just moving them into the folder Proxmox actually checks:

root@pve: ~
root@pve:~# mkdir -p /mnt/pve/synology-isos/template/iso root@pve:~# mv /mnt/pve/synology-isos/*.iso /mnt/pve/synology-isos/template/iso/

Refreshed the ISO Images tab in the GUI and every file appeared immediately. Anything dropped into that same folder from now on, Finder, File Station, doesn't matter, shows up automatically.

04

Mounting the same share from macOS

Useful for browsing the same ISO folder without going near the Proxmox shell. macOS has an NFS client built in, no extra software needed, but the first attempt threw a locking error that's worth knowing about ahead of time:

dominicgenn@macm2prowifi ~
% sudo mount -t nfs -o resvport,rw 192.168.0.13:/volume2/Virtual /Volumes/isos mount_nfs: can't mount with remote locks when server is not running rpc.statd

Synology's NFSv3 implementation doesn't run the locking service macOS expects by default. Cleanest fix for a read mostly ISO share is just to skip locking entirely on the mount:

dominicgenn@macm2prowifi ~
% sudo mkdir -p /Volumes/isos % sudo mount -t nfs -o resvport,rw,nolocks 192.168.0.13:/volume2/Virtual /Volumes/isos mounted clean, no errors

The host allow list mattered here too. The Mac needed its own NFS permission entry added on the Synology side before any of this would even connect, since the original rule only allowed the Proxmox node's IP.

What I'd tell myself before starting