You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make an unprivileged container with a directory binding to the host. I use the proxmox_lxc resource.
In this resource there is a option for a mountpoint. I think it should go like this:
But it complains about it needs a key and a size, but it is a directory, so those parameters are not needed. If I give it some info, it complains that there must be a TGM or K in the size, which I did (when uncommented the line).
Size is irrelevant because it is a directory binding. Nor the key has any purpose.
To get the desired state, you could do the following commands in the proxmox host shell:
chown 100000:100000 /mnt/shared -R
pct set 1601 -mp0 /mnt/shared/dock1601proxy,mp=/docker
If I do an import: "tofu import proxmox_lxc.dock1601proxy node/lxc/1601" ,it imports the state, but there is no mountpoint in the state, nor any network config.
Is it possible to do a directory binding with the API (storage type = dir?) ? If so, would it be possible to add it to the proxmox-provider ?
The text was updated successfully, but these errors were encountered:
And the LXC container now has two mount points ! Conclusion: Yes it is possible to do a directory mount through the API.
I rather manage the resources by terraform/tofu, than some powershell script.
I want to make an unprivileged container with a directory binding to the host. I use the proxmox_lxc resource.
In this resource there is a option for a mountpoint. I think it should go like this:
But it complains about it needs a key and a size, but it is a directory, so those parameters are not needed. If I give it some info, it complains that there must be a TGM or K in the size, which I did (when uncommented the line).
Size is irrelevant because it is a directory binding. Nor the key has any purpose.
To get the desired state, you could do the following commands in the proxmox host shell:
If I do an import: "tofu import proxmox_lxc.dock1601proxy node/lxc/1601" ,it imports the state, but there is no mountpoint in the state, nor any network config.
Is it possible to do a directory binding with the API (storage type = dir?) ? If so, would it be possible to add it to the proxmox-provider ?
The text was updated successfully, but these errors were encountered: