I need to run a PowerShell script automatically on first boot of Windows VMs deployed from an OpenNebula image. The script configures the some monitoring agent with the correct server IP.
Basically i dont want to add in windows template start scripts.
Does OpenNebula support Windows contextualization scripts? What’s the recommended approach for executing scripts on Windows VM first boot?
I’ve tried Task Scheduler and sysprep/unattend.xml without success.
For running a PowerShell script on first boot in Windows VMs, you’ll want to use the official Windows contextualization mechanism in OpenNebula rather than Task Scheduler.