Generally speaking, process of making Linux VM template is quite the same like making Windows VM template, but you have to install VMM agent.
- Deploy original Linux VM as it described in this article – Install CentOS Linux on Hyper-V Virtual Machine
- Prepare VM to become it as template – install VMM agent on it.
In this article I’ve described steps to install CentOS Linux Hyper-V VM.
If you have other Linux distributive, make sure it’s fully compliant with Hyper-V: https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/supported-linux-and-freebsd-virtual-machines-for-hyper-v-on-windows
- Download minimal ISO from CentOS website.