Hi,
I have configured a container running OpenMediaVault. This NAS software should have access to directories /mnt/<dir> on the host.
I found this blog posting providing some information on this topic.
Basically it instructs to edit /var/lib/lxc/<container-name>/fstab and apend a line
I entered the container and modified /etc/fstab accordingly:
But inside container I cannot read/write any file in the directories.
Another question in that context:
Where are all the files / directories that belong to a container stored?
Any advice for solving this issue is appreciated.
THX
I have configured a container running OpenMediaVault. This NAS software should have access to directories /mnt/<dir> on the host.
I found this blog posting providing some information on this topic.
Basically it instructs to edit /var/lib/lxc/<container-name>/fstab and apend a line
Code:
/path/to/host/directory path/to/container/directory none bind,create=dir
I entered the container and modified /etc/fstab accordingly:
Code:
root@vm102-omv:~# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/mnt/bilder mnt/bilder none bind,create=dir
/mnt/dokumente mnt/dokumente none bind,create=dir
But inside container I cannot read/write any file in the directories.
Another question in that context:
Where are all the files / directories that belong to a container stored?
Any advice for solving this issue is appreciated.
THX
Last edited: