Windows First-Boot Script Execution in OpenNebula

Hi Team

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.

Any examples or documentation would be helpful!

Thanks!

Hi Team,

Is there any suggestions for this?

Hello @Senthil_Kumar_M,

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.

Relevant references:

This is generally the supported way to execute custom scripts on first boot in OpenNebula Windows guests.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.