pve_create_lxc
Provision a new Proxmox VE LXC container from an OS template tarball with configurable CPU, memory, disk, storage, network, and optional SSH key.
Instructions
Create a new LXC container from an OS template tarball.
Args: vmid: Unique Container ID (e.g. 255). hostname: Hostname for the container. ostemplate: Storage template path (e.g. 'local:vztmpl/ubuntu-22.04-standard_22.04-1_amd64.tar.zst'). cores: Number of assigned CPU cores. memory_mb: Memory in megabytes. disk_gb: Root filesystem disk size in gigabytes. storage: Target storage pool (e.g. 'local-lvm' or 'fast-tier'). password: Root user password. ssh_public_key: Optional SSH public key to inject into /root/.ssh/authorized_keys. net0: Network interface configuration string. unprivileged: If True, provisions container in an unprivileged user namespace (recommended). node: Target node name.
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": {
"vmid": "<vmid>",
"hostname": "<hostname>",
"ostemplate": "<ostemplate>"
},
"name": "pve_create_lxc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net0 | No | name=eth0,bridge=vmbr0,firewall=1,ip=dhcp | |
| node | No | ||
| vmid | Yes | ||
| cores | No | ||
| disk_gb | No | ||
| storage | No | local-lvm | |
| hostname | Yes | ||
| password | No | ||
| memory_mb | No | ||
| ostemplate | Yes | ||
| unprivileged | No | ||
| ssh_public_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |