pve_create_container
Create a new LXC container in Proxmox VE by specifying node, container ID, OS template, and optional configuration parameters.
Instructions
Create a new LXC container
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name | |
| vmid | Yes | Container ID | |
| ostemplate | Yes | OS template (e.g., local:vztmpl/ubuntu-22.04.tar.zst) | |
| hostname | No | Hostname | |
| password | No | Root password | |
| storage | No | Root storage | |
| rootfs | No | Root filesystem config | |
| memory | No | Memory in MB | |
| swap | No | Swap in MB | |
| cores | No | CPU cores | |
| cpulimit | No | CPU limit (0-128) | |
| cpuunits | No | CPU weight | |
| net0 | No | Network device 0 | |
| mp0 | No | Mount point 0 | |
| features | No | Features (nesting=1, etc.) | |
| unprivileged | No | Unprivileged container | |
| onboot | No | Start on boot | |
| startup | No | Startup order | |
| protection | No | Protection | |
| pool | No | Resource pool | |
| description | No | Description | |
| tags | No | Tags | |
| ssh-public-keys | No | SSH public keys | |
| start | No | Start after creation |