create_container
Create an unprivileged Proxmox container from a template, set resources and networking, and optionally add an SSH public key; the user enters the root password in the approval window.
Instructions
Create an unprivileged container from a template (see list_install_media). Its root password is typed by the USER in Proxmox Controller's window (you never give or see it); an SSH public key can be added.
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": {
"host": "<host>",
"hostname": "<hostname>",
"template": "<template>",
"reason": "<reason>"
},
"name": "create_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | dhcp, or like 192.168.1.50/24. | |
| host | Yes | The host's id, from list_hosts. | |
| node | No | ||
| vmid | No | ||
| cores | No | ||
| start | No | ||
| bridge | No | ||
| reason | Yes | Why you are doing this, in a sentence. The user sees it in the approval window and in the log. | |
| disk_gb | No | ||
| gateway | No | ||
| nesting | No | ||
| storage | No | ||
| hostname | Yes | ||
| swap_mib | No | ||
| template | Yes | A template's volid. | |
| memory_mib | No | ||
| start_at_boot | No | ||
| ssh_public_key | No |