create_container
Create an LXC container on a Proxmox node by specifying OS template, resources, network, and optional SSH keys or password.
Instructions
Create LXC container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net0 | No | Network config (e.g. "name=eth0,bridge=vmbr0,ip=dhcp") | |
| node | Yes | The node name | |
| swap | No | Swap in MB | |
| vmid | Yes | The container VMID | |
| cores | No | Number of CPU cores | |
| memory | No | Memory in MB | |
| rootfs | No | Root filesystem (e.g. "local-lvm:8") | |
| storage | No | Default storage | |
| hostname | No | Container hostname | |
| password | No | Root password | |
| ostemplate | Yes | OS template (e.g. "local:vztmpl/debian-12-standard_12.2-1_amd64.tar.zst") | |
| unprivileged | No | Create as unprivileged container | |
| ssh-public-keys | No | SSH public keys |