Hello,
It this possible to create a mount between the host and a guest by editing the lxc configuration file.
Since 4.2 it is possible to create a mount in the graphical assistant or with the API but actually it does something different by creating a separate disk. (By the way this is not clear to me what the expected JSON structure to pass.)
So I like to know if it possible to create a bind mount through the API, that would be convenient.
Regards
It this possible to create a mount between the host and a guest by editing the lxc configuration file.
cat "mp0: /srv/directory,mp=/srv/directory" >> /etc/pve/lxc/<id>.conf
it seems to be called a bind mount reading the page https://pve.proxmox.com/wiki/LXC_Bind_MountsSince 4.2 it is possible to create a mount in the graphical assistant or with the API but actually it does something different by creating a separate disk. (By the way this is not clear to me what the expected JSON structure to pass.)
So I like to know if it possible to create a bind mount through the API, that would be convenient.
Regards