Build a Hyper-V template w/ SQL Server 2016 pre-installed
From https://docs.microsoft.com/en-us/sql/database-engine/install-windows/rename-a-computer-that-hosts-a-stand-alone-instance-of-sql-server :

sp_dropserver &lt;old_name&gt;;  
GO  
sp_addserver &lt;new_name&gt;, 'local';
GO  


Restart the instance of SQL Server.

For a named instance:

sp_dropserver &lt;old_name\instancename&gt;;  
GO  
sp_addserver &lt;new_name\instancename&gt;, 'local';
GO  


Restart the instance of SQL Server.

Note you cannot rename the instance part of the name via this method.