Optimize Windows VM Runner
Optimizing Self-Hosted Windows VM Runner for Faster Startup and Response Times.
If a self-hosted Windows VM runner is slow to start or respond during pipeline execution, it may be due to long image pull times. To improve performance, repack the VM image with the required Docker image and use the new image in the runner pool.
AWS: Repacking the AMI
Launch a Windows VM using the Base AMI.
RDP into the Windows VM.
Connect to the instance via Remote Desktop Protocol (RDP).
Pull the Required Docker Image.
docker pull harness/drone-git:1.6.3Remove the EC2 Launch State File.
Delete the following file to prevent issues when creating the new AMI:
C:\ProgramData\Amazon\EC2Launch\state.run-onceCreate a New AMI from the Updated VM.

6. Update the Runner Pool - Use the new AMI in the self-hosted runner pool configuration to ensure faster VM startup and response times.
GCP: Repacking the Custom Windows Image
Create a Windows VM from an Existing Image.
Connect to the Windows VM
Use RDP to access the instance.
Pull the Required Docker Image
Prepare the VM for Image Creation
Stop the VM from the GCP Console.
Create a Custom Image from the Updated VM.

Use the New Image for Faster Startup
Update your runner configuration to use the new custom Windows image.

Last updated
Was this helpful?