Hi
@gifted-night-57750,
unfortunately, the Harvester Terraform provider currently doesn't support vGPU devices. It is being worked on, but I can't tell you a timeline.
I'm not sure I completely understand your question about VM templates, could you elaborate a bit more?
VM templates in Harvester are simply pre-defined manifests, which can help speed up the creation of VMs. It works a bit like EC2 instance types, but you can of course define your own. This helps a lot, e.g. if you always need to add an additional virtual cdrom drive to load virtio drivers from for your guest OS, or if you want to create lots of VMs with the same CPU/Memory/disk/network device configuration.
I'm not particularly familiar with Windows VMs, but I know that there is an [automatic installation method for Windows](
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/update-windows-[…]and-scripts-create-your-own-answer-file-sxs?view=windows-11) using an answer file for the installer. I'm not sure if that's the best way to go about it though, so maybe you should consult with Microsoft specialist for that.
What you're looking for is probably some sort of combination of VM templates and a "golden" image for Windows VMs, from which you can instantiate VMs at will. Microsoft supports [creating such a golden image](
https://learn.microsoft.com/en-us/azure/virtual-desktop/set-up-customize-master-image) at least on Azure, but again my knowledge of Microsoft product details is limited here, you'll have to research yourself if there is a mechanism to do this for other virtualization environments as well.
Hope this helps.