Create container
create_containerCreate an LXC container on a specified Proxmox node from a template, with configurable resources, network, and startup options.
Instructions
Create a new LXC container from a vztmpl template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Host node name | |
| swap | No | Swap in MiB | |
| vmid | Yes | New container ID | |
| cores | No | vCPU cores | |
| memory | No | Memory in MiB | |
| onboot | No | ||
| nesting | No | Enable LXC nesting | |
| storage | No | Storage pool for rootfs | |
| hostname | No | Container hostname | |
| password | No | Root password (will be redacted in logs) | |
| disk_size | No | Root disk in GB | |
| ostemplate | Yes | OS template volume ID (e.g. 'local:vztmpl/alpine-3.19-default_...tar.xz') | |
| unprivileged | No | Create as unprivileged container | |
| network_bridge | No | Network bridge | vmbr0 |
| ssh_public_keys | No | URL-encoded SSH public keys for root | |
| start_after_create | No |