Moutning Samba Share In a container

Snowman001

New Member
Oct 1, 2019
7
0
1
39
Hello all,

Not had Proxmox long but am loving it so far.
I spend a 2 days not being able to mount my Freenas SMB shares in my container (planning to use it for Plex) before i realised thats not allowed/workable. So i found out i coukd make the container privileged (bad) or mount the shae in the host and 'bind it. Moutning in the host took 2 seconds (via the guy) which was great but i dont seem to be able to bind it

In the host i can go into the share and see all of the files if i do the LS command. The share is located at:

root@pve:/mnt/pve/winshare#

I think added what i thought was the correct code to share / bind that folder in the container. Output of the file shows:

Code:
root@pve:/mnt/pve# cat /etc/pve/lxc/102.conf
arch: amd64
cores: 2
hostname: plex
memory: 4000
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=32:DF:12:43:C6:97,ip=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-102-disk-0,size=8G
swap: 512
unprivileged: 1
mp0: /mnt/pve/winshare,mp=/shared in /mnt/freenas

But in the container though i created the folder (before i did the share in the host) it shows nothing as here

Code:
root@plex:/mnt# ls
freenas
root@plex:/mnt# cd freenas/
root@plex:/mnt/freenas# ls
root@plex:/mnt/freenas#

Please can you point me in the right direction here ?

Regards
Paul
 
I found it myself. Somehow i mounted it to

root@plex:/shared in /mnt/freenas#

Is that the corect place it should be?
 
It seems to me that the last line of the conf file is wrong. Stop the container, update the conf to
mp0: /mnt/pve/winshare,mp=/mnt/freenas/

and start the container again
 

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!