32
submitted 2 years ago* (last edited 2 years ago) by erev@lemmy.world to c/selfhosted@lemmy.world

Hello! I have Proxmox VE running on a Dell R730 with an H730. Proxmox manages the disks in a ZFS RAID which is exactly how I want it. Because I intend for this server to have a NAS/file server, I want to set up a container or VM in proxmox that will provide network storage shares to domain-joined systems. Pretty much everything in my lab is joined to FreeIPA, so I'd like to use the IdM features with my file server. I have given TKL FileServer a shot but it really didn't seem up to snuff with what I wanted. I am not looking for a NAS solution that will require me to pass through the RAID controller and disks to Proxmox, as I want Proxmox managing the ZFS pool. I can set up an NFS/Samba server in a container, however in trying to do so I was running into issues (due to it being an unprivileged container) that I can probably figure out but I want to see if anyone has any recommendations first.

all 14 comments
sorted by: hot top new old
[-] NeoNachtwaechter@lemmy.world 17 points 2 years ago* (last edited 2 years ago)

I do it the other way round: proxmox leaves it's hands away from the zpool. The 5 disks are passed through to a vm, everything ZFS starts there, and it offers the samba shares.

My directive is that the bare metal proxmox shall not offer any services to the world outside, only VM's may do that.

[-] Damage@feddit.it 9 points 2 years ago

That's what I've done as well, hard drives passed through, RAIDZ created on the NAS itself. It's worked great so far.

[-] tgxn@lemmy.tgxn.net 3 points 2 years ago* (last edited 2 years ago)

Same! Two zpools on one Debian VM, shares NFS etc for everything else. I pass through PCIe sata cards to the VM, too.

[-] tvcvt@lemmy.ml 8 points 2 years ago

My go-to for this is a plain Debian or Ubuntu container with Cockpit and the 45Drives file sharing plugin. It’s pretty straightforward and works pretty well.

[-] ___@lemm.ee 1 points 2 years ago* (last edited 2 years ago)

To add to this, here is a tutorial with video that goes into the permissions. One of the cockpit modules has had an update, so make sure you bump the version number.

  • I had to make it a privileged container to get NFS working. If you only need SMB, unprivileged is fine. There’s nfs-utils for userspace nfs setups, but I haven’t futz with it yet.

https://www.apalrd.net/posts/2023/ultimate_nas/

I replaced a TrueNAS install with this and haven’t been happier. It was such a bloated resource hog for what an LXC and a podman/dockge install can do.

[-] computabloke@lemmy.world 1 points 2 years ago

Seconded on Cockpit project w File Sharing.

Probably not best practice, but it's possible to install it on the PVE host itself since its ZFS manager and Identity manager plugins and other features fills some gaps in what Proxmox doesn't do (or would have to drop to CLI to do).

Also recommend RClone in a systemd can take care of various file movements, syncs and backup tasks you may need against the host, vdumps or SMB file shares.

[-] SeeJayEmm@lemmy.procrastinati.org 5 points 2 years ago

I've been happily running Open Media Vault in a Proxmox VM for some time now.

[-] erev@lemmy.world 2 points 2 years ago

did you pass through the disks or straight on zfs?

[-] SeeJayEmm@lemmy.procrastinati.org 2 points 2 years ago

I didn't pass any phy disks through, if that's what you mean. I'm using that system for more than OMV. I created disks for the VM like I would any other VM.

[-] Lifebandit666@feddit.uk 3 points 2 years ago

I don't understand all the words you're using but:

Having had Proxmox sort out my drives and having had failures and Proxmox refuse to start if the drive isn't present (it was present but forgot it's label so it wasn't there for Proxmox) I recommend just passing through the drives to your NAS and having it handle the drives.

That way if they fail then your NAS fails but Proxmox boots.

Also if you're mounting them directly use the "nofail" option so it doesn't kill your Proxmox if you don't just have the NAS handle it.

[-] pyrosis@lemmy.world 2 points 2 years ago

Hmm. If you are going to have proxmox managing zfs anyway then why not just create datasets and share them directly from the hypervisor?

You can do that in terminal but if you prefer a gui you can install cockpit on the hypervisor with the zfs plugin. It would create a separate web gui on another port. Making it easy to create, manage, and share datasets as you desire.

It will save resources and simplify zfs management operations if you are interested in such a method.

[-] erev@lemmy.world 2 points 2 years ago

i think I'll give that a shot

[-] Decronym@lemmy.decronym.xyz 1 points 2 years ago* (last edited 2 years ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
LXC Linux Containers
NAS Network-Attached Storage
NFS Network File System, a Unix-based file-sharing protocol known for performance and efficiency
PCIe Peripheral Component Interconnect Express
SMB Server Message Block protocol for file and printer sharing; Windows-native
ZFS Solaris/Linux filesystem focusing on data integrity

6 acronyms in this thread; the most compressed thread commented on today has 13 acronyms.

[Thread #722 for this sub, first seen 29th Apr 2024, 11:55] [FAQ] [Full list] [Contact] [Source code]

this post was submitted on 29 Apr 2024
32 points (97.1% liked)

Selfhosted

63291 readers
491 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS