[SOLVED] External harddrive use in lxc and vm

zeronavigation

New Member
Jul 15, 2023
5
1
3
Dear reader,

So I bought a HP Prodesk 600 G3 to replace my Raspberry Pi as I wanted to run the following on my local server:
- Proxmox with:
+ OMV (vm)
+ Pihole (lxc)
+ Jellyfin (lxc)
+ SABNBzd (lxc)

I own a 8TB WD Elements usb harddrive which I connect to the HP via usb. The root drive is a 250GB SSD.

I succeeded in installing all programs (vm and lxc).
I succeeded in passing the Elements drive through to OMV, and am able to access it over my network (SMB/CIFS) over \\OPENMEDIAVAULT\xxx

However, the last part, which I have been struggling with for over +10 hours is that I cannot seem to access the Elements drive within the containers.
In pve I find the disk (/dev/sdb1) although it's not found in LVM or Directory.

I mounted the drive in /mnt/elements, with use of /etc/fstab
Code:
UUID=F84A17A64A1760A4 /mnt/elements ntfs-3g rw,user,exec 0 2
which seems to work.
But when I mount it in the lxc conf file (/etc/pve/lxc/100.conf) with
Code:
pct set 102 -mp0 /mnt/elements,mp=/elements,shared=1
It's inaccesible.

So the questions for you guys are:
Is my general idea of doing this right or am I doing it totally wrong?
What could I make this work?

Your help is much appreciated!
 
UPDATE:
I finally managed to get it working.

In OMV I created a NFS.
In Proxmox I added the virtual drive with the NFS, on /mnt/pve/Elements

Then added the mnt with:
pct set xxx -mp0 /mnt/pve/Elements,mp=/elements,shared=1
with xxx being the several numbers for the containers.

Hopefully, this will help someone else in the future.
 
  • Like
Reactions: Gordian