create_lxc
Creates a new LXC container on a Proxmox node from a template, with configurable resources, networking, and credentials.
Instructions
Create a new LXC container from a template. Requires confirming the configuration with the user before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Proxmox node name | |
| vmid | Yes | New CT ID (must be unused) | |
| ostemplate | Yes | Volume ID of the template, e.g. 'local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst' | |
| hostname | Yes | Hostname for the container | |
| storage | Yes | Storage ID for the rootfs, e.g. 'local-lvm' | |
| rootfsSizeGb | No | ||
| memoryMb | No | ||
| cores | No | ||
| password | No | ||
| sshPublicKey | No | ||
| net0 | No | name=eth0,bridge=vmbr0,ip=dhcp | |
| unprivileged | No | ||
| start | No |