this post was submitted on 31 Aug 2023
22 points (95.8% liked)

homelab

6596 readers
9 users here now

founded 4 years ago
MODERATORS
 

I have a mini-PC running windows. On that, I run home assistant in virtualbox, have plex installed, and a cheap USB harddrive plugged in to keep my plex media. I've turned on sharing for a folder in this drive so other devices on my network can access it.

I've watched some videos and read some tutorials. I have a pretty good idea on how I'm going to run HA and Plex, but I'm unsure about turning my USB drive into something the rest of my devices can access as well as something Plex can directly access too.

What would you recommend as the most beginner friendly, easy way to accomplish this? I keep seeing TrueNAS pop up, but I'm not convinced this isn't way overkill for what I want to do. So what would you recommend I look at to start out? The amount of information and things I don't know yet is a little overwhelming.

After I get more familiar with the system, I'm totally happy to branch out and try more advanced things that most people prefer, but that's down the road for me now.

Edit: to be clear, I'm planning on completely ditching windows and setting everything back up in proxmox

all 19 comments
sorted by: hot top controversial new old
[–] noogs@lemmy.noogs.me 3 points 1 year ago (2 children)

If you want multiple containers or VMs to have access to the data it needs to be shared from somewhere. As others have mentioned you can setup a VM to run a NAS OS like FreeNAS or just run a container with samba and pass the drive through to the container. The difference is how you access the data from the other containers and VMs. You'll access them via samba shares as opposed to local drives.

To my knowledge two containers/VMs cannot share the same physical or virtual disks in Proxmox. I tried and had to go a different route to get what I needed.

[–] alexrmay91@lemm.ee 1 points 1 year ago (1 children)

This is helpful, thank you. I'll have to look into the different ways to accomplish this. It would feel weird to access a drive over my network when it's just from another container. Maybe it's not as weird as I think it is?

[–] noogs@lemmy.noogs.me 2 points 1 year ago (1 children)

Not weird at all. All my data is shared from a single VM but I access it from several others than run jellyfin and the *arrs, and a few other things. When you don't want everything running on the same virtual machine, you need to share the data over the network, even if it's all on the same physical box.

[–] alexrmay91@lemm.ee 1 points 1 year ago

Huh, I guess I'll just embrace it then! Thanks for the input

[–] Nawor3565@lemmy.blahaj.zone 2 points 1 year ago (1 children)

How come the folder share you currently have isn't sufficient? Most systems should be able to access Samba, so what particular goal are you trying to accomplish?

[–] alexrmay91@lemm.ee 1 points 1 year ago (1 children)

I want to completely switch over to proxmox and ditch windows on the server. Sorry if that wasn't clear in the post.

I just want to replicate the functionality but proxmox (and Linux in general) is very new to me.

[–] Nawor3565@lemmy.blahaj.zone 3 points 1 year ago (1 children)

Ah, I see. If you're really looking for a beginner option, I might just setup a Samba share for the drive. Then you can get into more advanced options once you get more comfortable.

[–] alexrmay91@lemm.ee 1 points 1 year ago (1 children)

That's really helpful thanks. I should be able to Google around and figure out how to install samba. Would you recommend installing samba directly on the host or spinning up a dedicated VM or LXC to install there?

I'm planning on running Plex in a LXC. Maybe install Samba on that container alongside Plex?

[–] melmi@lemmy.blahaj.zone 2 points 1 year ago (1 children)

Ideally, you'd spin up a dedicated container for every service. Combining services somewhat undercuts the advantages of having them in containers to begin with.

[–] alexrmay91@lemm.ee 1 points 1 year ago

Thanks. That's what I was thinking but I wasn't sure if it was easier to have Plex and samba in the same container since I want both to directly access the hard drive.

[–] possiblylinux127@lemmy.zip 2 points 1 year ago* (last edited 1 year ago)

Samba network share. You will need to pass it though to a VM first

[–] phanto@lemmy.ca 1 points 1 year ago (1 children)

I don't know if this is answering your question or not, so I'm sorry if I'm missing the point. I'm a brand-new proxmox user too. I have a mini-pc that has a 4TB usb drive attached to it, and when I installed proxmox on the mini PC, proxmox saw the internal drive as disk 1, aka /dev/sda. The usb drive? Disk 2, aka /dev/sdb. Following some tutorial out there, I wiped the usb and set it up as a ZFS drive, and I can attach any chunk of it to any VM I spin up. If I try to run an OS off of it, it's pretty slow, but I can attach a chunk of it to a VM in a mount, so a VM can have my movies 'in' the VM.

I'd imagine you could attach the usb that way to your Plex VM, where the VM's OS is on the main storage of the PC, and the media is on the external drive.

[–] alexrmay91@lemm.ee 0 points 1 year ago (1 children)

Funny, I also have a mini-PC and a 4TB USB drive. That's helpful though. Is it possible to mount the entire drive to two different containers? Or does it have to be separate "chunks" of it?

For example, I want a container for Plex and another container for Samba to share the drive on my network. Both would be installed on the internal SSD. Can I set it up so both containers have direct access to the entire external drive at the same time?

[–] phanto@lemmy.ca 1 points 1 year ago

If you mount it to the Plex, you could also share it out via samba. I know you can also mount shared drives, so if you had it shared as a samba share on one container, you could turn mount that share as a folder in the Plex container. I would have to ask more expert people than I am on how, but I know you can mount a share as a folder in a Linux box, so I assume a container would work the same.

[–] melmi@lemmy.blahaj.zone 1 points 1 year ago

A lot of people like having a NAS VM like OpenMediaVault or TrueNAS that handles their drives via passthrough.

It sounds like you would prefer a lighter weight option—the way my storage is set up is ZFS pools handled by Proxmox itself, then bind mounted from the host into containers that handle the actual file sharing portion. I have separate, self-configured containers for Samba and NFS, but there are turnkey options in the proxmox template menu if you'd prefer.