Changing the OS type of a host that is already joined to the cluster is not supported. If it is necessary to change the OS type, perform the following steps as a workaround:
Remove the host from cluster.
Reinstall the OS.
Add the host to the cluster.