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:

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!