Ensure that the specified guest operating system profile or template has operating system of Windows Server 2008 R2, and ...

Ensure that the specified guest operating system profile or template has operating system of Windows Server 2008 R2, and try the operation again. 
If you want to change the operating system to one other than Windows Server 2008 R2, remove server feature first, and then try again.