mount -t cifs [sambashare] [mountpoint]this will result in a failure:
mount error: cifs filesystem not supported by the systemthough there is a workaround, the trick is to use '
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Bind Mounts' which can be used to make directories on the hardware node visible to the container.
On the node mount the samba share
mount -t cifs //server/share /mnt/mymountpointand use mount bind to make this share available for the container. First create a directory inside the container where you want to mount the share to. I.e. you want to make the share available for container-id 103 on directory /mnt/mymountpoint
Execute the following commands on the hardwarenode:
vzctl exec 102 mkdir /mnt/mymountpointThe samba share is now available inside container id 102
mount --bind /mnt/mymountpoint /vz/root/102/mnt/mymountpoint
You can also edit
\\server\share /mnt/mymointpoint cifs password=[password],username=[username],noauto 0 0
/mnt/mymountpoint /vz/root/102/mnt/mymountpoint bind defaults,bind 0 0