VMware vSphere 5.1 Cookbook - Abhilash G B - E-Book

VMware vSphere 5.1 Cookbook E-Book

Abhilash G B

0,0
39,59 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 349

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

VMware vSphere 5.1 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Upgrading to vSphere 5.1
Introduction
Upgrading the vCenter Server
Upgrading the ESXi server
vSphere Web Client
Carrying out pre-upgrade checks before performing a vCenter upgrade
How to do it...
Checking the ESX server compatibility
Running VMware vCenter Host Agent Pre-Upgrade Checker
Checking database compatibility
Backing up the SSL certificates
Enabling SSL certificate verification
Uninstalling the non-default software and plugins
Performing an in-place upgrade of vCenter Server
How to do it...
How it works...
There's more...
Creating a table space for SSO on a SQL instance
How to do it...
How it works...
Creating DB users for the SSO database
How to do it...
How it works...
Upgrading a 32-bit vCenter Server to vCenter 5.1
How to do it...
Backing up the settings from a 32-bit vCenter Server
Restoring the configuration on the new machine
How it works...
Upgrading to ESXi 5.1
How to do it...
How it works...
Installing vSphere Web Client
How to do it...
There's more...
Upgrading VMware Tools
How to do it...
How it works...
There's more...
Upgrading the virtual machine hardware
How to do it...
How it works...
2. Performing a Fresh Installation of vSphere 5.1
Introduction
VMware vCenter Server Appliance (vCSA)
Installing vCenter 5.1
Getting ready
How to do it...
Deploying a VMware vCenter Server Appliance (vCSA)
How to do it...
How it works...
There's more...
Preparing vCenter Server Appliance for first use
Getting ready
How to do it...
Installing the vCenter Server Appliance update
How to do it...
How it works...
Upgrading a vCenter Server Appliance
How to do it...
How it works...
Installing ESXi 5.1
How to do it...
Performing a scripted install of the ESXi server
How to do it...
How it works...
There's more...
3. vSphere Auto Deploy
Introduction
Installing the Auto Deploy server
How to do it…
Configuring a TFTP server with Auto Deploy files
How to do it…
How it works…
There's more…
Configuring the DHCP server for PXE boot
How to do it…
How it works…
Testing the PXE boot configuration
How to do it…
How it works…
Preparing VMware PowerCLI for first use
How to do it…
How it works…
Downloading an ESXi Offline Bundle
How to do it…
Adding the Offline Bundle to the Auto Deploy server
How to do it…
How it works…
Choosing an ESXi Image to deploy
How to do it…
How it works…
Creating a Host Profile
How to do it…
Creating a deploy rule
How to do it…
How it works…
Activating a deploy rule
How to do it…
How it works…
There's more…
Testing Auto Deploy
How to do it…
How it works…
First boot
Subsequent boot
Enabling Stateless Caching
How to do it…
How it works…
Performing an Auto Deploy stateful install
How to do it…
How it works…
4. ESXi Image Builder
Introduction
Offline Bundle
VIB (vSphere Installation Bundle)
Image Profiles
Creating an Image Profile by cloning an existing one
How to do it…
Verifying the existence of a Software Depot in the current session
Adding a Software Depot
Listing available Image Profiles
Cloning an Image Profile to form a new one
How it works…
See also
Removing an Image Profile
How to do it…
Adding a VIB (software package) to an Image Profile
How to do it…
Verifying whether the Image Profile is read-only
Adding the driver's Offline Bundle to the PowerCLI
Checking the availability of the needed software package (VIB)
Adding the VIB to the Image Profile
Verifying whether the VIB has been added to the Image Profile
Exporting an Image Profile as an ISO or Offline Bundle
How to do it…
Creating an Image Profile from scratch
How to do it…
There's more...
See also
Applying an Image Profile to the host
How to do it…
How it works…
5. Creating and Managing VMFS Datastores
Introduction
Viewing the LUNs presented to an ESXi host
How to do it...
Using the vSphere Web Client to view LUNs
Using the ESXi Console to view the LUN information
Viewing the datastores seen by the ESXi host
How to do it...
Using the vSphere Web Client to view LUNs
Using the ESXi Console to view the datastores
Viewing the multipathing information of a LUN
How to do it...
Using the vSphere Web Client GUI
Using the esxcfg-mpath
Creating a VMFS datastore
How to do it...
Using the New Datastore wizard
Using vmkfstools
There's more…
Expanding/growing a VMFS datastore
How to do it...
Using the Increase Datastore Capacity wizard
Using vmkfstools
How it works...
Extending a VMFS datastore
Getting ready
How to do it...
Using the Increase Datastore Capacity wizard
Using vmkfstools
How it works...
There's more…
Unmounting a VMFS datastore
How to do it...
Using the vSphere Web Client GUI to unmount
Using esxcli to unmount
Mounting a VMFS datastore
How to do it...
Using the vSphere Web Client UI to mount
Using esxcli to mount an unmounted volume
Deleting a VMFS datastore
How to do it...
Upgrading VMFS-3 to VMFS-5
How to do it...
Upgrading the VMFS using vSphere Web Client GUI
Upgrading using vmkfstools
How it works...
Mounting VMFS on a snapshot LUN
How to do it...
Using the New Datastore wizard
Using ESXi CLI
How it works...
Resignaturing VMFS on a snapshot LUN
How to do it...
Using the New Datastore wizard
Using ESXi CLI
How it works…
Masking paths to a LUN
How to do it…
Unmasking paths to a LUN
How to do it…
Creating a datastore cluster
How to do it
How it works…
Enabling Storage DRS
How to do it…
How it works…
Initial placement
Balancing space utilization
Balancing I/O load
There's more…
6. Managing iSCSI and NFS Storage
Introduction
Adding the software iSCSI adapter
How to do it...
How it works...
Creating a new VMkernel interface for iSCSI or NFS
How to do it...
There's more
Preparing the vSphere network for iSCSI multipathing
How to do it...
There's more...
Binding VMkernel interfaces to the software iSCSI adapter
How to do it...
Adding an iSCSI target server to the software iSCSI adapter
How to do it...
How it works...
Creating an NFS datastore
Getting ready
How to do it...
How it works...
7. Profile-driven Storage and Storage I/O Control
Introduction
Profile-driven storage
Storage I/O Control (SIOC)
Adding a storage provider
Getting ready
How to do it...
How it works...
There's more...
Creating user-defined storage capabilities
How to do it...
Mapping user-defined storage capabilities to datastores
How to do it...
Creating a VM storage profile and enabling it
How to do it...
Assigning storage profiles to virtual machine disks and checking compliance
How to do it...
Enabling Storage I/O Control (SIOC)
How to do it...
How it works...
Modifying disk shares on a VM
How to do it...
How it works...
8. Configuring the vSphere Network
Introduction
Creating a vSphere Standard Switch
How to do it...
Using vSphere Web Client
Using esxcfg-vswitch
Deleting a vSphere Standard Switch
How to do it...
Using the vSphere Web Client
Using esxcfg-vswitch
Creating a VMkernel interface on a vSphere Standard Switch
How to do it...
Using vSphere Web Client
Using esxcfg-vswitch and esxcfg-vmknic
There's more…
See also
Deleting a port group
How to do it...
Using vSphere Web Client
Using esxcfg-vswitch
Adding an uplink to a vSphere Standard Switch
How to do it...
Using vSphere Web Client
Using esxcfg-vswitch
Creating a vSphere Distributed Switch
How to do it...
How it works...
Creating a distributed port group
How to do it...
How it works...
Adding hosts to a vSphere Distributed Switch
How to do it...
Mapping a physical adapter (vmnic) to a dvUplink
How to do it...
Using the vSphere Web Client
Using esxcfg-vswitch
How it works...
Migrating virtual machine network from vSphere Standard Switch to vSphere Distributed Switch
How to do it...
How it works...
There's more…
Migrating management and VMkernel interfaces between vSphere Standard and Distributed Switches
How to do it...
See also
Creating a VMkernel interface on a vSphere Distributed Switch
How to do it...
Exporting the vSphere Distributed Switch configuration
How to do it...
How it works...
See also
Restoring the vSphere Distributed Switch configuration
How to do it...
How it works...
Importing a vSphere Distributed Switch into the datacenter from a backup
How to do it...
How it works...
Enabling port mirroring on a DSwitch
How to do it...
How it works...
Enabling NetFlow on a DSwitch
How to do it...
How it works...
See also
Configuring private VLANs (PVLANs) on a DSwitch
How to do it...
How it works...
9. Creating and Managing Virtual Machines
Introduction
The virtual machine components
Files that back a virtual machine
The virtual machine configuration file
The virtual machine BIOS file
Virtual machine enhancements available with vSphere 5.1
Creating a virtual machine
How to do it...
Creating a new hard disk for a virtual machine
Virtual machine disk provisioning methods
Virtual machine disk modes
How to do it...
Adding an existing hard disk to a virtual machine
How to do it...
Attaching RDM to a virtual machine
How to do it...
Mapping a virtual machine's vNIC to a different port group
How to do it...
How it works...
Adding a new virtual network adapter to a virtual machine
How to do it...
Creating a virtual machine snapshot
How to do it...
How it works...
There's more...
Deleting a virtual machine snapshot
How to do it...
How it works...
See also
Reverting to a current virtual machine snapshot
How to do it...
How it works...
Going to a virtual machine snapshot
How to do it...
How it works...
Consolidating snapshots
How to do it...
How it works...
See also
Exporting a virtual machine
How to do it...
How it works...
10. Configuring vSphere HA
Introduction
Enabling vSphere HA on a cluster
How to do it...
How it works...
See also
Setting host isolation response for an HA cluster
How to do it...
See also
Setting VM restart priority for an HA cluster
How to do it...
Configuring VM monitoring
How to do it...
How it works...
Configuring datastore heartbeating
How to do it...
How it works...
Disabling host monitoring
How to do it...
How it works...
Configuring vSphere HA admission control
How to do it...
How it works...
Failover capacity by static number of hosts
Failover capacity by reserving a percentage of the cluster resources
Dedicated failover hosts
See also
Configuring a VM to override host monitoring and VM monitoring settings
How to do it...
11. Configuring vSphere DRS, DPM, and VMware EVC
Introduction
Enabling vSphere DRS on a cluster
How to do it…
How it works…
Choosing a DRS automation level
How to do it…
How it works…
Overriding the cluster automation level for a VM
How to do it…
How it works…
Setting a migration threshold
How to do it…
How it works…
Creating host and VM DRS groups
How to do it…
Creating virtual machines to host affinity rules
How to do it…
How it works…
Must rules:
Should rules:
Creating "Inter-VM" affinity/anti-affinity rules
How to do it…
How it works…
Keep virtual machines together:
Separate virtual machines:
Configuring vSphere Distributed Power Management (DPM)
How to do it…
How it works…
Enabling power management on a per-host level
How to do it…
Configuring VMware EVC (Enhanced vMotion Compatibility)
How to do it…
How it works…
See also
12. Upgrading and Patching using vSphere Update Manager
Introduction
Preparing a database for vSphere Update Manager
How to do it...
How it works...
See also
Installing vSphere Update Manager
How to do it...
How it works...
Installing the vSphere Update Manager plugin
How to do it...
Adding a download source
How to do it...
How it works...
Creating a baseline
How to do it...
How it works...
Importing ESXi Images
How to do it...
How it works...
Creating a host baseline group
How to do it...
Creating a VM and VA baseline group
How to do it...
Remediating a host or a cluster
How to do it...
How it works...
Host maintenance mode options for remediation
Cluster maintenance mode options for remediation
Remediating a VM or a VA
How to do it...
How it works...
Staging patches
How to do it...
How it works...
Installing the Update Manager Download Service (UMDS)
How to do it...
Configuring UMDS and downloading data
How to do it...
Creating a shared repository
How to do it...
How it works...
Using a shared repository
How to do it...
13. Using vSphere Management Assistant (vMA 5.1)
Introduction
Deploying the vMA appliance
How to do it…
How it works…
Preparing vMA for first use
How to do it…
How it works…
Configuring vMA to join an existing domain
How to do it…
Adding vCenter to vMA with AD authentication
How to do it…
How it works…
Adding vCenter to vMA with fastpass (fpauth) authentication
How to do it…
How it works…
Adding an ESXi host to vMA
How to do it…
How it works…
Reconfiguring an added target server
How to do it…
Changing the authentication policy
Changing or recovering a user
How it works…
Running CLI command on target servers
How to do it…
Method 1 – Issue commands on the default target
Method 2 – Issue commands by specifying a target server
Method 3 – Issuing commands against a vCenter Server added as the target
Index

