You are previewing VMware vCenter Cookbook.
O'Reilly logo
VMware vCenter Cookbook

Book Description

Over 65 hands-on recipes to help you efficiently manage your vSphere environment with VMware vCenter

In Detail

VMware vCenter is a centralized management application server that lets you manage virtual machines and ESXi hosts centrally and optimizes resources efficiently. Day-to-day virtual environment administration for IT professionals will become much easier with the help of this book! Clear and helpful recipes and tips offered in this book will help administrators to increase their level of expertise and gain new skills in vSphere administration. You begin by learning useful tasks and features of vCenter such as accessing hosts via SSH and securing host management access. You will then learn ways to ensure 100 percent uptime for critical VMs, protect host redundancy and configure a backup retention policy, all while increasing environment availability. Following this, you will discover how to increase and improve environment scalability and optimize resource usage. Finally, you'll finish your journey by learning how to improve environment manageability using CLI, VM cloning, and many other methods.

What You Will Learn

  • Manage your virtual environment faster and in a more efficient manner

  • Easily implement and start using new vCenter features

  • Scale an existing virtual environment quickly

  • Optimize resource usage across virtual infrastructures

  • Prioritize VMs with resource pools

  • Perform simple and advanced administrative tasks using VMware

  • Discover tips on task optimization that will let you have more time for important tasks

  • 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. VMware vCenter Cookbook
      1. Table of Contents
      2. VMware vCenter Cookbook
      3. Credits
      4. Foreword
        1. Overview and informational elements
        2. The content
          1. Chapter 1 – vCenter basis tasks and features
          2. Chapter 2 – Increasing environment availability
          3. Chapter 3 – Increasing environment scalability
          4. Chapter 4 – Improving environment efficiency
          5. Chapter 5 – Optimizing resource usage
          6. Chapter 6 – Basic administrative tasks
          7. Chapter 7 – Improving environment manageability
        3. Wrapping up
      5. About the Author
      6. About the Reviewers
      7. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
          3. Instant updates on new Packt books
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the color images of this book
          2. Errata
          3. Piracy
          4. Questions
      9. 1. vCenter Basic Tasks and Features
        1. Introduction
        2. Choosing the right vSphere and vCenter editions
          1. How to do it...
            1. vSphere editions
            2. vCenter editions
          2. There's more…
        3. Booting a VM from a virtual CD-ROM
          1. How to do it...
          2. How it works...
        4. Using hosts with different CPUs in one cluster
          1. Getting ready
          2. How to do it...
          3. There's more…
        5. Fixing VMware tools to autostart after Linux updates
          1. How to do it...
          2. There's more…
        6. Running vCenter on a VM
          1. How to do it...
          2. There's more…
            1. vCenter Server on a VM
        7. Managing several vCenter Servers from one client
          1. Getting ready
          2. How to do it...
            1. Joining vCenter to a group
            2. Removing vCenter from a group
        8. Accessing new vCenter features
          1. How to do it...
          2. There's more…
        9. Accessing hosts via SSH
          1. How to do it...
            1. Opening the SSH port on the firewall
            2. Starting an SSH service
          2. There's more…
        10. Securing host management access
          1. How to do it...
            1. Enable Lockdown mode from the ESXi console
        11. Storing host logs on a shared datastore
          1. How to do it...
          2. There's more…
        12. Configuring remote logging
          1. How to do it...
      10. 2. Increasing Environment Availability
        1. Introduction
        2. Configuring the HA feature
          1. How to do it...
            1. Enabling host protection
            2. Enabling VM monitoring
        3. Prioritizing VMs for recovery
          1. How to do it...
        4. Tuning up vSphere HA
          1. How to do it...
        5. Ensuring 100 percent uptime for critical VMs
          1. Getting ready
          2. How to do it...
            1. Verifying VM FT status
            2. Disabling FT
          3. There's more…
        6. Protecting host redundancy for equally sized hosts
          1. How to do it...
        7. Protecting host redundancy for significantly different hosts
          1. How to do it...
        8. Protecting host redundancy with failover hosts
          1. How to do it...
        9. Backing up/restoring .vmdk files
          1. Getting ready
          2. How to do it...
            1. VM backup
            2. VM restore
          3. There's more…
        10. Restoring VM backup without vCenter
          1. Getting ready
          2. How to do it...
        11. Configuring the backup retention policy
          1. How to do it...
        12. Protecting the vCenter VM
          1. How to do it...
            1. Virtualizing vCenter
            2. Clustering the database
            3. Third-party solutions
      11. 3. Increasing Environment Scalability
        1. Introduction
        2. Delivering new VMs faster with templates
          1. How to do it...
          2. There's more…
        3. Delivering new VMs faster with customizations
          1. How to do it...
            1. Using customization
        4. Troubleshooting customizations
          1. How to do it...
          2. There's more…
        5. Keeping templates up to date
          1. How to do it...
        6. Utilizing host local storage
          1. Getting ready
          2. How to do it...
            1. Create VMkernel NIC for vSAN
            2. Enable vSAN on cluster level
            3. Create vSAN disk groups
            4. Creating a storage policy
          3. How it works...
        7. Automating VM deployments
          1. Getting ready
          2. How to do it...
            1. Creating a deployment script
            2. Running a deployment script
        8. Deploying new hosts faster with scripted installation
          1. How to do it...
            1. Creating an installation script
            2. Use the installation script to configure ESXi
        9. Deploying new hosts faster with auto deploy
          1. Getting ready
          2. How to do it...
            1. Configuring the TFTP server
            2. Creating an image profile
            3. Assigning an image profile to hosts
            4. Assigning a host profile to hosts
            5. Assigning a host to a folder or cluster in vCenter
          3. How it works...
        10. Keeping host configuration consistent
          1. Getting ready
          2. How to do it...
            1. Creating a profile using a reference host
            2. Add a host to a profile
            3. Check a host's compliance
            4. Applying a profile to a host
        11. Increasing a VM's RAM and CPU online
          1. Getting ready
          2. How to do it...
          3. There's more…
      12. 4. Improving Environment Efficiency
        1. Introduction
        2. Meeting higher I/O needs with the VMware Paravirtual controller
          1. How to do it...
            1. PVSCSI for a new VM
            2. PVSCSI for new virtual drives
            3. PVSCSI for existing OS virtual drives
        3. Improving network performance with the VMXNET 3 network adapter
          1. How to do it...
        4. Using new virtual hardware
          1. How to do it...
            1. Choosing a virtual hardware version
            2. Upgrading the virtual hardware
        5. Controlling storage space used by virtual disks
          1. How to do it...
            1. Choosing disk provisioning for new VMs
            2. Converting disk formats
        6. Managing the space used by snapshots
          1. How to do it...
        7. Improving host productivity with Flash Read Cache
          1. Getting ready
          2. How to do it...
        8. Speeding up VMs with Flash Read Cache
          1. Getting ready
          2. How to do it...
        9. Optimizing host power consumption
          1. Getting ready
          2. How to do it...
            1. Configuring DPM
            2. Configuring HPM
          3. How it works...
          4. There's more…
        10. Considering NUMA when configuring RAM
          1. How to do it...
        11. vCPU versus pCPU and time slots
          1. How to do it...
      13. 5. Optimizing Resource Usage
        1. Introduction
        2. Prioritizing VMs with shares
          1. How to do it...
        3. Ensuring VMs have enough resources to run
          1. How to do it...
        4. Limiting resources used by VMs
          1. How to do it...
        5. Grouping VMs by resource usage
          1. How to do it...
          2. There's more…
        6. Balancing loads between hosts
          1. Getting ready
          2. How to do it...
            1. Creating a DRS cluster
            2. Configuring VM options
            3. Disabling DRS
        7. Balancing loads between datastores
          1. How to do it...
            1. Creating a datastore cluster
            2. Taking advantage of initial placement
            3. Adding existing VMs to a datastore cluster
            4. Reviewing and applying recommendations
        8. Configuring storage load balancing thresholds
          1. How to do it...
            1. Changing the threshold for new clusters
            2. Changing the threshold for existing clusters
          2. How it works...
        9. Limiting VM storage I/O consumption
          1. How to do it...
            1. Enabling SIOC on a datastore
            2. Limiting I/Os per VM
        10. Limiting VM network I/O consumption
          1. How to do it...
            1. Enabling NIOC
            2. Creating network resource pool
            3. Assigning port groups to network resource pools
            4. Editing the network resource pool
            5. Deleting a network resource pool
      14. 6. Basic Administrative Tasks
        1. Introduction
        2. Improving visibility with email alerts
          1. How to do it...
            1. Testing email alerts
            2. Configuring email alerts for important events
          2. There's more…
        3. Controlling the space used by snapshots
          1. How to do it...
            1. Changing the VM snapshot file location
        4. Controlling datastore space utilization
          1. How to do it...
            1. Disabling default alarm
            2. Creating folders for datastores
            3. Creating alarm definitions for each folder
        5. Automating VM placement with storage profiles
          1. Getting ready
          2. How to do it...
            1. Enable storage profiles and tag datastores
            2. Creating storage policy
            3. Assigning storage policy to a VM
        6. Automating VM placement with VM affinity
          1. How to do it...
            1. Creating VM-to-Host rules
            2. Creating VM-to-VM rules
        7. Automating VM placement with storage affinity
          1. Getting ready
          2. How to do it...
            1. Creating the Intra-VM rule
            2. Creating a VM-to-VM rule
            3. Changing default affinity rule
          3. There's more…
        8. Automating tasks with a scheduler
          1. Getting ready
          2. How to do it...
          3. There's more…
        9. Keeping hosts up to date
          1. Getting ready
          2. How to do it...
            1. Installing the Update Manager server
            2. Installing the Update Manager plugin
            3. Creating baselines and groups
            4. Attaching baselines or groups to hosts
            5. Scanning and remediating objects
      15. 7. Improving Environment Manageability
        1. Introduction
        2. Categorizing objects in the environment
          1. How to do it...
        3. Scheduling the VM clone
          1. Getting ready
          2. How to do it...
            1. Creating the script
            2. Creating a scheduled task
        4. Redirecting VMkernel dumps to another server
          1. Getting ready
          2. How to do it...
            1. Configuring the Netdump collector service
            2. Configuring the ESXi host for Netdump
        5. Gathering network traffic
          1. How to do it...
          2. There's more…
        6. VDS configuration backup and restore
          1. How to do it...
        7. Management network configuration recovery
          1. How to do it...
        8. Choosing a MAC address prefix
          1. How to do it...
        9. Getting familiar with new CLI
          1. How to do it...
            1. Formatter options
            2. Management operations
            3. Power operations
            4. Networking operations
        10. Configuring the firewall from CLI
          1. How to do it...
            1. Working with rules
        11. Bypassing "hostd" when it's unresponsive with CLI
          1. How to do it...
      16. Index