You upload an ISO. You create a VM. You boot that VM with the ISO. You install the OS like it were physical hardware. You do basic configuration, updates,etc to the OS. Power off. Right click on it and convert to template.
To understand how this works you need to find some YouTube videos or...