Agent that executes Hyper-V actions with PowerShell and communicates with the Controller over AMQP (RabbitMQ).
Place the helper binary under src/powershell/bin:
cd tools/cloudinit-iso/src && go build && mv ./openhvx-cloudinit-iso.exe ../../../src/powershell/binCreate src/config.json before starting the service. Example:
{
"agentId": "HOST-OPENHVX-HYPERV-001",
"rabbitmqUrl": "amqp://guest:[email protected]:5672/",
"heartbeatIntervalSec": 60,
"inventoryIntervalSec": 120,
"basePath": "D:\\DATA",
"capabilities": [
"inventory",
"vm.power",
"vm.create",
"vm.delete",
"echo",
"console",
"vm.edit"
]
}Adjust the AMQP URL, base path, and capabilities to fit your environment.
The agent publishes operational telemetry to the RabbitMQ topic exchange agent.telemetry:
- Heartbeats every
heartbeatIntervalSecto routing keyheartbeat.<agentId>with version, host, and capabilities. - Inventory snapshots every
inventoryIntervalSecto routing keyinventory.<agentId>; the body contains the raw inventory payload produced by the agent. Make sure the exchange exists on your broker if you manage RabbitMQ manually.