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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"node": "<node>",
"vmid": "<vmid>",
"ostemplate": "<ostemplate>",
"hostname": "<hostname>",
"storage": "<storage>"
},
"name": "create_lxc"
}
}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 |