[GH-ISSUE #15] No ability to set advanced container config #8

Closed
opened 2026-02-27 15:45:57 +03:00 by kerem · 5 comments
Owner

Originally created by @jski on GitHub (Apr 16, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/15

From the API documentation here: https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc/{vmid}/config

There is the ability to setup advanced configuration of an LXC container; I'm hoping to set some entries in the .conf like:
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file]

I don't believe this is currently possible using proxmoxer, and would like to request it's inclusion in a future update. Thanks!

Originally created by @jski on GitHub (Apr 16, 2020). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/15 From the API documentation here: [https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc/{vmid}/config](url) There is the ability to setup advanced configuration of an LXC container; I'm hoping to set some entries in the .conf like: `lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file`] I don't believe this is currently possible using proxmoxer, and would like to request it's inclusion in a future update. Thanks!
Author
Owner

@morph027 commented on GitHub (Apr 17, 2020):

It looks like this can't be set through the API, at least i don't see any related entry in PUT.

<!-- gh-comment-id:615033005 --> @morph027 commented on GitHub (Apr 17, 2020): It looks like this can't be set through the API, at least i don't see any related entry in PUT.
Author
Owner

@jhollowe commented on GitHub (Apr 21, 2020):

At that link looking at the PUT information, It appears the features parameter might be what you are looking for. I'm not sure if the API allows setting all the values you want. I would try using this parameter with the raw API if you can (try curl) and if that works check if Proxmoxer allows the same access.

You can also attempt to do what you want through the web interface and use developer tools (usually F12) to see what API calls it is making (in the Networks tab of the devtools).

If you can get the API to do what you want but not Proxmoxer, let us know, but it looks like the API itself might be limited in this aspect.

<!-- gh-comment-id:617336067 --> @jhollowe commented on GitHub (Apr 21, 2020): At that link looking at the PUT information, It appears the `features` parameter might be what you are looking for. I'm not sure if the API allows setting all the values you want. I would try using this parameter with the raw API if you can (try curl) and if that works check if Proxmoxer allows the same access. You can also attempt to do what you want through the web interface and use developer tools (usually F12) to see what API calls it is making (in the Networks tab of the devtools). If you can get the API to do what you want but not Proxmoxer, let us know, but it looks like the API itself might be limited in this aspect.
Author
Owner

@jhollowe commented on GitHub (May 15, 2020):

@jskii have you had a chance to see if this is something the API can do?

<!-- gh-comment-id:629483866 --> @jhollowe commented on GitHub (May 15, 2020): @jskii have you had a chance to see if this is something the API can do?
Author
Owner

@jski commented on GitHub (May 26, 2020):

Hi, I moved away from using proxmoxer for my project so I won't be tracking this any longer. Thanks for reaching out.

<!-- gh-comment-id:634100828 --> @jski commented on GitHub (May 26, 2020): Hi, I moved away from using proxmoxer for my project so I won't be tracking this any longer. Thanks for reaching out.
Author
Owner

@CompileNix commented on GitHub (May 26, 2020):

@jskii may i ask to what solution you moved to?

<!-- gh-comment-id:634122229 --> @CompileNix commented on GitHub (May 26, 2020): @jskii may i ask to what solution you moved to?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#8
No description provided.