VMware vSphere 5.1 Cookbook

VMware vSphere 5.1 Cookbook

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: July 2013

Production Reference: 1040713

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-84968-402-6

www.packtpub.com

Cover Image by J.Blaminsky (<[email protected]>)

Credits

Author

Abhilash GB

Reviewers

Edvaldo Alessandro Cardoso

Christian Mohn

Chris Wahl

Acquisition Editors

Saleem Ahmed

Rukhsana Khambatta

Lead Technical Editor

Arun Nadar

Technical Editors

Ruchita Bhansali

Sampreshita Maheshwari

Nitee Shetty

Hardik B. Soni

Project Coordinator

Arshad Sopariwala

Proofreaders

Stephen Copestake

Dirk Manuel

Indexer

Hemangini Bari

Graphics

Abhinash Sahu

Production Coordinator

Arvindkumar Gupta

Cover Work

Arvindkumar Gupta

About the Author

Abhilash GB specializes in the area of Datacenter Virtualization and Cloud Computing. He is also a VMware Certified Advanced Professional in Datacenter Administration (VCAP-DCA #382).

He is currently working as a VMware Specialist at Hewlett-Packard, Bangalore.

He has nine years of IT experience, which includes over 6 years on VMware products and technologies.

His primary areas of interest include Datacenter Virtualization and Cloud Solutions using VMware technologies.

I would like to dedicate this book to my wife and my parents. Without their patience and support this book would not have been possible.

A big thanks to Dilip Venkatesh, Acquisition Editor, Packt Publishing, for giving me an opportunity to debut my first book. Special thanks to the Lead Technical Editors (Unnati Shah and Arun Nadar), the Project Coordinators (Vishal Bodwani and Arshad Sopariwala), and the Technical Reviewers (Christian Mohn, Chris Wahl, and Alessandro Cardoso) who helped me deliver this book.

About the Reviewers

Alessandro Cardoso is a virtualization and management enthusiast, author, and evangelist. He is a subject matter expert in cloud computing, virtualization, and management, and works at Insight as a Practice Manager for Cloud and Emerging technologies, leading award-winning IT projects in key areas involving Cloud, Virtualization, Security, Messaging, and Hosting within the IT, Health, and Government industries.

A VMware VCP and Microsoft Most Valuable Professional in virtualization since 2009, his product skill set includes Microsoft infrastructure technologies such as O365, Hyper-V, System Center, Windows Server, SQL Server, Active Directory, Exchange, SharePoint, IIS, and Forefront, and he also has sound knowledge of Quest Migration Manager, Linux Infrastructure, Networking, Security Solutions, and VMware in complex and large scenarios.

He is a well-known speaker at IT-related events and is the author of the book System Center Virtual Machine Manager 2012 and was the technical reviewer of the Windows 2012 Hyper-V Cookbook.

You can also check his personal blog where he talks about Microsoft Virtualization and System Center at http://virtualisationandmanagement.wordpress.com or can follow him on twitter at @edvaldocardoso.

I would like to thank my wife Daniele and my kids Matheus, Lucas, and Nicole for the support and for being my inspiration. I love you all.

Christian Mohn is currently employed as a senior consultant at EVRY Consulting AS in Norway, and is currently serving as Tech Champion for Server Virtualization.

He has a background as an IT-professional since 1997, and has worked both as a consultant and as an infrastructure manager for a large Norwegian shipping company.

He is also one of the co-hosts of the vSoup Virtualization Podcast. Christian was awarded the VMware vExpert title for both 2011 and 2012.

He wrote the foreword in Building End-User Computing Solutions with VMware View, which is available at http://www.lulu.com/shop/mike-laverick-and-barry-coombs/building-end-user-computing-solutions-with-vmware-view/ebook/product-20368612.html.

Chris Wahl has over 13 years of IT experience in enterprise infrastructure design, implementation, and administration within a diverse set of business and regulatory requirements, such as HIPPA, SOX, PCI-DSS, ITIL, and ePHI. He has held architect and engineer roles in a variety of virtualization, converged infrastructure, and private cloud based engagements, while working with high-performance technical teams in tiered data center environments.

He has over 30 active industry certifications, including the VMware Certified Design Expert (VCDX #104), and is a recognized VMware vExpert. Additionally, he holds an active "Master" rank on the VMware Technology Network (VMTN) as a contributor and forum moderator. Chris also volunteers as a Leader in the Chicago VMware User Group (VMUG) to help spread education and technical knowledge of VMware's products and related architecture.

As an Independent Blogger for the award winning "Wahl Network" Chris focuses on creating content that revolves around virtualization, converged infrastructure, and evangelizing products and services that benefit the technology community. Over the past three years, he has published over 200 articles and was voted the "Favorite Independent Blogger" by vSphere-Land.com for 2012. Chris also travels globally to speak at industry events, provide subject matter expertise, and offer insight as a technical analyst.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Instant Updates on New Packt Books

Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.

Preface

Amid all the recent competition from Citrix and Microsoft, VMware's vSphere product line is still the most feature-rich product in the virtualization industry. Knowing how to install and configure VMware vSphere components is important to give yourself a head start towards datacenter virtualization using VMware.

VMware vSphere 5.1 Cookbook is a task-oriented, fast-paced practical guide to installing and configuring vSphere 5.1 components. This book was written with the intention of providing the reader with a visual walkthrough of the most common configuration tasks that an administrator will perform in a VMware vSphere environment. It takes you through all of the steps required to accomplish a task, with less reading required. The book concentrates more on the actual task rather than theory around it, making it easier to understand what really is needed to achieve the task. However, most of the concepts has been well described, to help the reader understand its background and working.

The main highlight of this book is the use of the new vSphere 5.1 Web Client to accomplish most of the tasks. Although a few tasks cannot be accomplished using web client with the current vSphere version, VMware will be integrating them into the web client in future product releases.

What this book covers

Chapter 1, Upgrading to vSphere 5.1, discusses the procedures involved in upgrading the current vSphere environment to vSphere 5.1. It covers upgrading the vCenter Server and the ESXi host.

Chapter 2, Performing a Fresh Installation of vSphere 5.1, explains how to deploy a new vSphere 5.1 environment. It covers the installation of vCenter 5.1 and ESXi 5.1.

Chapter 3, vSphere Auto Deploy, explains how to install and configure Auto Deploy in order to provision ESXi servers. It also covers stateless caching and stateful installation.

Chapter 4, ESXi Image Builder, explains how to create, manage, and apply Image Profiles to ESXi hosts.

Chapter 5, Creating and Managing VMFS Datastores, explains how to create, view, and manage VMFS datastores on an ESXi host. It also covers datastore clusters and storage DRS.

Chapter 6, Managing iSCSI and NFS Storage, explains how to configure iSCSI and NAS storage on an ESXi host.

Chapter 7, Profile-driven Storage and Storage I/O Control, explains how to use storage profiles to ensure that the VMs are placed in appropriate datastores, and how to use storage I/O control to manage queue bandwidth between VMs.

Chapter 8, Configuring the vSphere Network, explains how to set up and configure vSphere networking using vSphere standard switches and vSphere distributed switches. It also covers port mirroring, NetFlow, and PVLANs.

Chapter 9, Creating and Managing Virtual Machines, explains how to create and configure virtual machines in a vSphere environment.

Chapter 10, Configuring vSphere HA, explains how to configure High Availability for ESXi servers.

Chapter 11, Configuring vSphere DRS, DPM, and VMware EVC, explains how to enable and configure DRS on a cluster. It also covers vSphere Distributed Power Management (DPM) and VMware Enhanced vMotion Capability (EVC).

Chapter 12, Upgrading and Patching using VMware Update Manager, explains how to install and configure VMware Update Manager to manage patching and upgrading ESXi hosts. It also covers the installation and configuration of the Update Manager Download Service (UMDS).

Chapter 13, Using vSphere Management Assistant (vMA 5.1), explains how to deploy and configure vMA 5.1 to run commands/scripts with the need to authenticate every attempt.

What you need for this book

You will learn the software requirements for every vSphere component covered in this book, but to start with the basics you will need at least two ESXi servers, a vCenter Server, a domain controller, a DHCP server, a DNS server, and a TFTP server. For learning purposes, you don't really need physical machines to run ESXi. You can use VMware Workstation to set up a hosted lab on your desktop PC or laptop, provided the machine has adequate resources. For shared storage, you can use any of the free virtual storage appliances, such as the Celera UBER, the Openfiler, or a trial version of HP LeftHand (StoreVirtual) VSA.

Celera UBER 3.2

http://nickapedia.com/2010/10/04/play-it-again-sam-celerra-uber-v3-2/

Openfiler

http://www.openfiler.com/

Hp LeftHand (StoreVirtual) VSA

http://h18006.www1.hp.com/products/storage/software/vsa/index.html

Who this book is for

This book is a guide for anyone who wants to learn how install and configure VMware vSphere components. It is an excellent handbook for support professionals, or for anyone looking for a head start in learning how to install and configure vSphere 5.1 components. It is also a good, task-oriented reference material for consultants who design and deploy vSphere environments.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.

Chapter 1. Upgrading to vSphere 5.1

In this chapter we will cover the following:

Carrying out pre-upgrade checks before performing a vCenter upgradePerforming an in-place upgrade of vCenter ServerCreating a table space for SSO on a SQL instanceCreating DB users for the SSO databaseUpgrading a 32-bit vCenter Server to vCenter 5.1Upgrading to ESXi 5.1Installing vSphere Web ClientUpgrading VMware ToolsUpgrading the virtual machine hardware

Introduction

In this chapter, we will focus on the steps required to upgrade your ESX servers to ESXi 5.1 and the vCenter Server to vCenter 5.1. If you are trying to rebuild or set up a new vSphere 5.1 environment then you should refer to Chapter 2, Performing a Fresh Installation of vSphere 5.1.

Always the rule of thumb is to upgrade the vCenter Server first, followed by the ESX server.

The upgrade is a three-step process:

Upgrade the vCenter Server to 5.1.Upgrade the ESX/ESXi servers to 5.1.Upgrade VMware Tools and then the virtual machine hardware.

It is recommended that you check the VMware Compatibility Guide web page for changes in the supportability of your current hardware. The hardware components may sometimes need a firmware upgrade to work as expected when used with a newer release of vSphere.

The VMware Compatibility Guide web page is available at www.vmware.com/go/hcl.

Upgrading the vCenter Server

VMware vCenter 5.1 is 64-bit; so the process of upgrading the vCenter Server to version 5.1 can be different, depending on whether you are already running your current vCenter on a 64-bit operating system or a 32-bit operating system.

There are two methods of upgrading your current vCenter to vCenter 5.1:

The in-place upgrade methodMigrating vCenter data using the vSphere Data Migration tool

The in-place upgrade is done by running the vCenter 5.1 installer on the machine where you have the existing vCenter Server, provided it is 64-bit. It is called in-place, because you are just letting the installer do the upgrade by automatically preserving the settings of the existing vCenter Sever. This procedure is discussed in the Performing an in-place upgrade of vCenter Server recipe.

If your existing vCenter is running on a 32-bit operating system, then you cannot install vCenter 5.1 on the same machine because it is a 64-bit application. You will need a machine running a 64-bit version of Windows. This is when you can choose to migrate the current vCenter data, using the vSphere Data Migration tool, from the 32-bit machine to a 64-bit machine where you intend to install vCenter 5.1. To learn how this is done, read the Upgrading a 32-Bit vCenter Server to vCenter 5.1 recipe.

Upgrading the ESXi server

Unlike the vCenter Server, the process of upgrading the ESXi server to version 5.1 is pretty straightforward. It is important that you upgrade the vCenter Server prior to upgrading the ESXi servers. There are different methods to upgrade the ESX server to ESXi 5.1. Refer to the Upgrading to ESXi 5.1 recipe for more information on how the upgrade is done using the ESXi 5.1 installation DVD. References for other methods can be found in the same chapter.

vSphere Web Client

Starting with vSphere 5.1, VMware has introduced a Web Client component that can be used to manage the vSphere environment. Although, I will be using vSphere Web Client for most of the tasks in the chapters, you could still use the vSphere Client to perform the same tasks. But there are certain tasks that can only be done using the vSphere Client. For example, the VMware Update Manager plugin is not available for the vSphere Web Client. Having said that, VMware will be moving all of the vSphere management GUIs to the Web Client in the upcoming versions of vSphere. So it would be good to get used to the vSphere Web Client interface. For instructions on how to install the vSphere Web Client component, refer to the Installing vSphere Web Client recipe.

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:

Check the ESX server compatibility.Run Host Agent Pre-Upgrade Checker.Check database compatibility.Back up the SSL certificates.Enable the SSL certificate verification.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:

Click on Install to start the installation wizard. It will start downloading data from VMware's online repository to update its reference database.Once the database is upgraded, it will bring up the VMware vCenter Host Agent Pre-Upgrade Checker wizard. Click on Next to continue.On the next screen, select the DSN value corresponding to the vCenter Server, choose the appropriate credentials, and Click on Next.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 vCenterCustom 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.

Select the ESX servers for a pre-upgrade check and click on Next.On the next screen, click on Run precheck to run the tests on the selected hosts. Then click on Next.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\SSLOn 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 ManagervCenter ConvertervCenter Guided Consolidation

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

Performing an in-place upgrade of vCenter Server

An in-place upgrade can be performed only if the previous version of vCenter is already running on a 64-bit machine. If the previous version of vCenter is running on a 32-bit machine then you should migrate the vCenter Server's data using the vSphere Data Migration tool.

Only three releases of vCenter Server are eligible for an in-place upgrade:

vCenter Server 4.0, if installed on a 64-bit machinevCenter Server 4.1vCenter 5.0

Here is a list of supported 64-bit operating systems vCenter 5.1 can be installed on:

Windows Server 2003 Service Pack 2Windows Server 2003 R2Windows 2008 Service Pack 1 and Service Pack 2Windows 2008 R2Windows 2008 R2 Service Pack 1

Note

Starting with vCenter 5.0, Microsoft® Windows XP is no longer supported to host a vCenter Server. Hence, vCenter 5.1 also doesn't support it.

With vCenter 5.1, we now have more than one component involved in the vCenter Server configuration:

vCenter Single Sign OnvCenter Inventory ServicevCenter Server

vCenter Server and the vCenter Single Sign On component's hardware requirements are as follows:

Intel/AMD x64 with multiple logical cores clocked at minimum 2 GHz eachA minimum of 3 GB memory and 2 GB disk spaceA network adapter with a minimum speed of 1 Gbps

The vCenter Inventory Service component's hardware requirements are as follows:

Intel/AMD x64 with multiple logical cores clocked at a minimum 2 GHz eachA minimum of 3 GB memory60 GB disk space for medium- to large-sized inventoriesA network adapter with a minimum speed of 1 Gbps

Tip

If the vCenter Single Sign On, Inventory Service, and vCenter Server components are installed on the same machine, then the recommended memory is 10 GB.

The vCenter Server installation bundle can be downloaded from VMware vSphere's downloads page, available at the following link:

https://my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/5_1

The download item will be listed as VMware vCenter Server 5.1.0 and modules, which is available in both ISO and ZIP archives.

Once done, run the AutoRun.exe file, which should bring up the VMware vCenter installer's home screen.

How to do it...

In this section, I will show you how to perform an in-place upgrade of the vCenter Server. This process requires a downtime of the vCenter Server but the VMs hosted on the ESX server will continue to run. It is important that you read the Carrying out pre-upgrade checks before performing a vCenter upgrade recipe, before you proceed:

At the vCenter installation home screen, select vCenter Server Simple Install and click on the Install button to start the installation wizard.At the InstallShield vCenter Single Sign On wizard screen, click on Next to continue.At the End User License Agreement screen, select I accept the terms in the license agreement and click on Next.Provide a new password for the Single Sign On (SSO) administrator account admin@System-Domain and click on Next.On the next screen, you will be prompted to either install a SQL 2008 R2 Express instance on the same machine or use an already existing supported database. Generally, in case of an upgrade you will already have an existing database server and all you would need to do is run the SQL script to create a database.If you choose Install a local Microsoft SQL Server R2 Express Instance then supply a new password for the sa user and click on Next.If you choose Use an existing supported database, then you will have to create a table space for the SSO database by running the SQL script suggested by the installer.

For instructions on creating a table space refer to the Creating a table space for SSO on a SQL Instance recipe. Once the table space has been created, click on Next to continue.

Next on the Database Information