Problem mounting cifs into lxc container

Sidius

New Member
Oct 4, 2024
11
0
1
Hello

I'm use turnkey file-server to build new samba storage. I have old samba storage on other server and i need to mount old storage to copy data from it ( i cannot do archive on other server because of encoding problems).
And when i do mount -t cifs bla bla bla - it return

Code:
mount error(1): Operation not permitted

When i do the same from PVE shell - it works fine but i need it into lxc container.
 
I need make privileged container? Why?
With an unprivileged CT it could be hard to mount cifs. https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/
I haven't read through the (very very long) thread, but have a look and see if you can find another solution.

As workaround use "rsync" to copy all your files from Server A to B. Or mount your SMB share localy on the PVE host and create a temporary bindmount to your container: https://pve.proxmox.com/wiki/Unprivileged_LXC_containers#Using_local_directory_bind_mount_points (not tested with samba here).
 
Last edited: