Read AND WRITE from unprivileged LXC container to Proxmox SMB / NFS / CIFS / NAS share

  Рет қаралды 2,830

Automation Avenue

Automation Avenue

Күн бұрын

Пікірлер: 26
@Automation-Avenue
@Automation-Avenue Ай бұрын
How to bind mount Proxmox NAS ( SMB / NFS / CIFS shares on OpenMediaVault, TrueNAS, Unraid VM etc) running on Virtual Machine and Unprivileged LXC container so that LXC container can WRITE back to the NAS? We will see today how it can be done. In one of the previous videos we already went through the process of adding media library kept in OpenMediaVault Shared Folder and bind mount it on Jellyfin LXC unprivileged container ( were both OMV and Jellyfin were running on Proxmox ): kzbin.info/www/bejne/l3bdoJKra7h9qc0 In that video - as you noticed - the LXC container had only READ permissions on that remote Shared Folder, we could not write from LXC container to OMV running on Virtual Machine. This is default behaviour and today we will see why is that and what we need to change to be able to also WRITE from any LXC container to any Virtual Machine. Please also see another video where I created a bash script that does all of that automatically every time when you restart Proxmox: kzbin.info/www/bejne/fqaUl4xmYqupjKc ===TIMESTAMPS=== 0:00 read AND WRITE from unprivileged LXC container to Proxmox VM 1:15 OpenMediaVault VM shared folder configuration 2:10 mount OMV shared folder to Proxmox 7:20 create LXC container 11:10 the reason why you cant write from unprivileged container to Proxmox VM 13:30 how to read AND WRITE from unprivileged container for root user 18:15 read and WRITE from unprivileged container as other user 19:10 create a user on LXC container 22:15 not only Proxmox, it works for all linux distributions Hope that helps. Please let me know if you have any questions Marek
@heliodoro58
@heliodoro58 2 күн бұрын
Find your channel recently. Thanks for the useful, easy explanations.
@Automation-Avenue
@Automation-Avenue 2 күн бұрын
Glad I can help! Thank you for watching :) Marek
@Koko-badu
@Koko-badu Ай бұрын
It is really great explainer. Nothing more, nothing less. Thanks a lot for sharing your experience.
@Automation-Avenue
@Automation-Avenue Ай бұрын
I am really happy I could help. Thank you for watching and for your comment :) Marek
@tez5937
@tez5937 12 күн бұрын
Much appreciate this!! Thank you
@Automation-Avenue
@Automation-Avenue 12 күн бұрын
I am glad it was helpful! Thank you for your comment. Marek
@lakshaygoyal4145
@lakshaygoyal4145 Ай бұрын
This is exactly what I was missing. Thank you so much.
@Automation-Avenue
@Automation-Avenue Ай бұрын
You're very welcome! Thank you for watching. Marek
@a3-82
@a3-82 14 күн бұрын
this is greats tutorial thanks sir
@Automation-Avenue
@Automation-Avenue 14 күн бұрын
You are most welcome :) Marek
@philipolinga9674
@philipolinga9674 Ай бұрын
This has been absolutely spot, i able able to download file using qbittorrent in an lxc and passing the files straight to my Samba Shared folder😄😄😄😄
@Automation-Avenue
@Automation-Avenue Ай бұрын
Glad I could help :) Thank you for watching and commenting Marek
@NGXG18
@NGXG18 25 күн бұрын
Interesting, I was able to configure this but shares doesnt see completed files from lxc. And the lxc is the only one that sees the new files.
@AndyRay
@AndyRay Ай бұрын
What if however I wanted to pass PVE /mnt/minipc to the LXC at /shared and provide multiple users access? marek = RW, autoavenue = R, User1 = RW - if each user gets a U.id and a G.id and we use those to set the mount configuration - doesn’t that limit you to the specific U.id and G.id? Or, what if /mnt/minipc already exists and we want to broker its connection to multiple LXCs? Absolutely fabulous guide - very clear and elegant. I ran across it when trying to figure out how to pass /dev/dri to an unprivileged LXC and give the user in the container the rights to use the device (iGPU pass through for HW transcode) but the solution in the LXC also mounted multiple items in docker in the LXC. I was able to make it work by changing it to a privileged container (validating that it was a permissions issue not a technological one), but I would like to know how to pass an existing device or share to an unprivileged LXC and give it the rights it needs. Thanks!
@Automation-Avenue
@Automation-Avenue 27 күн бұрын
Hi! To achieve that you might be looking into changing the mappings between host and LXC id's , I mean something like here in this article: itsembedded.com/sysadmin/proxmox_bind_unprivileged_lxc/ That will allow you manage more than one user. Thank you for watching and commenting! Marek
@NGXG18
@NGXG18 19 күн бұрын
Thank you for guide. Have you been able to setup nested share in OMV? Parentfolder, childfolder.. Nas/doc, Nas/media. And doing that setting permission/acl to where certain users or app can read or write to the child folder only. And not whole share mount.
@Automation-Avenue
@Automation-Avenue 19 күн бұрын
No I haven't tried that yet, if I do - I will let you know. Thank you for watching :) Marek
@monish05m
@monish05m 15 күн бұрын
Fstab mount your nfs or cifs to the host, then bind mount the mount point to the lxc
@Automation-Avenue
@Automation-Avenue 15 күн бұрын
You can"t use fstab unless you use start delay for OMV. The problem with mounting after reboot was discussed and I created srparate video about it: kzbin.info/www/bejne/fqaUl4xmYqupjKc Thank you for watching :) Marek
@Lunolux
@Lunolux Ай бұрын
great video, thx you don't have enough subscriber )= great explaination like every time
@Automation-Avenue
@Automation-Avenue Ай бұрын
I appreciate your kind words :) Thank you for watching and commenting. Marek
@Najmun14
@Najmun14 Ай бұрын
Hello Automation Avenue, I hope you are well. I visited your KZbin Channel. Your content is Excellent. But your Channel is not growing, Because your Content title and Description are not SEO-friendly and do not have Enough Rank tags. This is why there is no Content Coming to the top of KZbin. As a result, your video SEO Score is very low, according to VidiQ, (your channel's video's SEO score is 0 / out of 100, which should be 90+). If you want, I can make it 90+, which will help your channel grow faster. If you SEO your videos Properly then the Channel Progress will be very Fast & Subscribers and Views will Increase. If you want I can solve problems and help you rank your videos Better. If you are Interested Please Let me know. Regards, Nazmun (KZbin Video SEO Expert).
@Automation-Avenue
@Automation-Avenue Ай бұрын
The channel is growing fine mate :), Thank you for watching !
@Najmun14
@Najmun14 Ай бұрын
@@Automation-Avenue Thank
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 123 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 3,1 МЛН
SMB Server In Docker with ZFS! Simple, Cheap, and Efficient!
23:00
Jim's Garage
Рет қаралды 52 М.
Getting the Most Performance out of TrueNAS and ZFS
18:31
Techno Tim
Рет қаралды 108 М.
Proxmox Backup Server Saves You Money And Time!
24:48
Jim's Garage
Рет қаралды 58 М.
Proxmox and TrueNAS in my Living Room
11:52
Techno Tim Tinkers
Рет қаралды 52 М.
Running a NAS on Proxmox, Different Methods and What to Know
18:47
ElectronicsWizardry
Рет қаралды 54 М.
NAS Shares On LXC - Unprivileged - Jellyfin Example
13:35
Jim's Garage
Рет қаралды 39 М.
More POWER for my HomeLab! // Proxmox
17:49
Christian Lempa
Рет қаралды 101 М.
LXC/LXD vs Docker Which is better?
14:24
Scotti-BYTE Enterprise Consulting Services
Рет қаралды 29 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 123 МЛН