migrate_virtual_machine
Relocates a CloudStack virtual machine to another host using its VM ID and optional target host ID, supporting workload rebalancing or host maintenance.
Instructions
Migrate virtual machine to another host
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": {
"virtualmachineid": "<virtualmachineid>"
},
"name": "migrate_virtual_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | No | Target host ID | |
| virtualmachineid | Yes | VM ID to migrate |