create_proxmox_lxc
Create a new Proxmox LXC container with custom resources, OS template, and optional SSH keys. Specify node, ID, hostname, memory, cores, and storage.
Instructions
Create a new LXC container on Proxmox
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name | |
| vmid | Yes | Container ID (must be unique) | |
| hostname | Yes | Container hostname | |
| ostemplate | No | Template (e.g., 'local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst') | local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst |
| storage | No | Storage for rootfs | local-lvm |
| memory | No | RAM in MB | |
| swap | No | Swap size in MB | |
| cores | No | Number of CPU cores | |
| rootfs_size | No | Root filesystem size in GB | |
| password | No | Root password | |
| ssh_public_keys | No | SSH public keys to add to the container (one per line) | |
| unprivileged | No | Create as unprivileged container (default: true, recommended for security) | |
| start | No | Start container after creation | |
| host | No | Proxmox host (optional) |