O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

VMware vSphere 6.5 Cookbook - Third Edition

Book Description

Deploy and manage VMware vSphere 6.5 components with ease.

About This Book

  • Simplified and to-the-point theory and practical recipes to deploy and manage vSphere 6.5
  • Discover the best ways to deploy stateless and stateful ESXi hosts and upgrade them
  • Storage and network resource management
  • Certificate management using VMCA
  • Monitor the performance of a vSphere environment.

Who This Book Is For

If you are a system administrator, support professional, or anyone interested in learning how to install, configure, and manage a vSphere environment, then this book is for you. This task-oriented reference guide will also benefit consultants or infrastructure architects who design and deploy vSphere 6.5 environments.

What You Will Learn

  • Upgrade your existing vSphere environment or perform a fresh deployment.
  • Automate the deployment and management of large sets of ESXi hosts in your vSphere Environment
  • Configure and manage FC, iSCSI, and NAS storage, and get more control over how storage resources are allocated and managed
  • Configure vSphere networking by deploying host-wide and data center-wide switches in your vSphere environment
  • Configure high availability on a host cluster and learn how to enable the fair distribution and utilization of compute resources
  • Patch and upgrade the vSphere environment
  • Handle certificate request generation and renew component certificates
  • Monitor performance of a vSphere environment

In Detail

VMware vSphere is a complete and robust virtualization product suite that helps transform data centers into simplified on-premises cloud infrastructures, providing for the automation and orchestration of workload deployment and life cycle management of the infrastructure. This book focuses on the latest release of VMware vSphere and follows a recipe-based approach, giving you hands-on instructions required to deploy and manage a vSphere environment.

The book starts with the procedures involved in upgrading your existing vSphere infrastructure to vSphere 6.5, followed by deploying a new vSphere 6.5 environment. Then the book delves further into the procedures involved in managing storage and network access to the ESXi hosts and the virtual machines running on them. Moving on, the book covers high availability and fair distribution/utilization of clustered compute and storage resources.

Finally, the book covers patching and upgrading the vSphere infrastructure using VUM, certificate management using VMCA, and finishes with a chapter covering the tools that can be used to monitor the performance of a vSphere infrastructure.

Style and approach

