mount error(1): Operation not permitted

Spokee

New Member
Feb 17, 2023
9
1
1
I'm trying to connect a LXC container to a windows VM shared folder for JellyFin. The container is running on Alpine and when I try to mount the Windows share drive I get this error:
"mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
mount: permission denied (are you root?)".
I've ran so many different commands to try and fix it but I keep getting the same error.
Is there anything I can do to fix this?
 

Attachments

  • sk3ikr.png
    sk3ikr.png
    22.4 KB · Views: 102
You simply can't mount a NFS/SMB share inside a unprivileged LXC. But what you can do is bind-mounting a folder from the PVE host into a unprivileged LXC. And you can mount a NFS/SMB share on the PVE host.
So as a workaround you would need mount that NFS/SMB share on the PVE host and then bind-mount it from the PVE host into the unprivileged LXC.

Or alternatively switch your jellyfin to a privileged LXC or VM which would allow to directly mount SMB/NFS shares.
 
You simply can't mount a NFS/SMB share inside a unprivileged LXC. But what you can do is bind-mounting a folder from the PVE host into a unprivileged LXC. And you can mount a NFS/SMB share on the PVE host.
So as a workaround you would need mount that NFS/SMB share on the PVE host and then bind-mount it from the PVE host into the unprivileged LXC.

Or alternatively switch your jellyfin to a privileged LXC or VM which would allow to directly mount SMB/NFS shares.
I've tried making it privileged. It still gives me the same error
 
I've tried making it privileged. It still gives me the same error
For privileged LXCs to mount CIFS shares, you will also have to enable the feature in <Container> > Options > Features > Edit. But I would not recommend exposing the LXC to the internet using such a configuration. Use a VM for such cases, as already suggested by @Dunuin
 
For privileged LXCs to mount CIFS shares, you will also have to enable the feature in <Container> > Options > Features > Edit. But I would not recommend exposing the LXC to the internet using such a configuration. Use a VM for such cases, as already suggested by @Dunuin
Would hardware acceleration still work on JellyFin if I use a vm docker?
 
Only if you PCI passthrough that GPU (and then the host or other VMs/LXCs won't be able to use it anymore). But running running Docker in a LXC causes problems all the time too and running Docker in a VM is recommended.
 
I´m facing the same issue...
I have a VM with Open Media Vault and I want my qBittorrent inside a lxc Portainer to access that SMB shared folder.

I have you found any solution?

If I restore the Portainer Lxc not unprivilleged it wont open the ui.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!