create_container
Create a Proxmox LXC container with specified template, CPU, memory, disk, and network. Optionally start it and add SSH public keys for root.
Instructions
Create a new LXC container.
Args: vmid: New container ID. Must not already exist. hostname: Container hostname. ostemplate: Template volume, e.g. "local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst". Find available templates with storage_content(storage="local", content="vztmpl"). storage: Storage for the root filesystem. rootfs_gb: Root filesystem size in gigabytes. memory_mb: RAM in megabytes. cores: CPU cores. bridge: Network bridge for net0. ip: Address for net0 — "dhcp" or CIDR like "192.168.1.50/24". unprivileged: Run unprivileged. Leave true unless you need host device access. ssh_public_keys: Public keys to install for root. Prefer this over a password. start: Start the container once created. extra: Any other Proxmox container config key, e.g. {"nameserver": "1.1.1.1"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | dhcp | |
| vmid | Yes | ||
| cores | No | ||
| extra | No | ||
| start | No | ||
| bridge | No | vmbr0 | |
| storage | No | local-lvm | |
| hostname | Yes | ||
| memory_mb | No | ||
| rootfs_gb | No | ||
| ostemplate | Yes | ||
| unprivileged | No | ||
| ssh_public_keys | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||