set_vm_ip
Set a VM's IP address directly within Proxmox using the guest agent. Specify node, VM ID, interface, and IP, with optional gateway and netmask for precise network configuration.
Instructions
Set IP address for a VM (requires guest agent)
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>",
"interface": "<interface>",
"ip": "<ip>"
},
"name": "set_vm_ip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address | |
| node | Yes | Node where VM is located | |
| vmid | Yes | VM ID | |
| gateway | No | Gateway IP | |
| netmask | No | Netmask (e.g., '24') | |
| interface | Yes | Network interface name (e.g., 'eth0') |