Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vSphere 5.1 Cookbook

You're reading from   VMware vSphere 5.1 Cookbook If you prefer practice to theory then this is the ideal book for learning how to install and configure VMware vSphere components. Packed with recipes, it's a hands-on tutorial and reference guide for this unbeatable virtualization product.

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849684026
Length 466 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Abhilash G B Abhilash G B
Author Profile Icon Abhilash G B
Abhilash G B
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

VMware vSphere 5.1 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Upgrading to vSphere 5.1 FREE CHAPTER 2. Performing a Fresh Installation of vSphere 5.1 3. vSphere Auto Deploy 4. ESXi Image Builder 5. Creating and Managing VMFS Datastores 6. Managing iSCSI and NFS Storage 7. Profile-driven Storage and Storage I/O Control 8. Configuring the vSphere Network 9. Creating and Managing Virtual Machines 10. Configuring vSphere HA 11. Configuring vSphere DRS, DPM, and VMware EVC 12. Upgrading and Patching using vSphere Update Manager 13. Using vSphere Management Assistant (vMA 5.1) 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime