Mount samba share inside an OpenVZ container

den

Member
Feb 19, 2015
64
2
6
guys - im having trouble mounting a samba share inside container (ubuntu 12.04)
so im trying this from the node.. to share a folder inside two containers

source: /var/lib/vz/private/100/home/folder
destination: /var/lib/vz/private/101/home/folder


Code:
vzctl exec 101 mkdir /home/folder
mount --bind /var/lib/vz/private/100/home/folder /var/lib/vz/private/101/home/folder

now, why can't i see the data from inside container 101?
FROM 101: ls /home/folder shows nothing.

however, i can see the data from the node
FROM NODE: ls /var/lib/vz/private/101/home/folder
 
i need to re-create the situation again.. but could it have been because of permissions?
the 'others' file permissions wasn't set to read/write? or is there another way to set permissions?
 
It have nothing to do with permissions.

Can you execute?:

vzctl exec 101 mkdir /home/folder
mount --bind /var/lib/vz/private/100/home/folder /var/lib/vz/private/101/home/folder
mount

And print results