Ensure that the specified guest operating system profile or template has operating system that is compatible to the server ...

Ensure that the specified guest operating system profile or template has operating system that is compatible to the server feature, and try the operation again. 
If you want to change the operating system, remove server feature first, and then try again.