Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
I'm leaving this here for continuity, but don't follow what I said here. I have my containers set as privileged. I was wrong.
I have a server that runs Proxmox and a server that runs TrueNAS, so a very similar setup to yours. As long as your LXC is tied to a network adapter that has access to your file server (it almost certainly is unless you're using multiple NICs and/or VLANs), you should be able to mount shares inside your LXC just like you do on any other Linux machine.
Can you ping your fileserver from inside the container? If so, then the issue is with the configuration in the container itself. Privileged or unprivileged shouldn't matter here. How are you trying to mount the CIFS share?
Edit: I see that you're mounting the share in Proxmox and mapping it to your container. You don't need to do this. Just mount it in the container itself.
I can ping the fileserver and reach I can map the drive from calibre for example but it does not have write persmissions.
Maybe I am mounting incorrectly I mounted with
mount -t cifs username=username \\fileserverIP\folder \mnt\smb_share
This works for 1 of my lxc that is privileged but does not work the unprivileged ones
I'm sorry, I think I gave you bad information. I have my containers set to unprivileged=no. I forgot about the "double negative" in how that flag was described.
So apparently my containers are privileged, so I don't think I've ever tried to do what you are doing.
No problem, as far as I can understand that is the easiest solution I don't see the problem with privileged containers if they are local in your network. I think I will test with NFS instead of smb/cifs and check the user access as @gaylord_fartmaster@lemmy.world mentioned above.
Can you mount SMB shares in unprivliged containers? I thought that was blocked.
I believe you're correct. I didn't realize that I had my containers set to privileged. That would explain why I've never had issues with mounting shares.