To make 6.0 host profiles to 7.0 Upgrade compatible:
Use Recommended Host Profiles Upgrade workflows from vSphere 6.7 Documentation
To make host profiles to 6.7 Upgrade compatible:
Upgrade the Host profile using following environment:
- ESXi host(s) version - 5.1 or 5.5
- vCenter server version - 6.0 or 6.5
- Host Profiles version - 5.1 or 5.5
Notes:
- You can export the 5.1/5.5 Host Profiles before the upgrade process to compare the Host Profiles. Export host customization is not available in vCenter Server 6.0, but is available in version 6.5. You can export the answer file values to a .csv file before proceeding with the Host Profiles upgrade.
- To find the Host Profiles that are not compliant with vSphere 6.7, run this PowerCLI command:
Get-VMHostProfile | % { $_.ExtensionData.Config.ApplyProfile.ProfileVersion +"`t"+ $_.Name }
Or
Get-VMHostProfile | ? { $_.ExtensionData.Config.ApplyProfile.ProfileVersion -like "5*" }
- A list of unsupported Host Profiles can be found in this log file:
/var/log/vmware/upgrade/vcdb_req.err
There are two approaches to upgrade host profiles depending on if the ESXi hosts are stateful or stateless.
- For stateful ESXi environments
- For stateless ESXi environments
For stateful ESXi environments
Assumption
- If you have vSphere 6.0.0/6.5.0/6.7 hosts in the cluster and 6.0 profile is attached to the hosts.
- vCenter is at 6.5.0/6.7.0
Steps
- Upgrade all ESXi 6.0 hosts in the cluster to version 6.5/6.7.
- Remediate the ESXi hosts in the cluster against the host profile with version 6.0.
All host profile settings are applied.
- If you have an ESXi 6.5 host in the cluster, extract a new host profile from it. Otherwise extract a new host profile from an ESXi 6.7 host.
Note: There are some changed parameters for the host profile policy. For more information, see Answer File Field and Host Profile Extraction.
- Attach the host profile with version 6.5 / 6.7 to the cluster.
- Remediate the cluster against the host profile with version 6.5 / 6.7.
- Remove all host profiles with version less than 6.5.0
- Proceed with vCenter upgrade to version 7.0.
For stateless ESXi environments
Assumption :
- If you have 6.0.0 hosts in the cluster and 6.0.0 profile is attached to the hosts.
- vCenter is at 6.5.0/6.7.0
Steps:
- Create a rule-1 with 6.5.0/6.7.0(if VC is at 6.7.0) image profile. Active it for all the hosts in the cluster.
- Boot one of the 6.0.0 host using rule. Host will boot from 6.5.0/6.7.0 image profile (rule)and profile(already attached to the cluster)
- Extract a profile-2 from this upgraded host-1 which is now at version 6.5.0/6.7.0
- Edit the rule and associate the profile with it.
- Boot remaining 6.0.0 hosts in the inventory. This will upgrade all the hosts to 6.5.0/6.7.0.
Result: If hosts are in maintenance mode then follow the below steps.
- Attach the profile to the cluster. Customization/Answer file data will automatically get populated.
- Remediate the cluster with the attached profile.
- Remove the host profiles with versions less than 6.5.0 from the VC inventory.
- Proceed with VC upgrade to version 7.0
NOTE - If the unsupported Host profile is not being used anymore, it may be deleted from the vCenter