Apologies is this is really obvious, I've probably misunderstood something and become confused.
I have a machine that I want to use as combined virtualization server and NAS box. I have a 1TB M.2 that I'm using for Proxmox and VM / Container space and a 43TB 5 drive RAIDZ2 array which I want to use for general storage.
I've created a Debian 12 container running Samba (and Cockpit) which will act as the NAS. On the host I've created a new dataset "/tank/scratch" which will be my first shared location.
Now for where I'm struggling. I know that I need to bind mount the "/tank/scratch" directory to the container and I've read up on modifying the containers conf file to do this. I think I'm even starting to understand uid/gid mapping. I'm happy to set this bind mount up manually but I'm not sure this is the best way. Manually setting it up would mean Proxmox wouldn't know anything about "/tank/scratch".
It feels like I should add a directory in Proxmox that points to "/tank/scratch"? I believe I could then add the bind mount though the Proxmox interface. Is there any advantage / disadvantage to this? I think my confusion comes from having to specify what type of file will be stored in a Proxmox directory, I don't want to store ISO's or templates etc in there, I want it to just be general storage space.
I have a machine that I want to use as combined virtualization server and NAS box. I have a 1TB M.2 that I'm using for Proxmox and VM / Container space and a 43TB 5 drive RAIDZ2 array which I want to use for general storage.
I've created a Debian 12 container running Samba (and Cockpit) which will act as the NAS. On the host I've created a new dataset "/tank/scratch" which will be my first shared location.
Now for where I'm struggling. I know that I need to bind mount the "/tank/scratch" directory to the container and I've read up on modifying the containers conf file to do this. I think I'm even starting to understand uid/gid mapping. I'm happy to set this bind mount up manually but I'm not sure this is the best way. Manually setting it up would mean Proxmox wouldn't know anything about "/tank/scratch".
It feels like I should add a directory in Proxmox that points to "/tank/scratch"? I believe I could then add the bind mount though the Proxmox interface. Is there any advantage / disadvantage to this? I think my confusion comes from having to specify what type of file will be stored in a Proxmox directory, I don't want to store ISO's or templates etc in there, I want it to just be general storage space.