This book will quickly get you started with managing VMware components.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Upgrading to vSphere 6.5
    1. Introduction 
    2. vSphere 6.5 core components
      1. Hypervisor – VMware ESXi 6.5
      2. Core management layer – VMware vCenter 6.5
      3. Authentication and core services layer – vSphere Platform Services Controller
      4. Upgrade and patch management layer – vCenter Update Manager 6.5
    3. Planning vSphere upgrade
      1. How to do it...
      2. How it works...
    4. Upgrading from vSphere 5.5 or 6.0 to vSphere 6.5
      1. How to do it...
      2. How it works...
    5. Upgrading vCenter Server running Microsoft Windows
      1. How to do it...
      2. How it works...
    6. Using the vCenter 6.5 Migration Assistant 
      1. How to do it...
    7. Upgrading vCenter Server – Migrating from Microsoft Windows to VCSA
      1. Getting ready
      2. How to do it...
      3. How it works...
    8. Upgrading the vCenter Server Appliance
      1. Getting ready
      2. How to do it...
    9. Upgrading ESXi Hypervisor
      1. Getting ready
      2. How to do it...
      3. There is more...
  2. Greenfield Deployment of vSphere 6.5
    1. Introduction
    2. Deploying vSphere ESXi 6.5
      1. Getting ready
        1. Downloading ESXi 6.5 and mapping it to the server
      2. How to do it...
    3. Configuring ESXi Management Network
      1. Getting ready
      2. How to do it...
      3. There is more...
    4. Deploying vCenter Server Appliance 6.5
      1. How to do it...
    5. Deploying External Platform Services controllers
      1. Getting ready
      2. How to do it...
        1. Part 1 – Deploying a PSC for a new SSO domain
        2. Part 2 – Joining a PSC to an existing SSO domain
      3. How it works...
        1. VMware Certificate Authority
        2. VMware Single Sign-On
        3. VMware licensing service
    6. Deploying vCenter Servers in Enhanced Linked Mode
      1. How to do it...
    7. Configuring SSO identity sources
      1. How to do it...
    8. Assigning users and groups to vCenter Server
      1. Getting ready
      2. How to do it...
  3. Using vSphere Host Profiles
    1. Introduction
    2. Preparing a reference host
      1. How to do it...
    3. Creating Host Profiles
      1. Getting ready
      2. How it works...
      3. How it works...
    4. Attaching/detaching ESXi hosts to/from a Host Profile
      1. How to do it...
    5. Performing host customizations
      1. Getting ready
      2. How to do it...
    6. Checking Host Profile compliance of ESXi host(s)
      1. Getting ready
      2. How to do it...
      3. How it works...
    7. Scheduling Host Profile compliance checks
      1. Getting ready
      2. How to do it...
    8. Remediating non-compliant ESXi hosts
      1. Getting ready
      2. How to do it...
    9. Using Host Profiles to push a configuration change
      1. How to do it...
    10. Copying settings between Host Profiles
      1. How to do it...
    11. Exporting Host Profiles
      1. How to do it...
      2. Importing Host Profiles
      3. How to do it...
    12. Duplicating Host Profiles
      1. How to do it...
  4. Using ESXi Image Builder
    1. Introduction
      1. vSphere ESXi Image Builder architecture
    2. Enabling ESXi Image Builder service for vSphere Web Client GUI
      1. How to do it...
    3. Preparing an ESXi Image Builder CLI environment
      1. Getting ready
      2. How to do it...
    4. Downloading an ESXi offline bundle
      1. How to do it...
    5. Importing a software depot
      1. How to do it...
      2. There's more...
    6. Creating an online software depot
      1. Getting ready
      2. How to do it...
      3. There's more...
    7. Creating a custom depot
      1. How to do it...
    8. Creating image profiles using an existing image profile
      1. Getting ready
      2. How to do it...
      3. There's more....
    9. Creating image profiles from scratch
      1. Getting ready
      2. How to do it...
      3. There's more...
    10. Comparing image profiles
      1. How to do it...
    11. Moving image profiles between software depots
      1. How to do it...
    12. Exporting image profiles
      1. How to do it...
      2. There's more...
  5. Using vSphere Auto Deploy
    1. Introduction
      1. vSphere auto deploy architecture
    2. Enabling vSphere auto deploy service
      1. How to do it...
      2. How it works...
    3. Configuring TFTP server with the files required to PXE boot
      1. Getting ready
      2. How to do it...
      3. How it works...
    4. Configuring the DHCP server to work with auto deploy
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Preparing vSphere environment – create host profile, configure the deploy rules and activate them
      1. How to do it...
      2. How it works...
    6. Enabling stateless caching
      1. How to do it...
      2. How it works...
    7. Enabling stateful install
      1. How to do it...
      2. How it works...
  6. Using vSphere Standard Switches
    1. Introduction
    2. Creating a vSphere Standard Switch
      1. Getting ready
      2. How to do it...
      3. There is more...
    3. Creating VMkernel interfaces on a vSphere Standard Switch
      1. Getting ready
      2. How to do it...
      3. There is more...
    4. Creating custom VMkernel TCP/IP stacks
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Creating virtual machine port groups on a vSphere Standard Switch
      1. Getting ready
      2. How to do it...
      3. There is more...
    6. Managing the physical uplinks of a vSwitch
      1. There is more...
    7. Configuring security, traffic shaping, teaming, and failover on a vSphere Standard Switch
      1. How to do it...
  7. Using vSphere Distributed Switches
    1. Introduction
    2. Creating a vSphere Distributed Switch
      1. Getting ready
      2. How to do it...
      3. How it works...
    3. Connecting hosts to a vSphere Distributed Switch
      1. How to do it...
    4. Creating a vSphere Distributed port group
      1. How to do it...
      2. How it works...
        1. Port binding
        2. Port allocation
        3. Network resource pools
    5. Managing physical adapter (vmnic) to dvUplink mappings
      1. How to do it...
    6. Migrating a virtual machine network from a vSphere Standard Switch (vSwitch ) to a vSphere Distributed Switch (dvSwitch)
      1. Getting ready
      2. How to do it...
      3. How it works...
    7. Migrating VMkernel interfaces between vSphere Standard (vSwitch) and vSphere Distributed Switches (dvSwitch)
      1. Getting ready
      2. How to do it...
      3. How it works...
    8. Creating additional VMkernel interfaces on a vSphere Distributed Switch (dvSwitch)
      1. Getting ready
      2. How to do it...
    9. Creating a vSphere Distributed Switch backup
      1. How to do it...
      2. How it works...
    10. Restoring dvSwitch from a backup
      1. How to do it...
    11. Creating or importing a dvSwitch from a backup
      1. How to do it...
      2. How it works...
    12. Configuring security, traffic shaping, teaming, and failover on a dvSwitch
      1. Getting ready
      2. How to do it...
      3. How it works...
        1. Security
          1. Promiscuous mode
          2. MAC address changes and forged transmits
        2. Traffic shaping
        3. Teaming and failover
          1. Network failure detection
          2. Notify switches 
          3. Failback
          4. Failover order
    13. Configuring VLANs on a vSphere Standard or Distributed Switch
      1. Getting ready
      2. How to do it...
      3. How it works...
        1. External switch tagging
        2. Virtual Switch Tagging
        3. Virtual Guest Tagging (VGT)
    14. Configuring private VLANs on a dvSwitch
      1. Getting ready
      2. How to do it...
      3. How it works...
    15. Configuring LAGs on a vSphere Distributed Switch
      1. Getting ready
      2. How to do it...
      3. How it works...
    16. Creating user-defined network resource pools
      1. Getting ready
      2. How to do it...
      3. How it works...
      4. There's more...
    17. Using port mirroring on a vSphere Distributed Switch
      1. Getting ready
      2. How to do it...
      3. How it works...
    18. Enabling NetFlow on a vSphere Distributed Switch
      1. How to do it...
      2. How it works...
  8. Creating and Managing VMFS Datastore
    1. Introduction
    2. Viewing the LUNs presented to an ESXi host
      1. How to do it...
    3. Viewing datastores available on an ESXi host
      1. How to do it...
    4. Creating a VMFS datastore
      1. Getting ready
      2. How to do it...
    5. Managing multipathing configuration of a VMFS datastore
      1. How to do it...
      2. How it works...
    6. Expanding or growing a VMFS datastore
      1. Getting ready
      2. How to do it...
    7. Extending a VMFS datastore
      1. Getting ready
      2. How to do it...
    8. Unmounting and detaching VMFS volumes
      1. Getting ready
      2. How to do it...
    9. Re-mounting a VMFS datastore
      1. Getting ready
      2. How to do it...
    10. Deleting VMFS datastores
      1. Getting ready
      2. How to do it...
    11. Upgrading from VMFS 5 to VMFS 6
      1. How to do it...
      2. There is more...
    12. Managing VMFS volumes detected as snapshots
      1. Getting ready
      2. How to do it...
    13. Masking paths to a LUN
      1. How to do it...
    14. Unmasking paths to a LUN
      1. How to do it...
  9. Managing Access to the iSCSI and NFS Storage
    1. Introduction
      1. iSCSI fundamentals
      2. NFS fundamentals
    2. Adding the software iSCSI adapter
      1. Getting ready
      2. How to do it...
      3. How it works...
    3. Configuring iSCSI multipathing using port binding
      1. Getting ready
      2. How to do it...
      3. How it works...
    4. Configuring access to an iSCSI target server
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Creating NFSv3 datastores
      1. Getting ready
      2. How to do it...
      3. How it works...
    6. Creating NFSv4.1 datastores with Kerberos authentication
      1. Getting ready
      2. How to do it...
  10. Storage IO Control, Storage DRS, and Profile Driven Storage
    1. Introduction
    2. Settings disk shares on virtual machine disks
      1. How to do it...
    3. Enabling Storage I/O Control (SIOC)
      1. How to do it...
      2. How it works...
    4. Integrating a VASA provider with the vCenter Server
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Using vCenter tags to define storage capabilities
      1. How to do it...
    6. Creating VM storage policies
      1. How to do it...
      2. How it works...
    7. Assigning VM storage policies
      1. How to do it...
      2. How it works...
  11. Creating and Managing Virtual Machines
    1. Introduction
      1. Virtual machine components
      2. Files that make up a virtual machine
    2. Creating a virtual machine
      1. Getting ready
      2. How to do it...
      3. How it works...
    3. Creating a new hard disk for a virtual machine
      1. How to do it...
      2. How it works...
    4. Adding an existing disk to a virtual machine
      1. How to do it...
    5. Attaching a Raw Device Mapping to a virtual machine
      1. Getting ready
      2. How to do it...
      3. How it works...
    6. Mapping a virtual machine's vNIC to a different port group
      1. Getting ready
      2. How to do it...
      3. How it works...
    7. Creating virtual machine snapshots
      1. Getting ready
      2. How to do it...
      3. How it works...
      4. There's more...
    8. Deleting a virtual machine snapshot
      1. Getting ready
      2. How to do it...
      3. How it works...
    9. Restoring a snapshot in linear snapshot tree
      1. How to do it...
      2. How it works...
    10. Switching to an arbitrary virtual machine snapshot
      1. How to do it...
      2. How it works...
    11. Consolidating snapshots
      1. How to do it...
      2. How it works
    12. Converting a virtual machine to a template
      1. How to do it...
      2. How it works...
    13. Cloning a virtual machine to template
      1. How to do it...
    14. Exporting to an OVF template
      1. How to do it...
      2. How it works...
    15. Deploying a virtual machine from an OVF template
      1. Getting ready
      2. How to do it...
      3. How it works...
      4. There is more...
    16. Creating a local content library
      1. How to do it...
      2. How it works...
    17. Creating a subscribed content library
      1. Getting ready
      2. How to do it...
      3. How it works...
  12. Configuring vSphere 6.5 High Availability
    1. Introduction
    2. Enabling vSphere HA on a cluster
      1. Getting ready
      2. How to do it...
      3. How it works...
    3. Configuring vSphere HA Admission Control
      1. Getting ready
      2. How to do it...
      3. How it works...
    4. Setting the host isolation response for a HA cluster
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Setting the VM restart priority for a HA cluster
      1. Getting ready
      2. How to do it...
      3. How it works...
    6. Configuring VM monitoring
      1. How to do it...
      2. How it works...
    7. Configuring datastore heartbeating
      1. How to do it...
      2. How it works...
    8. Disabling host monitoring
      1. How to do it...
      2. How it works...
    9. Configuring vCenter Native High Availability
      1. Getting ready
      2. How to do it...
      3. How it works...
      4. See also
  13. Configuring vSphere DRS, DPM, and VMware EVC
    1. Introduction
    2. Enabling vSphere DRS on a cluster
      1. Getting ready
      2. How to do it...
      3. How it works
    3. Configuring VMware Enhanced vMotion compatibility
      1. Getting ready
      2. How to do it...
      3. How it work...
      4. See also
    4. Choosing a DRS automation level
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Overriding the cluster automation level for a VM
      1. Getting ready
      2. How to do it...
    6. Setting a migration threshold
      1. How to do it...
      2. How it works...
    7. Creating DRS VM or host groups
      1. Getting ready
      2. How to do it...
      3. How it works...
    8. Creating VMs to host affinity rules
      1. Getting ready
      2. How to do it...
      3. How it works...
    9. Creating VM affinity or anti-affinity rules
      1. Getting ready
      2. How to do it...
      3. How it works...
    10. Configuring Distributed Power Management
      1. Getting ready
      2. How to do it...
      3. How it works...
    11. Configuring Predictive DRS
      1. Getting ready
      2. How to do it...
      3. How it works...
      4. See also
  14. Upgrading and Patching using vSphere Update Manager
    1. Introduction
    2. Installing vSphere Update Manager on Windows
      1. Getting ready
      2. How to do it...
    3. Activating vSphere Update Manager in vCenter Server Appliance
      1. Getting ready
      2. How to do it...
      3. How it works...
    4. Installing the Update Manager download service
      1. Getting ready
      2. How to do it...
    5. Configuring VUM with a download source
      1. Getting ready
      2. How to do it...
      3. How it works...
    6. Creating a custom baseline
      1. How to do it...
      2. How it works...
    7. Creating a baseline group
      1. How to do it...
      2. How it works...
    8. Importing an ESXi image and updating a host
      1. Getting ready
      2. How to do it...
      3. How it works...
    9. Leveraging a VM/VA baseline to remediate a VM/VA
      1. How to do it...
      2. How it works...
  15. Using vSphere Certificate Manager Utility
    1. Introduction
    2. Regenerating a new VMCA Root Certificate and replacing all certificates
      1. Getting ready
      2. How to do it...
    3. Generating certificate signing requests with the vSphere Certificate Manager
      1. Getting ready
      2. How to do it...
      3. How it works...
    4. Replacing all certificates with custom certificate
      1. Getting ready
      2. How to do it...
    5. Reverting the last performed operation by republishing old certificates
      1. How to do it...
      2. How it works...
    6. Resetting all certificates
      1. How to do it...
      2. How it works
  16. Using vSphere Management Assistant
    1. Introduction
    2. Deploying the vMA appliance
      1. Getting ready
      2. How to do it...
    3. Preparing VMware vMA for first use
      1. How it works...
    4. Configuring VMware vMA to join an existing domain
      1. How to do it...
    5. Adding vCenter to vMA with AD authentication
      1. How to do it...
      2. How it works...
    6. Adding vCenter to vMA with fastpass (fpauth) authentication
      1. Getting ready
      2. How to do it...
      3. How it works...
    7. Adding an ESXi host to vMA
      1. How to do it...
      2. How it works...
    8. Changing the authentication policy
      1. How to do it...
    9. Running CLI commands on target servers
      1. How to do it…
        1. Method 1 – Issuing commands on the default target
        2. Method 2 – Issuing commands by specifying a target server
        3. Method 3 – Issuing commands against a vCenter added as the target
  17. Performance Monitoring in a vSphere Environment
    1. Introduction
    2. Using esxtop to monitor performance
      1. Getting ready
      2. How to do it...
    3. Exporting and importing esxtop configurations
      1. How to do it...
      2. How it works...
    4. Running esxtop in the batch mode
      1. Getting ready
      2. How to do it...
      3. How it works...
    5. Gathering VM I/O statistics using vscsiStats
      1. Getting ready
      2. How to do it...
    6. Using vCenter performance graphs
      1. Getting ready
      2. How to do it...
      3. How it works...
  18. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think