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

Carrying out pre-upgrade checks before performing a vCenter upgrade


Although running the installation wizard to upgrade the vCenter Server is a straightforward process, there are a few pre-upgrade steps that have to be performed so that you can finish the upgrade process without any issues.

How to do it...

The following are the steps that you have to perform before doing the upgrade:

  1. Check the ESX server compatibility.

  2. Run Host Agent Pre-Upgrade Checker.

  3. Check database compatibility.

  4. Back up the SSL certificates.

  5. Enable the SSL certificate verification.

  6. Uninstall non-default software and its corresponding vCenter plugins.

Checking the ESX server compatibility

This check is very critical, make sure that this is tagged as a mandatory step in your upgrade action plan.

It is again a best practice to check the VMware Product Interoperability Matrixes web page for verification:

http://www.vmware.com/resources/compatibility/sim/interop_matrix.php

vCenter Server 5.1 can be used to manage ESX/ESXi 4.x and ESX 5.0.

Note

Note that ESX/ESXi 3.5 or earlier versions cannot be managed using vCenter 5.1.

Running VMware vCenter Host Agent Pre-Upgrade Checker

The VMware vCenter Host Agent Pre-Upgrade Checker feature is run to generate a report showing issues detected on the ESX servers, which in turn would prevent a successful upgrade of the vCenter Host Agent software on the ESXi servers. The component is listed under the Utilities section of the vCenter Server's installer home screen. The following are the steps to run the pre-upgrade checker:

  1. Click on Install to start the installation wizard. It will start downloading data from VMware's online repository to update its reference database.

  2. Once the database is upgraded, it will bring up the VMware vCenter Host Agent Pre-Upgrade Checker wizard. Click on Next to continue.

  3. On the next screen, select the DSN value corresponding to the vCenter Server, choose the appropriate credentials, and Click on Next.

  4. Once the connection to the vCenter Server has been successfully authenticated, then you will be prompted to choose preferred Scan Mode. There are two scan modes:

    • Standard Mode: This will scan all the ESX hosts managed by the vCenter

    • Custom Mode: This will let you choose the ESX hosts that you would like to scan

    I have chosen the Custom Mode radio button. Click on Next to continue.

  5. Select the ESX servers for a pre-upgrade check and click on Next.

  6. On the next screen, click on Run precheck to run the tests on the selected hosts. Then click on Next.

  7. On the next screen, if the ESX hosts has passed the check, then the Last Checked Status value will be Pass.

If any of the hosts failed the pre-check, then the issues reported should be addressed before you retry the upgrade.

Checking database compatibility

It is important that you verify whether the vCenter database in use is compatible with vCenter Server 5.

It is recommended to use the VMware Product Interoperability Matrixes page for verification. Also, refer to the table 4-6 in the Supported Database Upgrades section at page 51 in the vSphere 5.1 Upgrade guide for a complete list of supported database upgrades, available at the following link:

http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-51-upgrade-guide.pdf

Tip

The vCenter installation cannot be rolled back. So if the database is modified during a failed vCenter server installation, there is no going back. Thus, it is a good practice to back up the vCenter database before executing the installer. And, if you have vCenter installed on a VM, then you can back up the entire VM as well.

Backing up the SSL certificates

Make sure that you back up the Secure Sockets Layer (SSL) certificates from the folder:

  • On Windows 2003: %ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter\SSL

  • On Windows Vista or 2008 Server: %ALLUSERSPROFILE%\VMWare\VMware VirtualCenter\SSL

Enabling SSL certificate verification

By enabling SSL certificate verification, the vCenter Server will verify the validity of the SSL certificates of the ESX servers, when establishing SSL connections with them.

It can be enabled at the vCenter Server by navigating to Administration | vCenter Server Settings | SSL Settings, and selecting the vCenter requires verified host SSL certificates checkbox.

Uninstalling the non-default software and plugins

Since older versions of vCenter plugins will not be compatible with vCenter 5.1, it is recommended that you uninstall the non-default software and its corresponding plugins installed on the vCenter Server machine using Add/Remove Programs prior to the upgrade.

The non-default software and plugins include:

  • vCenter Update Manager

  • vCenter Converter

  • vCenter Guided Consolidation

These plugins can be installed and re-enabled once their corresponding software versions are upgraded.