[GH-ISSUE #148] How to create a container? #76

Closed
opened 2026-02-27 15:46:18 +03:00 by kerem · 2 comments
Owner

Originally created by @alessiodam on GitHub (Nov 7, 2023).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/148

Originally assigned to: @jhollowe on GitHub.

There's nowhere documented on how to create a container.

Originally created by @alessiodam on GitHub (Nov 7, 2023). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/148 Originally assigned to: @jhollowe on GitHub. There's nowhere documented on how to create a container.
kerem 2026-02-27 15:46:18 +03:00
Author
Owner

@jhollowe commented on GitHub (Nov 10, 2023):

you will need to look at the PVE docs for all the options, but the basic fomat will be:

container_config = {"ostemplate":"pve_storage_name:name_of_template.tar.zst", "vmid": 1234}
prox.nodes("example-node").lxc.post(data=container_config)
<!-- gh-comment-id:1806575616 --> @jhollowe commented on GitHub (Nov 10, 2023): you will need to look at the [PVE docs](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc) for all the options, but the basic fomat will be: ```python container_config = {"ostemplate":"pve_storage_name:name_of_template.tar.zst", "vmid": 1234} prox.nodes("example-node").lxc.post(data=container_config) ```
Author
Owner

@alessiodam commented on GitHub (Nov 14, 2023):

Thanks!

<!-- gh-comment-id:1810971647 --> @alessiodam commented on GitHub (Nov 14, 2023): Thanks!
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#76
No description provided.