I'm attempting to mount a host directory in a container as per my other thread @ (https://forum.proxmox.com/threads/expose-cifs-share-to-lxc-container.44757/#post-213868).
I am able to get this to work by modifying the container config file. Specifically I'm adding something like
to the bottom of config file at /var/lib/lxc/103/config
When I modify this file and start the Container everything works!
Now, my problem is, when I shutdown the Container, start it, and then go view /var/lib/lxc/103/config I find that the two lines I added to the bottom are gone!
How/where do I modify the container config where it will persist through restarts?
I am able to get this to work by modifying the container config file. Specifically I'm adding something like
lxc.mount.entry = /mnt/share /var/lib/lxc/103/rootfs/mnt/share none bind 0 0
lxc-mount
lxc-mount
to the bottom of config file at /var/lib/lxc/103/config
When I modify this file and start the Container everything works!
Now, my problem is, when I shutdown the Container, start it, and then go view /var/lib/lxc/103/config I find that the two lines I added to the bottom are gone!
How/where do I modify the container config where it will persist through restarts?