How to mount your NAS shared folder ( SMB / NFS / CIFS ) on LXC Proxmox unprivileged container like Jellyfin or Plex? If you have Proxmox server you probably came across that problem before of how to share disk space between LXC and VM. In this video I will go through the process of adding media library kept in OpenMediaVault Shared Folder and bind mount it on Jellyfin LXC container ( both OMV and Jellyfin running on Proxmox ). You might also want to watch these 2 videos: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html == TIMESTAMPS == 0:00 How to attach shared folder to OMV or Plex container 0:23 Open Media Vault settings 2:20 Mounting SMB shared folder on Proxmox 3:15 Installing CIFS utility 5:40 pct command to bind mount folder to container 7:20 Rebooting OpenMediaVault container 7:40 Adding media library folder to OpenMediaVault 🔥🔥 Learn Devops and Cloud on our platform: www.automation-avenue.com 📧 info@automation-avenue.com
Happy that I could help. You might also be interested in that related content: Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Kind regards Marek
@@Automation-Avenue After a full system restart I receive playback errors in JF. cd /mnt/ no longer shows the directories i created. Is there something i am missing?
Clear and concise.... no meaning off to unrelated stuff. One thing that was missed though.... when you reboot the proxmox server, you need to enter the smbuser password, once the nas vm has come up. Perhaps a second video to explain how make all of that majicly happen.
Dude. I haven't tried this out but I'm pretty sure you just fixed my entire issues with bind mounting a remote Samba share. I've spent literally a week trying to figure this out. Gonna try it when I get off work. If I'm successful, I'll have multiple backups of photos and files from my Proxmox server going perfectly. Very succinct and easy to follow video. Thank you for showing how to login as guest too! That's new to me!
I have been struggling with sharing the samba shared drive to Plex server and this is the best video that explains the most important part which alot of other videos seems to be missing out. Thank you sir!
I have spent weeks watching other videos trying to figure this out. The only difference I had is that OMV runs on a separate physical host that I've told ProxMox to connect to and treat as external storage (for VM backups). However, your instructions followed to a tee all still worked. I cannot thank you enough man.
Hi! I am glad you liked it and found it helpful. Yes - regarding bind mounts and volumes - you might also be interested in 2 other videos, one of them I have just released - Bind mounts vs Volumes - what are they? What's the difference between them? : th-cam.com/video/keINzeYs_lc/w-d-xo.html and Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Kind regards marek@automation-avenue.com
Wow finally someone that explains this simple concept in a way that is safe and executable. Everything else I looked up online was either complicated or unsafe. Thank you!!
Happy I could help :) You might be interested in follow up video where we created a script that will automatically mount that location after Proxmox reboot: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Thanks- Marek
Adding to previous response - you might be interested in new related videos as well, please see: Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
I've been using Proxmox for a couple of months now, and this video is exactly was I was looking to do! Thanks for sharing (what I would do differently is add the mounting of the OMV share on the fstab file of the proxmox server, so It will mount on every boot) but besides that, this video is extremely helpful! THANKS!
Hi! Thank you for watching and commenting. Regarding mount - you would also have to delay the start of Jellyfin container for that to work but good shout. You might be interested in yet another solution to that problem with bash script - please see my other video which is a follow up to this one: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thanks you saved my day :) I tried it first at my own with nfs and it doesn't worked for me, then I followed your instructions and used smb and BAAM it woks!
Adding to previous response - you might be interested in new related videos as well, please see: Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
Ich danke ihnen vielmals, sie haben meinen tag gerettet. seit 5 tagen versuchte ich OMV 2 Jellyfin ohne erfolg. Heute haben sie mir die liebe meiner frau verstärkt:) gerade mal 6 Sätze sind notwendig um ihre geliebten alten DVDs zu sehen. ich wünsche ihnen alles gute und ein gesundes neues Jahr :)
GOD BLESS YOU MAN!!! I literally whooped with glee when this worked for me. This has been plaguing me for days. No other videos explained these concepts as well as you. Thank you!!!
Happy that I could help. I guess that you might also be interested in 2 other videos, one of them I have just released - Bind mounts vs Volumes - what are they? What's the difference between them? : th-cam.com/video/keINzeYs_lc/w-d-xo.html and Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Kind regards Marek
Glad I could help, you might also be interested in follow-up video I created about how to create a bash script that will auto-mount all of that for you upon server reboot: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Thank you for watching! Marek
@@Automation-Avenue now i have a problem that when i boot proxmox it won't mount on boot, I'v tried fstab and other things but it not mounting on boot, i need to do mount -a every time i reboot. do you know what can i do ? thanks
@@amirbendavid951 yes - quite a few people have reported it - please see my new video with a script that fixes this issue: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Hope it helps :) Marek
Thumbs up...WAY UP!!! I don't know why so many people like to post tutorials that don't work. Clickbait maybe. Anyway, thank you so much for this, for posting something that ACTUALLY works!
thasnk you so much for this video, ive read so much on how to do this on line none of it makes any sence to me lol, but your video is so easy to follow and worked first time so anain thank you
Please also see my new video with a script that makes your VM, container and bind mount up and running after reboot : th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Marek
Thank you :) Regarding docker compose - please see this video: th-cam.com/video/1eqPmDvMjLY/w-d-xo.html I believe you might find it interesting. Thank you for watching and commenting :) Marek
Great Video, I tried for ages to do this, I second what other people are saying though rebooting proxmox cancels the share anyway to automate the connection
yes - quite a few people have reported the reboot issue - so please see my new video with a script that fixes all of that and can do much more : th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Hope it helps :) Marek
i've had issues trying to make the mount (in the unprivileged LCX) read AND writeable. I have a TV tuner connected to my Jellyfin account, and need it to be able to write to it, when I'm recording a show. I still haven't worked it out, so have resorted to using a privileged container, with CIFS installed in it
Yes, many people mentioned that, so I created a video how to change the configuration to be able to read AND WRITE from unprivileged container: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
Thank you for watching, please also have a look at related content: Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps! Marek
@@Automation-Avenue hey mate, just to confirm the "-mp0" should be unique and the next shared folder should be "-mp1" -- basically you cannot have 2 -mp0 on two shared folder.. same goes with the "mp=shared"? For example: I cannot have "pct set 203 -mp0 /mnt/minipc,mp=shared" and the next one is "pct set 203 -mp0 /mnt/minipc,mp=shared2" Also, if I decided to unmount or reverse/undo the sharing -- what would be the command for that? thanks in advance.
How do you store the data for OMV? Is it in raw file or can you retain an image-less file system structure for it and exposed to it by Proxmox? I don't find it safe to store all my personal files in an image file that can get corrupted any time, it is an unnecessary layer to me. Thanks.
I dont keep any important stuff there tbh, I have separate samba share on LXC Debian container where I keep most of my files and share between multiple systems.
Sure, basically GUI will generate the same CLI command in the background, but knowing CLI command lets you build your next project which is automatic bind after the proxmox server reboots :D : th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Thank you for watching and for commenting :) Marek
Apologies if this is a dumb question, but couldn't one just install Jellyfin inside the OMV as a docker container? That way it already has access to the shared folder of the OMV, or is it just a safety concern and this is a safer method? Not sure I understand the advantage this offers.
It's definately NOT a dumb question :D. I guess you could also run jellyfin on OMV using omv-extras, but it still means you have to create bind mounts etc. People tend to use separate container for each application, or bind them together in docker-compose file as we did in that video: th-cam.com/video/1eqPmDvMjLY/w-d-xo.html Some people will have Jellyfin grabbing resources not only from OMV but from ARR stack and maybe from other sources as well, there is no right or wrong way of doing it. I presented solution for that particular setup, but it does not mean its only right setup and your should look exactly like mine. Hope that helps :) Thank you for watching and commenting ! Marek
Nice and easy video explaining a tutorial I followed on a forum. Though question: I configured my ubuntu-samba VM with more storage but the shared mount hasn't updated the amount of storage is available to the VM now. My question is, how can I get this extra storage to be usable for the mounted file?
Hi You have to 'umount' and mount that location again. The size vslue is passed during mount process so you have to refresh it by unmounting snd mounting again Thank you for watching and commenting- Marek
@@Automation-Avenue You can delay the start of the jellyfin container. In promxmox go to your lxc then Options>Start/Shutdown order and set Startup delay to around 60-80 seconds. Now you can add entry to fstab and everything should work after restart.
@@kamilbaranski854 yes, there is many ways to approach that problem, please see my new video with a script that fixes this issue after restarting Proxmox: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html As with everything in Linux - its just one out of so many other possible solutions :) Marek
Hi! Really helpful tutorial! Only one problem with it. What happens when I want to write to that smb share bind? For example, I now see my folders to my audiobookshelf container after I followed your instructions but I cannot upload anything new as I do not have write permissions. Tried in console with mkdir on the mounted folder but the same. Thank you!
Hi, There is a bit of ID remapping that happens between the host and an LXC container. The UIDs and GIDs are mapped 100,000 above the host. If you look at the files in the container you will notice they are owned by nobody:nobody since the container does not have any reference to the owner or group. This is ok of your application is run as root in the container. But if your app is not able to run as root you have to do something different. Here is what I do. Mind you I use fstab to bind my mount points so they are there after a reboot of the host (Proxmox). You might want to do some UID mapping in the LXC container config file to make things a bit easier inside the container. Include the following in the LXC definition file for your container. A restart is required. # uid map: from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), so 0..1004 (ct) → 100000..101004 (host) lxc.idmap = u 0 100000 1005 lxc.idmap = g 0 100000 1005 When binding the mount include uid=100000,gid=110000,file_mode=0770,dir_mode=0770 to the mount command. This will bind the mount to that UID and GID that get passed in to the container. When the mp is made to the container these get translated to UID=0 and GID=10000. Also, in the container create a group, say lxc_shares that has a GID of 10000 and add the user that runs the application to that group. Now the user the application is running under (1005 in my case) will have both read and write access to the mount point in the unprivileged container. I also have audiobookshelf with the books on a NAS as your example app you suggest. Hope that helps you out.
@@wizzbangtg yes that is correct. I went with a privileged container instead to remove all the fuss about it. Worked with a simple mount and even though it's not considered best practice I'm not too worried about safety.
Because many people mentioned that, I now created a video how to change the configuration to be able to read AND WRITE from unprivileged container: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
I've done it through the UI of proxmox. Just added smb share to the node (proxmox remembers all of your credentials), then pass through the folder to a vm or ct. But there is a catch. My Jellyfin ct can't start without fully loaded smb shares into the proxmox, and after a power outage or other reboot, it won't start automatically. So I made a simple conditional script (i can share it too) and made it run as a cron job on a host on every reboot. Two years ago when I just started making my own server, I would kill for the info in this video!
@@senj3ru I already sent an email to @Automation-Avenue hoping that the author of this video would add a link to the video description, but apparently my email got lost or hasn't been seen by him yet. Or the video author's automated email system thought I was a spam. It's a shame when you create your literally first project on github and can't share it.
Good question - please see my new video which should clarify why is that and what to change to be able to write from unprivileged container: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
Jellyfin container or ARR stack, that works bit different way - please see this video - th-cam.com/video/1eqPmDvMjLY/w-d-xo.html - hope it helps Thank you for your comment Marek
That's the tricky part because the OMV share needs to be available before proxmox can mount it and proxmox has to have it mounted before the Jellyfin container is started.
Yes I do have solution for that - please see my new video with a script that fixes this issue after restarting Proxmox: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Hope it helps :) Marek
@@killer2600 yes you are right - I made a script that does it automatically after each reboot and made a video - th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Please let me know your thoughts Marek
Hi This approach will have read access only, but because many people asked how to get slso write access - I will create separate video explaining possible solutions. Thank you for watching and commenting :)
The new video I mentioned has just been released: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
THanks for the tutorial I think i followed it by the letter, but i cannot write to the shared mountpoint from the jellyfin lxc, from the proxmox node i can write. Is this by design or did i miss something?
By default its read only, but because many people mentioned that I created a video how to change the configuration to be able to read AND WRITE from unprivileged container: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps. Please let me know if you have any further questions. Thank you for watching and commenting Marek
@@Automation-Avenue yes I see thank you ! I'm use to proxmox being so hard to learn that I was suspicious to see such a simple tutorial, great job, thank you again !
Did this and was all working great, then one day all my media was not available in plex. Ive redone these steps and its all back again now. What would cause the connection/passthrough to disappear or fail? My dir was still there, so can only assume teh mount had gone on teh proxmox pve. Any ideas what that would happen? Would it go if i reboot proxmox maybe?
good day, happy new year in advance:) I have 2 questions for you, is this share only temporary? So does it disappear after a restart or power failure? I turned off the computer because I wanted to replace the data disk and then I had to repeat the steps. Is there a way to do this? I noticed it because I had cloned my system disk from HDD to SSD, the system was running but the share was not available in the container. Thank you for your help and the instructions guten tag, ein gutes neues Jahr vorweg:) 2 fragen hätte ich an sie, ist dieser Share nur temporär? also nach eine Neustart oder Stromausfall weg? ich hatte den Rechner aus gemacht weil ich die datenplatte ersetzten wollte dann musste ich die schritte noch ein mal ausführen. gibt es hierzu eine Möglichkeit? ich bemerkte es weil ich meine systemplatte von hdd auf ssd geklont hatte das System lief aber der Share war im Container nicht verfügbar. danke für ihre Hilfe und die Anleitung
Hi, it doesnt survive reboot, please see this video to see how to configure it so it also works after rebooting Proxmox: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Hope that helps :) Marek
Thank you so much for this guide, it helped me understand a lot ! In my case, instead of OMV VM I have created TurnKey File Server LXC in which I added a mount point for an HDD I have installed in my Proxmox machine. I share the contents of this drive via TurnKey's Samba server. I want these contents to also be available for Jellyfin LXC. Would the instructions in this video work for me?
Honestly - can't be sure. I'd say it should, but never run exact same configuration so cant say it will 100% work. Sorry I can't help you more. Thank you for commenting - Marek
This is a very well done tutorial but I have had little success, I mount everything as instructed in the video except using fstab to mount smb on boot, Im able to see my nas contents from host machine, when I pass it to the container I see nothing in my shared folder. Any ideas on what I need to do?
Another update: Making the container privileged completely solved my issue along with using FSTAB to mount (even though I know its not recomended) hopefully this helps some people struggling like myself Thanks for the Awesome video to point me in the right direction!!!
Brother thank you for the video. I follow the instructions of your videos and I'm able to make it work. The problem I'm encountering is that if the host reboots Jellyfin doesn't work any more. I tried a samba share with user and passwd and I tried as a guess without passwd. I first thought it was like a permissions access, meaning it was not saving the logging credentials. But then I tried it with a the Samba share without credentials that it can be accessed without a password. But the same deal happened, so is proxmox, forgetting or losing the mount point is that where my problem is? In that case, how do I check that? Can you give me a pointer with that? And thank you once again for your content. I'm very new to proxmox and linux in general.
Hi mate, yes it is known problem - please see this video on how to make it working after reboot: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Thank you for watching! Marek
Do you have a fix for when you get 'permission denied' when you try to create files/folders in this mounted directory on the container? I'm having this issue and can't figure it out. Thanks!
The new video I mentioned has just been released: Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Please let me know if you have any questions. Thank you for watching and commenting. Marek
Running it on bare metal works better, I used to run Plex in an lxc container with a remote nfs mount to truenas and without fail the nfs mount would randomly disconnect. I think it’s something to do with how the lxc container allows nfs mounts, a remount wouldn’t work, only rebooting the container worked. I never had that issue running it on a bare metal server in docker. Even if I temporarily take the truenas server down, it recovers as soon as the server is up.
Hi. If you had an issue then it most likely would be seen on proxmox itself, the containers are pretty 'dumb' about what is going on behind the scene. I honestly never had an issue running Jellyfin and OMV configured exactly as in this video, I haven't played with TrueNAS for a while but remember swapping it for unraid for some reason ( long before they changed the licensing )
@@Automation-Avenue it looks like you were using samba, my issue occurred with the native nfs mounts that are built into the lxc container . Maybe samba is fine, nfs was not for me.
Yes, with this setup yiu will have read only permissions. Some changes are needed to mount point on proxmox - I will shortly make a video how to sort it out. Thanks for your comment :)
The new video has been just released - it will show you how to get permissions not only to read, but also write from unprivileged LXC container : Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps. Please let me know if you have any further questions. Thank you for watching and commenting Marek
This was really helpful, though the problem I'm having now is that other machines like the ARR stack for example don't have write permission to the location and I can't figure out how to give those machines that permission.
How do you run your ARR stack? Is it maybe running in LXC container? Please see this video, it might solve your problem: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Thank you for watching Marek
Hello, very good video, thank you!!!! In my scenario, I have a Debian LXC container and I would like it to see the folders in Synology. Your entire tutorial worked for me, however, when trying to add the root folder to sonarr or radarr, it doesn't see them. Is there anything else I should have done besides what I did following your video? Thank you again
The problem with ARR stack is bit more complicated - please see this video first : th-cam.com/video/1eqPmDvMjLY/w-d-xo.html -it might clarify some stuff. Thank you for watching
Hi Marek, great tutorial - especially in combination with your other video with the batch script. This works fine for me with a read-only LXC application. However, I cannot use it with another unprivileged LXC that needs write access on the OMV share, due to missing permissions. Looking at the comments below, there are several people that have the same issue... Maybe you could make a video for a solution how to fix this? Or is it simply not possible with an unprivileged LXC and you need a privileged LXC instead , if you want to have read & write access for data from a OMV share that's bind mounted to a proxmox LXC container ? Thanks a lot !
Yes I noticed multiple questions regarding that particular issue. Its definately doable, I will need to write down all steps required and will record and publish a video so watch that space ;) Thank you for your comment! Marek
The new video has been just released - it will show you how to get permissions not only to read, but also write from unprivileged LXC container : Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps. Please let me know if you have any further questions. Thank you for watching and commenting Marek
hey nice video my only issue is i cannot add hdd drives to zfs because they are on a pcie sata expander card, i dont know how to see them, i can pass it thru to a vm like truenas and it works i see everything
There is not an easy answer I am afraid, because it would depend on what docker image we are talking about, what docker network type you use etc. I have the feeling though that this video can help you: th-cam.com/video/1eqPmDvMjLY/w-d-xo.html Instead of using samba - you can share the same folder with all docker containers if you put them in the same docker compose file. Please have a look and let me know if thats helpful. Thank you for watching :) Marek
You might want to watch this video: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html but I believe simple unmounting and mounting again could work in your case too. Hope that helps Marek
I'm going to try this tonight, but can you do this on not just a container but say a VM also? I want to share to a Plex server that is a full VM and not a container but I'm having issues getting Plex to see the shared Media drive from the TrueNAS VM. The funny thing is on the Plex VM I can gain access and map the SMB to Ubuntu without issue, but Plex refuses to see the SMB or read anything from it if I manually specify the location path, I'm guessing this is a permissions issue on my part somewhere but I wish Plex would include the ability to read from mapped drives as standard.
Hi. Not sure if i get it right - you have Plex installed on Ubuntu and want to access TrueNAS? If thats the case - then that Plex server will be there as different user, not root ( I guess it simply will be user 'plex' - you can check using 'cat /etc/passwd' comand - you should see plex or similar user there ) . Then you need to mount the volume using that user rather than root user - so instead of sth like 'mount -t cifs //192.168.1.202/MiniPC /mnt/minipc' you will need 'mount -t cifs -o user=plex //192.168.1.202/MiniPC /mnt/minipc' instead. I am just guessing here, I dont have Plex installed right now so cant double check, but that would be something I would start from. Thank you for watching. Marek
@@Automation-Avenue Hi mate, thank you for the help, so basically to get this to work on a VM as opposed to a container I did exactly as your video said but on the actual ubuntu plex server VM and not externally in Proxmox. This way I was able to map drives to the /mnt in ubuntu and then I was able to upload my media to the trueNAS media share on the network from a windows machine and locate the /mnt on the plex server, my media began to sync instantly. Thank you for your help!
Thanks for this and I have followed it to the letter but when trying to access my share on the container I am getting ash: cd: /mnt/plex/: Permission denied do you have any ideas what might be causing this please?
Hi If you get that error - it means you are trying to get into that folder as a different user that does not have permissions to view the content of a folder. You have to switch to root user. Hope that helps and thank you for watching Marek
Sure, but root account id on Proxmox ( 0 ) is not the same as root account id on LXC ( 10000 ) - please see this video: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps Marek
Hi! I'm having a problem here... I'm running openmediavault 7 in proxomox 8 server with a ZFS raid1 pool that have 2 shares, 1 for user1 and the 2nd for user2... I've installed a syncthing unprivileged LXC and I'm trying to mount the user1 share for sync a folder in my PC to that specific share, but I have a "mount error(1): Operation not permitted" and I can't find the solution. Can you helpme??? Thks!
One important thing... User1 have r/w privileges on his own share and user2 have w/r privileges on his onw folder but none of them hay privileges on the other user share. And I'm using User1 user & pass to make que conection in mount.cifs. like this: """mount -t cifs -o user=User1 //open.media.vault.IP/user1share /mnt/shares""" (the OMV shares is SMB 3.0)
Hi, just wonder - have you seen this video already? th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Because that might give you an idea how those permissions are bound and how to configure them. Please have a look , hope that will help Marek
Thank you ! I am working on follow up to that video, thinking about making a script that will automatically start OMV and mount a volume after a reboot, so please watch that space! Thanks for your comment! Marek
I just run it on windows server2025 -> create folder put stuff in thats it done… this is just crazy iv been trying to do this on proxmox and its driving me crazy it makes stuff super complicated for no reason
@@Automation-Avenue it is usefull but also show how bad linux file structuring is.. its so bad to the point is unusable! I ended up spinning up ubuntu server and installing casaOS into it and installing jellyfin and deluge on casaos as it can directly see the drive...
While indeed this does work and is a solution, I just feel like its a bit messy to passthrough drives (or controllers) to OMV just to mount the shared back to Proxmox via SMB and pass it to a LXC. I just feel like the Proxmox host should have minimal configurations that are related to guest Vms or LXCs, so that you have no dependencies to the host when you eventually want to restore. the whole system. Of course this is a minor change but they add up. Its too bad that LXCs have this limitation and you cand mount SMB shares to it.
When OMV restarts, the share becomes unavailable and can make proxmox( and the other LXC that use the share) crash. Better to use autofs. This also works with NFS (faster and less overhead on unix).
Autofs might be one option yes, but please also see my new video with a script that starts your OMV, your container and mounts everything automatically after every restart: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Marek
Here’s a problem I’ve had for months. I have proxmox running truenas and Portainer which then has jellyfin, sonarr and radarr. I’ve struggled since March trying to make this work. I’m going to try your solution and see if that works. Or if anyone else has done this, let me know!
@@Automation-Avenue well, had to scratch my head a little when I got errors (containers running trying to change mount point) and then mounting to a location I couldn’t find, it’s now working! Excellent
@@Automation-Avenue So a little update. While your method worked for me to get Jellyfin to see the files, my arrstack running in the same container state they do not have write access for user 'abc' so I'm still stuck Any ideas?
@@wvziccardi It is a nature of unprivileged container. You can find more info in the wiki of Proxmox--> unprivileged container. Your mounted folder is owned by nobody/nogroup with no rights.
Hi! True- but please see a follow up video where we solve this problem by creating a bash script that will auto-mount everything after Proxmox reboot: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Hope that helps and thank you for your comment ! Marek
Great video but what happens when you reboot proxmox? Since Proxmox is picking up the share from your OMV VM, how does Proxmox handles that? EDIT: nevermind, I see that someone has asked the question below and you were kind enough to create a follow up video for it. th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html Thanks!
Yes - in fact- you might be interested in another related video, its about configuring unprivileged LXC container so it can also write to other containers or VMs: th-cam.com/video/CFhlg6qbi5M/w-d-xo.html Hope that helps. Thank you for watching and commenting :) Marek
Спасибо мужик! У меня всё получилось, благодаря тебе я понял как пробрасывать папки в свой plex сервер mkdir /mnt/pve/plex mount -t cifs -o user={user} //server/folder /mnt/pve/plex/ pct set {id} -mp{id} /mnt/pve/plex/,mp=/mnt
How to mount your NAS shared folder ( SMB / NFS / CIFS ) on LXC Proxmox unprivileged container like Jellyfin or Plex?
If you have Proxmox server you probably came across that problem before of how to share disk space between LXC and VM.
In this video I will go through the process of adding media library kept in OpenMediaVault Shared Folder and bind mount it on Jellyfin LXC container ( both OMV and Jellyfin running on Proxmox ).
You might also want to watch these 2 videos:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
== TIMESTAMPS ==
0:00 How to attach shared folder to OMV or Plex container
0:23 Open Media Vault settings
2:20 Mounting SMB shared folder on Proxmox
3:15 Installing CIFS utility
5:40 pct command to bind mount folder to container
7:20 Rebooting OpenMediaVault container
7:40 Adding media library folder to OpenMediaVault
🔥🔥 Learn Devops and Cloud on our platform: www.automation-avenue.com
📧 info@automation-avenue.com
I wasted all of yesterday trying to figure this out. This morning I found your video and poof, works like a miracle. Thank you sir!
Happy that I could help.
You might also be interested in that related content:
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Kind regards
Marek
Dude! I have been watching multiple videos about how to learn this and you explained everything in 10 min. This was super helpful! Thanks!
Glad I could help :)
Thank you for watching!
Marek
I think I want to have your babies - so many tutorials on this subject, but this one is quick, clear, and straightforward. More please!
:D - Glad I could help, thank you for your comment.
Marek
@@Automation-Avenue After a full system restart I receive playback errors in JF. cd /mnt/ no longer shows the directories i created. Is there something i am missing?
@@BrentH561 Hi - please see this video where I created script to auto-mount folders after reboot:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Clear and concise.... no meaning off to unrelated stuff.
One thing that was missed though.... when you reboot the proxmox server, you need to enter the smbuser password, once the nas vm has come up.
Perhaps a second video to explain how make all of that majicly happen.
As per your request:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
Dude. I haven't tried this out but I'm pretty sure you just fixed my entire issues with bind mounting a remote Samba share. I've spent literally a week trying to figure this out. Gonna try it when I get off work. If I'm successful, I'll have multiple backups of photos and files from my Proxmox server going perfectly.
Very succinct and easy to follow video. Thank you for showing how to login as guest too! That's new to me!
I am sure it will work fine mate :)
Thank you for watching!
Marek
I have been struggling with sharing the samba shared drive to Plex server and this is the best video that explains the most important part which alot of other videos seems to be missing out. Thank you sir!
You're very welcome! Happy I could help.
Marek
I have spent weeks watching other videos trying to figure this out. The only difference I had is that OMV runs on a separate physical host that I've told ProxMox to connect to and treat as external storage (for VM backups). However, your instructions followed to a tee all still worked. I cannot thank you enough man.
Hi! I am glad you liked it and found it helpful.
Yes - regarding bind mounts and volumes - you might also be interested in 2 other videos, one of them I have just released -
Bind mounts vs Volumes - what are they? What's the difference between them? :
th-cam.com/video/keINzeYs_lc/w-d-xo.html
and
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Kind regards
marek@automation-avenue.com
Dude. YOU ARE THE MAN!! ive watched like ten videos on how to do this and they all failed except yours. Much appreciated. Thank you.
Glad I could help :)
Thank you for watching
Marek
I've been trying for 2 days and after watching the video I solved it in 5 minutes. Thank You
Glad I could help :)
Thank you for watching!
Marek
Wow finally someone that explains this simple concept in a way that is safe and executable. Everything else I looked up online was either complicated or unsafe. Thank you!!
Happy I could help :)
You might be interested in follow up video where we created a script that will automatically mount that location after Proxmox reboot:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thanks- Marek
Adding to previous response - you might be interested in new related videos as well, please see:
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
@@Automation-Avenue Thank You!
You are most welcome :)
Thank you
Marek
I've been using Proxmox for a couple of months now, and this video is exactly was I was looking to do! Thanks for sharing (what I would do differently is add the mounting of the OMV share on the fstab file of the proxmox server, so It will mount on every boot) but besides that, this video is extremely helpful! THANKS!
Hi! Thank you for watching and commenting.
Regarding mount - you would also have to delay the start of Jellyfin container for that to work but good shout.
You might be interested in yet another solution to that problem with bash script - please see my other video which is a follow up to this one:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
All the other tutorials skip over this issue... Thanks for your efforts
You are most welcome
I was dreaming of this issue I had in my setup yesterday and TH-cam led me here. This is perfect, thank you!!
You're so welcome! Thank you for watching
I spent multiple days finding a solution, this works first try and is easier than other methods
Happy I could help :)
Thank you for your comment.
Marek
I've been banging my head against the wall for hours now. I just found your video, and you've saved me a lot of time. Thank you sir
You're welcome! Thank you for watching.
Marek
Thank you for making this so clear and simple. It seems to be a lost art when it comes to tech tutorials.
Glad you think so!
Thank you for watching :)
Marek
Thanks you saved my day :)
I tried it first at my own with nfs and it doesn't worked for me, then I followed your instructions and used smb and BAAM it woks!
Glad I could help :)
Thank you for watching!
Marek
Thank you so much for sharing this tutorial! This is the only method that worked for me to mount a truenas core smb share to my jellyfin lxc (unpriv).
You're welcome! Thank you for watching.
Marek
same here my friend,, this is the simplest method i tried... and success...
Adding to previous response - you might be interested in new related videos as well, please see:
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
Ich danke ihnen vielmals, sie haben meinen tag gerettet. seit 5 tagen versuchte ich OMV 2 Jellyfin ohne erfolg. Heute haben sie mir die liebe meiner frau verstärkt:) gerade mal 6 Sätze sind notwendig um ihre geliebten alten DVDs zu sehen. ich wünsche ihnen alles gute und ein gesundes neues Jahr :)
Glad I could help :)
Thank you for this clear video! You take the time to check everyting to see if it works before proceeding!
Glad it was helpful! Thank you for watching :)
Marek
GOD BLESS YOU MAN!!! I literally whooped with glee when this worked for me. This has been plaguing me for days. No other videos explained these concepts as well as you. Thank you!!!
Happy that I could help.
I guess that you might also be interested in 2 other videos, one of them I have just released -
Bind mounts vs Volumes - what are they? What's the difference between them? :
th-cam.com/video/keINzeYs_lc/w-d-xo.html
and
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Kind regards
Marek
Just what I was looking for. No BS and with steps explained.
Thank you for watching and commenting :)
Marek
Thank you so much for this saved me hours of stress wish i had found your video sooner!
Glad I could help, you might also be interested in follow-up video I created about how to create a bash script that will auto-mount all of that for you upon server reboot:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thank you for watching!
Marek
you don't know how much i tried to find a solution for this. i can't believe it so simple. thank you . subscribed .
Glad that I could help ! Thank you!
@@Automation-Avenue now i have a problem that when i boot proxmox it won't mount on boot, I'v tried fstab and other things but it not mounting on boot, i need to do mount -a every time i reboot. do you know what can i do ? thanks
@@amirbendavid951 yes - quite a few people have reported it - please see my new video with a script that fixes this issue:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
After days of trying this on my own, you got me up and running in minutes!!!!
Glad I could help, thank you for watching and commenting :)
Marek
Thank you so much! I have been scratching my head trying to figure this setup out and how to connect it through proxmox to see the shared files.
Glad I could help! Cheers! Marek
YOU AEW AMAZING!!! I have been trying to figure this out for weeks. Can't thank you enough!!
Happy to help!
Marek
Have to say best video by far, Simple, Perfectly explained! Deserved a new sub and like!
Thank you !
Thumbs up...WAY UP!!! I don't know why so many people like to post tutorials that don't work. Clickbait maybe. Anyway, thank you so much for this, for posting something that ACTUALLY works!
You are welcome! Thank you for watching :) Marek
thasnk you so much for this video, ive read so much on how to do this on line none of it makes any sence to me lol, but your video is so easy to follow and worked first time so anain thank you
Glad I could help! Thank you !
Please also see my new video with a script that makes your VM, container and bind mount up and running after reboot :
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Marek
superstar!!!!!! and the final point is to add it to the docker compose if Plex or Jellyfin are in a container
Thank you :)
Regarding docker compose - please see this video: th-cam.com/video/1eqPmDvMjLY/w-d-xo.html
I believe you might find it interesting.
Thank you for watching and commenting :)
Marek
Great Video, I tried for ages to do this, I second what other people are saying though rebooting proxmox cancels the share anyway to automate the connection
yes - quite a few people have reported the reboot issue - so please see my new video with a script that fixes all of that and can do much more :
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
You're an incredible teacher. Thank you!
Thank you so much! I am glad you found the vidro helpful :)
Marek
Many thanks bro. You saved me many hours of my live
Glad I could help !
Marek
i've had issues trying to make the mount (in the unprivileged LCX) read AND writeable. I have a TV tuner connected to my Jellyfin account, and need it to be able to write to it, when I'm recording a show. I still haven't worked it out, so have resorted to using a privileged container, with CIFS installed in it
Yes, many people mentioned that, so I created a video how to change the configuration to be able to read AND WRITE from unprivileged container:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
Very helpful, thank you, have a great day :-)
Glad you liked it :)
Thank you for watching!
Marek
Excellent video, helped lots, thank you.
Thank you for watching, please also have a look at related content:
Automatically bind mount NFS/SMB/CIFS share to Proxmox LXC container after reboot with bash script:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps!
Marek
That was a really great tutorial. As what other said, It is clear and conceise. I have smash the SUBSCRIBE button for you, my friend.
Awesome! Thank you for your support!
@@Automation-Avenue hey mate, just to confirm the "-mp0" should be unique and the next shared folder should be "-mp1" -- basically you cannot have 2 -mp0 on two shared folder.. same goes with the "mp=shared"?
For example: I cannot have "pct set 203 -mp0 /mnt/minipc,mp=shared" and the next one is "pct set 203 -mp0 /mnt/minipc,mp=shared2"
Also, if I decided to unmount or reverse/undo the sharing -- what would be the command for that? thanks in advance.
How do you store the data for OMV? Is it in raw file or can you retain an image-less file system structure for it and exposed to it by Proxmox? I don't find it safe to store all my personal files in an image file that can get corrupted any time, it is an unnecessary layer to me. Thanks.
I dont keep any important stuff there tbh, I have separate samba share on LXC Debian container where I keep most of my files and share between multiple systems.
You can set mounts via the GUI at the data centre level in storage.
Sure, basically GUI will generate the same CLI command in the background, but knowing CLI command lets you build your next project which is automatic bind after the proxmox server reboots :D :
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thank you for watching and for commenting :)
Marek
Apologies if this is a dumb question, but couldn't one just install Jellyfin inside the OMV as a docker container? That way it already has access to the shared folder of the OMV, or is it just a safety concern and this is a safer method? Not sure I understand the advantage this offers.
It's definately NOT a dumb question :D.
I guess you could also run jellyfin on OMV using omv-extras, but it still means you have to create bind mounts etc.
People tend to use separate container for each application, or bind them together in docker-compose file as we did in that video:
th-cam.com/video/1eqPmDvMjLY/w-d-xo.html
Some people will have Jellyfin grabbing resources not only from OMV but from ARR stack and maybe from other sources as well, there is no right or wrong way of doing it.
I presented solution for that particular setup, but it does not mean its only right setup and your should look exactly like mine.
Hope that helps :)
Thank you for watching and commenting !
Marek
Amazing! Thank you!
Glad you liked it and thank you for watching!
Marek
neat routine, thank you! Subscribed.
Awesome! Thank you for subscribing !
Nice and easy video explaining a tutorial I followed on a forum. Though question: I configured my ubuntu-samba VM with more storage but the shared mount hasn't updated the amount of storage is available to the VM now. My question is, how can I get this extra storage to be usable for the mounted file?
Hi
You have to 'umount' and mount that location again. The size vslue is passed during mount process so you have to refresh it by unmounting snd mounting again
Thank you for watching and commenting- Marek
good and clear instruction thanks, one question, what is the best practice so that the share is automatically remounted after restarting proxmox?
Please see my new video with a script that fixes this issue after restarting Proxmox:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
@@Automation-Avenue You can delay the start of the jellyfin container. In promxmox go to your lxc then Options>Start/Shutdown order and set Startup delay to around 60-80 seconds. Now you can add entry to fstab and everything should work after restart.
@@kamilbaranski854 yes, there is many ways to approach that problem, please see my new video with a script that fixes this issue after restarting Proxmox:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
As with everything in Linux - its just one out of so many other possible solutions :)
Marek
Hi! Really helpful tutorial! Only one problem with it. What happens when I want to write to that smb share bind?
For example, I now see my folders to my audiobookshelf container after I followed your instructions but I cannot upload anything new as I do not have write permissions.
Tried in console with mkdir on the mounted folder but the same.
Thank you!
Hi,
There is a bit of ID remapping that happens between the host and an LXC container. The UIDs and GIDs are mapped 100,000 above the host. If you look at the files in the container you will notice they are owned by nobody:nobody since the container does not have any reference to the owner or group. This is ok of your application is run as root in the container. But if your app is not able to run as root you have to do something different.
Here is what I do. Mind you I use fstab to bind my mount points so they are there after a reboot of the host (Proxmox).
You might want to do some UID mapping in the LXC container config file to make things a bit easier inside the container.
Include the following in the LXC definition file for your container. A restart is required.
# uid map: from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), so 0..1004 (ct) → 100000..101004 (host)
lxc.idmap = u 0 100000 1005
lxc.idmap = g 0 100000 1005
When binding the mount include uid=100000,gid=110000,file_mode=0770,dir_mode=0770 to the mount command. This will bind the mount to that UID and GID that get passed in to the container. When the mp is made to the container these get translated to UID=0 and GID=10000.
Also, in the container create a group, say lxc_shares that has a GID of 10000 and add the user that runs the application to that group.
Now the user the application is running under (1005 in my case) will have both read and write access to the mount point in the unprivileged container.
I also have audiobookshelf with the books on a NAS as your example app you suggest.
Hope that helps you out.
@@wizzbangtg yes that is correct. I went with a privileged container instead to remove all the fuss about it.
Worked with a simple mount and even though it's not considered best practice I'm not too worried about safety.
Because many people mentioned that, I now created a video how to change the configuration to be able to read AND WRITE from unprivileged container:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
I've done it through the UI of proxmox. Just added smb share to the node (proxmox remembers all of your credentials), then pass through the folder to a vm or ct. But there is a catch. My Jellyfin ct can't start without fully loaded smb shares into the proxmox, and after a power outage or other reboot, it won't start automatically. So I made a simple conditional script (i can share it too) and made it run as a cron job on a host on every reboot. Two years ago when I just started making my own server, I would kill for the info in this video!
Please see my new video with a script that fixes this issue after restarting Proxmox:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
can please share with this script?
@@senj3ru I want to, but I can't. Posted it on my github, but I can't share the link in the comments. The automatic system deletes them.
@@senj3ru I already sent an email to @Automation-Avenue hoping that the author of this video would add a link to the video description, but apparently my email got lost or hasn't been seen by him yet. Or the video author's automated email system thought I was a spam. It's a shame when you create your literally first project on github and can't share it.
@@goldmax1412Can't you just share your GitHub domain name?
How do you handle the file permissions. When I want to delete something from Jellyfin I am not able to.
Good question - please see my new video which should clarify why is that and what to change to be able to write from unprivileged container:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
I think you can do this instead: OMV> Jellfin
in Jellyfin container = apt-get install cifs-utils then mount that folder from OMV
am I right?
Jellyfin container or ARR stack, that works bit different way - please see this video - th-cam.com/video/1eqPmDvMjLY/w-d-xo.html - hope it helps
Thank you for your comment
Marek
Works wonderfully, but the release/mount point disappears after restarting the system. Do you have a solution to make it persistent?
That's the tricky part because the OMV share needs to be available before proxmox can mount it and proxmox has to have it mounted before the Jellyfin container is started.
Yes I do have solution for that - please see my new video with a script that fixes this issue after restarting Proxmox:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope it helps :)
Marek
@@killer2600 yes you are right - I made a script that does it automatically after each reboot and made a video -
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Please let me know your thoughts
Marek
Does this method only provide read access? I'm able to mount using both nfs and smb using the storage option but its strictly read access
Hi
This approach will have read access only, but because many people asked how to get slso write access - I will create separate video explaining possible solutions.
Thank you for watching and commenting :)
The new video I mentioned has just been released:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
THanks for the tutorial
I think i followed it by the letter, but i cannot write to the shared mountpoint from the jellyfin lxc, from the proxmox node i can write. Is this by design or did i miss something?
By default its read only, but because many people mentioned that I created a video how to change the configuration to be able to read AND WRITE from unprivileged container:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps.
Please let me know if you have any further questions.
Thank you for watching and commenting
Marek
Does that means that the files are stored several times ? That can be an issue if you have a big library no ? Or did I not understand
Hi. The files are only kept on NAS, then on proxmox and the container we create kinda 'pointers' towards that file location.
Hope that makes sense :)
@@Automation-Avenue yes I see thank you ! I'm use to proxmox being so hard to learn that I was suspicious to see such a simple tutorial, great job, thank you again !
Did this and was all working great, then one day all my media was not available in plex. Ive redone these steps and its all back again now. What would cause the connection/passthrough to disappear or fail? My dir was still there, so can only assume teh mount had gone on teh proxmox pve. Any ideas what that would happen? Would it go if i reboot proxmox maybe?
Yes, most probably - please see this video explaining exactly this problem:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
@@Automation-Avenue amazing...... Cheers. Will get that setup this eve. Many thanks
good day, happy new year in advance:) I have 2 questions for you, is this share only temporary? So does it disappear after a restart or power failure? I turned off the computer because I wanted to replace the data disk and then I had to repeat the steps. Is there a way to do this? I noticed it because I had cloned my system disk from HDD to SSD, the system was running but the share was not available in the container. Thank you for your help and the instructions
guten tag, ein gutes neues Jahr vorweg:) 2 fragen hätte ich an sie, ist dieser Share nur temporär? also nach eine Neustart oder Stromausfall weg? ich hatte den Rechner aus gemacht weil ich die datenplatte ersetzten wollte dann musste ich die schritte noch ein mal ausführen. gibt es hierzu eine Möglichkeit? ich bemerkte es weil ich meine systemplatte von hdd auf ssd geklont hatte das System lief aber der Share war im Container nicht verfügbar. danke für ihre Hilfe und die Anleitung
Hi, it doesnt survive reboot, please see this video to see how to configure it so it also works after rebooting Proxmox:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope that helps :)
Marek
Thank you so much for this guide, it helped me understand a lot ! In my case, instead of OMV VM I have created TurnKey File Server LXC in which I added a mount point for an HDD I have installed in my Proxmox machine. I share the contents of this drive via TurnKey's Samba server. I want these contents to also be available for Jellyfin LXC. Would the instructions in this video work for me?
Honestly - can't be sure. I'd say it should, but never run exact same configuration so cant say it will 100% work. Sorry I can't help you more. Thank you for commenting - Marek
This is a very well done tutorial but I have had little success, I mount everything as instructed in the video except using fstab to mount smb on boot, Im able to see my nas contents from host machine, when I pass it to the container I see nothing in my shared folder. Any ideas on what I need to do?
Small Update: I tried to mount my nas via the method shown in the video and I cannot see the content of my NAS anymore
Another update: Making the container privileged completely solved my issue along with using FSTAB to mount (even though I know its not recomended)
hopefully this helps some people struggling like myself
Thanks for the Awesome video to point me in the right direction!!!
Thank you! Glad I could help.
Marek
Brother thank you for the video. I follow the instructions of your videos and I'm able to make it work. The problem I'm encountering is that if the host reboots Jellyfin doesn't work any more. I tried a samba share with user and passwd and I tried as a guess without passwd. I first thought it was like a permissions access, meaning it was not saving the logging credentials. But then I tried it with a the Samba share without credentials that it can be accessed without a password. But the same deal happened, so is proxmox, forgetting or losing the mount point is that where my problem is? In that case, how do I check that? Can you give me a pointer with that? And thank you once again for your content. I'm very new to proxmox and linux in general.
Hi mate, yes it is known problem - please see this video on how to make it working after reboot:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thank you for watching!
Marek
Do you have a fix for when you get 'permission denied' when you try to create files/folders in this mounted directory on the container? I'm having this issue and can't figure it out. Thanks!
I will make a video how to write to files and create folders, it requires just some small changes to existing config.
Thanks for watching :)
The new video I mentioned has just been released:
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Please let me know if you have any questions.
Thank you for watching and commenting.
Marek
what about write permissions? does it work this way?
Hi! Please see this video regarfing write permissions:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps.
Thank you for watching!
Marek
@ Amazing! Thank you!
You're welcome :)
Running it on bare metal works better, I used to run Plex in an lxc container with a remote nfs mount to truenas and without fail the nfs mount would randomly disconnect. I think it’s something to do with how the lxc container allows nfs mounts, a remount wouldn’t work, only rebooting the container worked.
I never had that issue running it on a bare metal server in docker. Even if I temporarily take the truenas server down, it recovers as soon as the server is up.
Hi. If you had an issue then it most likely would be seen on proxmox itself, the containers are pretty 'dumb' about what is going on behind the scene.
I honestly never had an issue running Jellyfin and OMV configured exactly as in this video, I haven't played with TrueNAS for a while but remember swapping it for unraid for some reason ( long before they changed the licensing )
@@Automation-Avenue it looks like you were using samba, my issue occurred with the native nfs mounts that are built into the lxc container .
Maybe samba is fine, nfs was not for me.
How can i create a folder in the mount point on the proxmox CT? I get the error message "mkdir: cannot create directory 'test': Permission denied"
Yes, with this setup yiu will have read only permissions. Some changes are needed to mount point on proxmox - I will shortly make a video how to sort it out.
Thanks for your comment :)
The new video has been just released - it will show you how to get permissions not only to read, but also write from unprivileged LXC container :
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps.
Please let me know if you have any further questions.
Thank you for watching and commenting
Marek
This was really helpful, though the problem I'm having now is that other machines like the ARR stack for example don't have write permission to the location and I can't figure out how to give those machines that permission.
How do you run your ARR stack? Is it maybe running in LXC container?
Please see this video, it might solve your problem:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Thank you for watching
Marek
Hello, very good video, thank you!!!! In my scenario, I have a Debian LXC container and I would like it to see the folders in Synology. Your entire tutorial worked for me, however, when trying to add the root folder to sonarr or radarr, it doesn't see them. Is there anything else I should have done besides what I did following your video? Thank you again
The problem with ARR stack is bit more complicated - please see this video first : th-cam.com/video/1eqPmDvMjLY/w-d-xo.html -it might clarify some stuff.
Thank you for watching
Thank you sooo much
You're welcome, thanks for watching!
Marek
Hi Marek, great tutorial - especially in combination with your other video with the batch script.
This works fine for me with a read-only LXC application. However, I cannot use it with another unprivileged LXC that needs write access on the OMV share, due to missing permissions. Looking at the comments below, there are several people that have the same issue... Maybe you could make a video for a solution how to fix this?
Or is it simply not possible with an unprivileged LXC and you need a privileged LXC instead , if you want to have read & write access for data from a OMV share that's bind mounted to a proxmox LXC container ?
Thanks a lot !
Yes I noticed multiple questions regarding that particular issue.
Its definately doable, I will need to write down all steps required and will record and publish a video so watch that space ;)
Thank you for your comment!
Marek
The new video has been just released - it will show you how to get permissions not only to read, but also write from unprivileged LXC container :
Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps.
Please let me know if you have any further questions.
Thank you for watching and commenting
Marek
@@Automation-Avenue thanks, that's exactly what I was looking for.. awesome!
Glad I could help :)
Thank you for watching and commenting
Marek
hey nice video my only issue is i cannot add hdd drives to zfs because they are on a pcie sata expander card, i dont know how to see them, i can pass it thru to a vm like truenas and it works i see everything
Hmmm, not sure , sorry - I havent got experience with sata expander cards so can't say. Thank you for your comment thougt - Marek
Thank you! i´m needing someone to explain me just it. This run for docker apps too? how can i pass smb folders to apps in docker.
There is not an easy answer I am afraid, because it would depend on what docker image we are talking about, what docker network type you use etc.
I have the feeling though that this video can help you:
th-cam.com/video/1eqPmDvMjLY/w-d-xo.html
Instead of using samba - you can share the same folder with all docker containers if you put them in the same docker compose file.
Please have a look and let me know if thats helpful.
Thank you for watching :)
Marek
@@Automation-Avenue ok I´m going to test it. Thank you very much.
what do i have to do when my daughter unplugged my hdd? Windows Share still works, but in plex it says no data
You might want to watch this video: th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
but I believe simple unmounting and mounting again could work in your case too.
Hope that helps
Marek
How does it works with NFS share?
Would work similar way, the only difference is binding to host portion, might make a video one day showing the process.
Thank you for your comment
This is a great video and I have success with SAMBA; however, I'm not able to make this work with NFS. Any suggestions?
What exactly is the issue you are facing / need help with?
Thank you so much
You're most welcome!
I'm going to try this tonight, but can you do this on not just a container but say a VM also? I want to share to a Plex server that is a full VM and not a container but I'm having issues getting Plex to see the shared Media drive from the TrueNAS VM. The funny thing is on the Plex VM I can gain access and map the SMB to Ubuntu without issue, but Plex refuses to see the SMB or read anything from it if I manually specify the location path, I'm guessing this is a permissions issue on my part somewhere but I wish Plex would include the ability to read from mapped drives as standard.
Hi. Not sure if i get it right - you have Plex installed on Ubuntu and want to access TrueNAS? If thats the case - then that Plex server will be there as different user, not root ( I guess it simply will be user 'plex' - you can check using 'cat /etc/passwd' comand - you should see plex or similar user there ) .
Then you need to mount the volume using that user rather than root user - so instead of sth like 'mount -t cifs //192.168.1.202/MiniPC /mnt/minipc' you will need 'mount -t cifs -o user=plex //192.168.1.202/MiniPC /mnt/minipc' instead.
I am just guessing here, I dont have Plex installed right now so cant double check, but that would be something I would start from.
Thank you for watching.
Marek
@@Automation-Avenue Hi mate, thank you for the help, so basically to get this to work on a VM as opposed to a container I did exactly as your video said but on the actual ubuntu plex server VM and not externally in Proxmox. This way I was able to map drives to the /mnt in ubuntu and then I was able to upload my media to the trueNAS media share on the network from a windows machine and locate the /mnt on the plex server, my media began to sync instantly. Thank you for your help!
Thanks for this and I have followed it to the letter but when trying to access my share on the container I am getting ash: cd: /mnt/plex/: Permission denied do you have any ideas what might be causing this please?
Hi
If you get that error - it means you are trying to get into that folder as a different user that does not have permissions to view the content of a folder. You have to switch to root user.
Hope that helps and thank you for watching
Marek
@@Automation-Avenue Yeah I tried that both the LXC and Proxmox host are logged in as root
Sure, but root account id on Proxmox ( 0 ) is not the same as root account id on LXC ( 10000 ) - please see this video:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps
Marek
Hi! I'm having a problem here... I'm running openmediavault 7 in proxomox 8 server with a ZFS raid1 pool that have 2 shares, 1 for user1 and the 2nd for user2... I've installed a syncthing unprivileged LXC and I'm trying to mount the user1 share for sync a folder in my PC to that specific share, but I have a "mount error(1): Operation not permitted" and I can't find the solution. Can you helpme??? Thks!
One important thing... User1 have r/w privileges on his own share and user2 have w/r privileges on his onw folder but none of them hay privileges on the other user share. And I'm using User1 user & pass to make que conection in mount.cifs.
like this: """mount -t cifs -o user=User1 //open.media.vault.IP/user1share /mnt/shares""" (the OMV shares is SMB 3.0)
Hi, just wonder - have you seen this video already? th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Because that might give you an idea how those permissions are bound and how to configure them.
Please have a look , hope that will help
Marek
Great tutorial, if I could give 10 thumbs-up I would have done it! TYVM!
Thank you ! I am working on follow up to that video, thinking about making a script that will automatically start OMV and mount a volume after a reboot, so please watch that space!
Thanks for your comment!
Marek
excellent!! 👌🏽thank's
My pleasure! Thank you for watching :)
I just run it on windows server2025 -> create folder put stuff in thats it done… this is just crazy iv been trying to do this on proxmox and its driving me crazy it makes stuff super complicated for no reason
Glad you find it useful :)
Thank you for watching
Marek
@@Automation-Avenue it is usefull but also show how bad linux file structuring is.. its so bad to the point is unusable! I ended up spinning up ubuntu server and installing casaOS into it and installing jellyfin and deluge on casaos as it can directly see the drive...
While indeed this does work and is a solution, I just feel like its a bit messy to passthrough drives (or controllers) to OMV just to mount the shared back to Proxmox via SMB and pass it to a LXC. I just feel like the Proxmox host should have minimal configurations that are related to guest Vms or LXCs, so that you have no dependencies to the host when you eventually want to restore. the whole system. Of course this is a minor change but they add up. Its too bad that LXCs have this limitation and you cand mount SMB shares to it.
All valid points. Thank you for your comment. Marek
When OMV restarts, the share becomes unavailable and can make proxmox( and the other LXC that use the share) crash.
Better to use autofs.
This also works with NFS (faster and less overhead on unix).
Autofs might be one option yes, but please also see my new video with a script that starts your OMV, your container and mounts everything automatically after every restart:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Marek
Here’s a problem I’ve had for months. I have proxmox running truenas and Portainer which then has jellyfin, sonarr and radarr. I’ve struggled since March trying to make this work. I’m going to try your solution and see if that works. Or if anyone else has done this, let me know!
Yes, please let me know how it went.
Thank you for watching and commenting :)
Marek
@@Automation-Avenue well, had to scratch my head a little when I got errors (containers running trying to change mount point) and then mounting to a location I couldn’t find, it’s now working! Excellent
@@Automation-Avenue So a little update. While your method worked for me to get Jellyfin to see the files, my arrstack running in the same container state they do not have write access for user 'abc' so I'm still stuck Any ideas?
@@wvziccardi It is a nature of unprivileged container. You can find more info in the wiki of Proxmox--> unprivileged container. Your mounted folder is owned by nobody/nogroup with no rights.
It's good dear creator but, if you restarting the Proxmox, you will be lost everything. This is the problem.
Hi! True- but please see a follow up video where we solve this problem by creating a bash script that will auto-mount everything after Proxmox reboot:
th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Hope that helps and thank you for your comment !
Marek
Almost, but now i need to work out how it work in an umbuntu server vm with swizzen, but close, thanks.
Thank you for watching :)
Marek
thx i really try hard but i never use this
Thank you for watching :)
Marek
Great video but what happens when you reboot proxmox? Since Proxmox is picking up the share from your OMV VM, how does Proxmox handles that?
EDIT: nevermind, I see that someone has asked the question below and you were kind enough to create a follow up video for it. th-cam.com/video/Hu1fY0-FvVE/w-d-xo.html
Thanks!
Yes - in fact- you might be interested in another related video, its about configuring unprivileged LXC container so it can also write to other containers or VMs:
th-cam.com/video/CFhlg6qbi5M/w-d-xo.html
Hope that helps.
Thank you for watching and commenting :)
Marek
Спасибо мужик! У меня всё получилось, благодаря тебе я понял как пробрасывать папки в свой plex сервер
mkdir /mnt/pve/plex
mount -t cifs -o user={user} //server/folder /mnt/pve/plex/
pct set {id} -mp{id} /mnt/pve/plex/,mp=/mnt
Glad I could help !