Welcome to the Community,
if you are managing the hosts with vCenter Server, you need to upgrade vCenter first as an older vCenter Server version cannot manage newer ESXi hosts.
André
PS: For supported configurations see VMware Product Interoperability Matrix
Message was edited by: a.p.