I came with a strange problem with LXD, and I partially solved it.
However, I need to know how to set "lxc.mount.auto" in LXD. In other words, where does the lxc.mount.auto value in /var/log/lxd/container-name/lxc.conf
value come from? and how to set it permanently?
UPDATE
According to the documentation:
... Sometimes, however, it may be necessary to talk to the underlying lxc driver itself. This can be done by specifying LXC configuration items in the 'raw.lxc' LXD configuration key. These must be valid items as documented in the lxc.container.conf(5) manual page.
However I haven't found a way to modify or include that raw.lxc
UPDATE 2
As far as I understood, this is how you set it:
lxc config set container-name raw.lxc "lxc.mount.auto=sys"
It actually works, as I can see it being added into: /var/log/lxd/container-name/lxc.conf
, for example:
lxc.cap.drop = mac_admin mac_override sys_time sys_module sys_rawio
lxc.mount.auto = proc:rw sys:rw cgroup:mixed
lxc.autodev = 1
...
lxc.mount.auto=sys
However it seems that it does not overwrite the previous rule.
0 Answers