This message was deleted.
# harvester
a
This message was deleted.
👀 1
m
@great-bear-19718 Could you help with this?
e
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.
g
https://docs.openshift.com/container-platform/4.16/virt/virtual_machines/creating_vms_custom/virt-creating-vms-by-cloning-pvcs.html Would something like this be possible? Windows installs, even with an answer file, can take a long time to complete. Ideally something like a Template would skip this process and maybe have a set of software already installed. I very much appreciate your reply.
g
you should be able to create the volume to a new vm image
template will not likely work since it again depends on cloud-init to configure the VM on first boot
e
Hi @gifted-night-57750, I think I now understand a bit better what you want, but again I'm answering only what I know, which may not be the best way to go about things. Since you're already with one foot in the Hashicorp ecosystem, you may want to take a look at Packer: https://www.packer.io/ Note that they suggest to use one of the hyperscaler cloud providers as virtualization platform to do this, but I know that it's possible to do it on a local Linux workstation with KVM/libvirt as well. This lets you create customized OS disk images, even for Windows. I've used it in the past in combination with an answer file to create a ready-to-boot Windows VM image with preinstalled software. Sort of like a golden image. Once you have that "golden image", you can upload it like any other OS image into Harvester and create your VMs using it. Since you've gone through the installation process already with Packer, the VM will boot straight up. This should be possible with the Terraform, since the Harvester Terraform provider can be used to manage VM images and VMs.