Book Image

VMware vSphere 5.1 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.1 Cookbook

By: Abhilash G B

Overview of this book

Amidst all the recent competition from Citrix and Microsoft, VMware's vSphere product line is still the most feature rich and futuristic product in the virtualization industry. Knowing how to install and configure vSphere components is important to give yourself a head start towards virtualization using VMware. If you want to quickly grasp the installation and configuration procedures, especially by using the new vSphere 5.1 web client, this book is for you.VMware vSphere 5.1 Cookbook will take you through all the steps required to accomplish a task with minimal reading required. Most of the tasks are accompanied with relevant screenshots with an intention to provide a visual guidance as well.The book has many useful recipes that will help you progress through the installation of VMware ESXi 5.1 and vCenter Server 5.1. You will learn to use Auto Deploy and Image Profiles to deploy stateless/stateful ESXi servers, configure failover protection for virtual machines using vSphere HA, configure automated load balancing using vSphere DRS and DPM. Finally, the book guides you through upgrading or patching ESXi servers using VMware Update Manager and also deploying and configuring vSphere Management Assistant (VMA) to be able to run scripts to manage the ESXi servers.
Table of Contents (20 chapters)
VMware vSphere 5.1 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.

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 vcenter51 -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 Maintenance
    
  4. Use the Apply-EsxImageProfile cmdlet to apply the Image Profile to the ESX Servers.

    Apply-ESXImageProfile -ImageProfile "Profile001" -Entities $esxhost
    
  5. Check whether the ESX Server is compliant with the created profile.

    Test-DeployRuleSetCompliance -VMHost $esxhost
    
  6. Assign...