Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Applying an image profile to the host


The whole purpose of creating an image profile is to assign it to a host and apply it. This is particularly useful when performing upgrades or driver updates on auto-deployed ESX servers.

Getting ready

Read the recipes Downloading an ESXi offline bundle, Creating an image profile by cloning a predefined image profile, and Adding a VIB (software package) to an image profile as a preparation before you start learning how to apply an image profile to an ESXi host.

How to do it...

The following procedure will guide you through the steps required to assign and apply an image profile to an ESX server:

  1. Use the cmdlet Connect-VIServer to add the vCenter server to the PowerCLI session:

    Connect-VIServer -Server vcenterhost001 -User Administrator -Password pass123
    
  2. Use the Get-VMHost cmdlet to fetch a list of ESX servers in Maintenance mode:

    Get-VMHost –State Maintenance
    
  3. Save the output of the Get-VMHost command to a user-defined variable:

    $esxhost = Get-VMHost -State...