Hi Fiona,
All good questions, but they're all interlinked, let me try to explain.
This setup is for my homelab. I use it for a couple of standard home-labbing things such as for example:
- SMB fileshare for PC's in the household
- Docker host running a number of apps, Emby, *arr, Transmission, Pihole, Vaultwarden, Linkwarden, Joplin server, Borg backup server, and more.
The containers use different shares fom the SMB fileshare, but all run on the same CT. I know CT are not "recommended" for separation, but separation is not my primary concern here.
I don't actually need a lot of virtual machines for this. Previously I was running all of this off an old laptop with a couple of large USB connected drives. The excercise was to convert this to a setup with RAID and perhaps get a nice GUI. For this I thought I'd use something like Unraid or Truenas Scale. I tried Unraid, but it really wasn't for me, so I tried Truenas. This kinda covered my requirements, but Truenas Scale has the quirk that it requires the full access to the full boot drive. My boot drive is a 2 TB NVME so thowing 99.9% of the space away seemed pointless, which is where Proxmox comes in. WIth proxmox I create a VM with Truenas Scale, pass the spinning rust through to it and let it handle the ZFS raid array and the SMB shares. I have a CT with my docker containers, with shares mounted from the ZFS array. Eventually I would work towards running all my docker containers under Truenas control but I will make that transition down the road as there are a lot of small fiddly changes necessary.
Here we get to the problem, the shares can't be mounted directly on a CT so I mount them back on the Proxmox server and then bind mount them to the CT. Yes I know it is cludgy, and I guess thats why I'm trying to find a better solution.
If anything I could install Truenas directly on the iron. I have an old 500 GB drive lying around that I could use as boot drive for Truenas, it just seems such a waste to have a drive spinning only for that. In the old days with Truenas Core (And unraid) you could boot of USB but this isn't supported by Truenas Scale.
I realize this all has nothing to do with Proxmox, but you asked about my usecase.
So I guess the question here is, what is the best way to mount the shares from Truenas to the CT. Of course, if you or anyone have good ideas how to set this up in a better way I'm ready to learn!
PS. Virtiofs sounds interesting, but it's not clear to me if it exports the raw ZFS dataset, or the clienta needs to create a new local filesystem layer on top such as with virtual machines now.