Use vSphere Auto Deploy to reprovision ESXi hosts with a different image profile or a different host profile.
vSphere Auto Deploy supports multiple reprovisioning options. You can perform a simple reboot or reprovision with a different image profile or a different host profile.
A first boot using vSphere Auto Deploy requires that you set up your environment and add rules to the rule set. See Install and Configure vSphere Auto Deploy.
The following reprovisioning operations are available.
- Simple reboot.
- Reboot of hosts for which the user answered questions during the boot operation.
- Reprovision with a different image profile.
- Reprovision with a different host profile.
Reprovision Hosts with Simple Reboot Operations
You can reprovisions ESXi hosts with the image profile, host profile, custom script, and vCenter Server location assigned during first boot.
Prerequisites
- Verify that the setup you performed during the first boot operation is in place. See Provision a Host (First Boot).
- Verify that all associated items like are available. An item can be an image profile, host profile, custom script or vCenter Server inventory location.
- Verify that the host has the identifying information (asset tag, IP address) it had during previous boot operations.
Procedure
- Place the host in maintenance mode.
Host Type Action Host is part of a DRS cluster VMware DRS migrates virtual machines to appropriate hosts when you place the host in maintenance mode. Host is not part of a DRS cluster You must migrate all virtual machines to different hosts and place each host in maintenance mode. - Reboot the host.
Results
The host shuts down. When the host reboots, it uses the image profile that the vSphere Auto Deploy server provides. The vSphere Auto Deploy server also applies the host profile stored on the vCenter Server system.
Use PowerCLI To Reprovision a Host
You can use vSphere Auto Deploy to reprovision a host with a new image profile in a PowerCLI session.
Several options for reprovisioning hosts exist.
- If the VIBs that you want to use support live update, you can use an esxcli software vib update command. In that case, you must also update the rule set to use an image profile that includes the new VIBs.
- During testing, you can apply an image profile to an individual host with the Apply-EsxImageProfile cmdlet and reboot the host so the change takes effect. The Apply-EsxImageProfile cmdlet updates the association between the host and the image profile but does not install VIBs on the host.
- In all other cases, use this procedure.
Prerequisites
-
Verify that the image profile you want to use to reprovision the host is available. Use vSphere ESXi Image Builder in a PowerCLI session. See Customizing Installations with vSphere ESXi Image Builder.
- Verify that the setup you performed during the first boot operation is in place.
Procedure
Reprovision a Host with a New Image Profile by Using the vSphere Client
You can use vSphere Auto Deploy to reprovision a host with a new image profile with the vSphere Client by changing the rule that the host corresponds to and activating the rule.
Prerequisites
- Verify that the image profile you want to use to reprovision the host is available. See Create an Image Profile.
- Verify that the setup you performed during the first boot operation is in place.
Procedure
Update the Host Customization in the vSphere Client
If a host required user input during a previous boot, the answers are saved with the vCenter Server. If you want to prompt the user for new information, you must remediate the host.
Prerequisites
Attach a host profile that prompts for user input to the host.
Procedure
Results
The host customization is saved and takes effect the next time you boot the host.