Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
VMware vCenter Cookbook
VMware vCenter Cookbook

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

eBook
$32.99 $47.99
Paperback
$60.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

VMware vCenter Cookbook

Chapter 2. Increasing Environment Availability

In this chapter, we will cover the following topics:

  • Configuring the HA feature
  • Prioritizing VMs for recovery
  • Tuning up vSphere HA
  • Ensuring 100 percent uptime for critical VMs
  • Protecting host redundancy for equally sized hosts
  • Protecting host redundancy for significantly different hosts
  • Protecting host redundancy with failover hosts
  • Backing up/restoring .vmdk files
  • Restoring VM backup without vCenter
  • Configuring the backup retention policy
  • Protecting the vCenter VM

Introduction

This chapter covers the availability solutions offered by vCenter. We will look at configuring and tuning High Availability (HA) and Fault Tolerance (FT), reviewing different scenarios of using admission control, backup, and replication. You may be running vCenter with a trial license, which will work just fine if you decide to try some of these recipes.

Configuring the HA feature

The vSphere HA feature offers additional protection for virtual machines running on a cluster. There are three scenarios it can handle:

  • Restart VMs on another host in case of host failure; this requires host monitoring.
  • Restart a VM in case of guest OS failure; this requires VM monitoring.
  • Reset a VM in case of application failure; this requires application monitoring.

HA is a cluster setting that applies to all running VMs. Once enabled, it protects all virtual machines and allows administrators to adjust additional settings such as VM prioritization and monitoring settings.

vCenter Server is required to configure the feature. It's not required for HA to operate and once the feature is enabled, it works even if vCenter is down.

Host monitoring prevents ESXi host failure. When it's enabled, HA monitors the host's heartbeats. If heartbeats are not received within a certain period of time, HA restarts VMs on another host.

VM monitoring is a protection against...

Prioritizing VMs for recovery

vSphere HA is a cluster-wide setting. This means that once it's enabled, it protects all virtual machines that are a part of the cluster.

In most cases, there are more important virtual machines running along with less critical VMs on the same cluster, and it's desirable that more important and critical VMs are restarted first. Also, depending on cluster resources available, vCenter may not be able to restart all virtual machines on other hosts, so it becomes even more important to make sure the most important servers will be backed up first.

Each environment has critical virtual machines, which in case of host failure need to be restarted before other VMs. A good example is domain controllers, which in most cases need to be up before other servers become available. Another example is database servers, which may be required online by applications and web servers. In such cases, the ability to configure VM restart priority can be very useful.

How to do...

Tuning up vSphere HA

When it comes to VM monitoring and auto-restart of individual VMs, vCenter offers an option to adjust the VM monitoring and application monitoring setting for individual VMs as well as change monitoring sensitivity.

Sensitivity can be set to low, medium, or high. These settings correspond to the following heartbeat timeout intervals: 120 seconds, 60 seconds, and 30 seconds. In other words, VM monitoring responds to missing the VMware tools heartbeat after this period of time. There is also an option to set a custom value for the timeout.

The custom option also allows you to change the following values:

  • Minimum uptime: This is the amount of time after VM monitoring has been enabled and before it starts monitoring VMware tools heartbeats.
  • Maximum per-VM resets: This is the amount of times a VM will be restarted within the maximum resets time window.
  • Maximum resets time window: This is the period of time before VM reset count is zeroed on.

How to do it...

These additional settings...

Ensuring 100 percent uptime for critical VMs

For VMs that need to be up 100 percent of the time and do not tolerate even a brief interruption caused by a reboot as a result of host failure, vSphere offers a continuous availability option called Fault Tolerance (FT).

FT creates and maintains an exact copy of a running virtual machine—secondary VM—on another host. Both VMs exchange heartbeats to monitor each other's status.

Ensuring 100 percent uptime for critical VMs

When a host with a primary VM fails, the secondary VM becomes active almost instantly. There is a little delay but clients do not see the interruption. As everything that happens on the primary VM replays on the secondary one, this failover happens transparently without the interruption of the existing network connections or in-progress transactions. The replication delay is typically less than 1 millisecond and it's unlikely that there will be transactions that have not yet been replicated. Such transactions, should they happen, will be lost.

Getting...

Protecting host redundancy for equally sized hosts

When there is more than one host in a cluster, it's usually expected that these hosts are redundant. In other words, if one or more hosts fail, the remaining should still be able to accommodate all VMs.

For this reason, each time a new VM is powered on or more memory or CPU is added to a VM, the administrator needs to be sure that the required redundant capacity is still available.

VMware offers a feature called admission control, which helps to ensure that sufficient resources are available to provide the required reservations or redundancy.

Once enabled, admission control is automatic. It is available not only for hosts but also for resource pools and vSphere HA.

Admission control monitors the environment for certain actions and decides whether they should be allowed or not based on resources that will be available after the action. This is to make sure that once the action is allowed, there are still enough resources to provide the...

Protecting host redundancy for significantly different hosts

Admission control helps to make sure there is spare capacity available in a cluster to keep the required level, redundancy, or reservations.

There are three types of policies available, which are as follows:

  • Number of host failures a cluster tolerates
  • Percentage of cluster resources reserved
  • Specific failover hosts

When the requirement is to be able to lose one or more hosts and still be able to keep all the VMs needed running, the Host failures cluster tolerates option works quite well unless the hosts you are trying to protect have significantly different sizes—memory and CPU resources available.

This option for different hosts results in reserving an excessive capacity based on the size of the largest host. Reserving more capacity than required in its turn results in wasting resources.

For clusters with differently-sized hosts, VMware advice is to use the percentage of cluster resources reserved option. This option ensures...

Protecting host redundancy with failover hosts

In certain cases, administrators may decide to use a separate standby host, which will take over and accommodate VMs from a failed host. This can be accomplished by using the third available option in the Admission Control Policy settings—Specify failover hosts.

When this policy is chosen, vCenter doesn't allow any VMs on the failover host even when a VM is being migrated there. This host will be used only when a failure occurs.

One important requirement is a shared storage available to all hosts, including the failover host. VMs running on the host's local storage will not be migrated in case of host failure.

If, for some reason, the failover host cannot be used to accommodate VMs, HA will try to restart them on other available cluster hosts.

How to do it...

To enable Admission Control, perform the following steps:

  1. Go to the Hosts and Clusters view.
  2. Right-click on your cluster.
  3. Click on Edit Settings.
  4. Go to vSphere HA.
  5. In the Admission...

Backing up/restoring .vmdk files

VMware offers a backup and recovery solution called vSphere Data Protection (VDP). While fully integrated with vCenter, this solution provides agentless disk-based backup of virtual machines.

Starting from vSphere 5.1:

  • VDP is included in vSphere Essentials Plus Kit with a 4 TB limit for backup storage.
  • The VDP advanced version has to be purchased separately.

Some of the core VDP features are as follows:

  • De-duplication
  • Changed Block Tracking (CBT) backup and restore
  • Application awareness (MS Exchange, SQL Server, SharePoint, and so on)

Getting ready

The VDP appliance is preconfigured with one of the following destination datastores: 0.5 TB, 1 TB, and 2 TB. This space is for backups only. The operating system, logs, and checkpoints of the appliance require additional space. According to VMware, a 0.5 TB appliance will need 850 GB of free space in total, a 1 TB appliance requires 1.57 TB of free space, while a 2 TB VDP will consume 3.02 TB of free space.

This should...

Introduction


This chapter covers the availability solutions offered by vCenter. We will look at configuring and tuning High Availability (HA) and Fault Tolerance (FT), reviewing different scenarios of using admission control, backup, and replication. You may be running vCenter with a trial license, which will work just fine if you decide to try some of these recipes.

Configuring the HA feature


The vSphere HA feature offers additional protection for virtual machines running on a cluster. There are three scenarios it can handle:

  • Restart VMs on another host in case of host failure; this requires host monitoring.

  • Restart a VM in case of guest OS failure; this requires VM monitoring.

  • Reset a VM in case of application failure; this requires application monitoring.

HA is a cluster setting that applies to all running VMs. Once enabled, it protects all virtual machines and allows administrators to adjust additional settings such as VM prioritization and monitoring settings.

vCenter Server is required to configure the feature. It's not required for HA to operate and once the feature is enabled, it works even if vCenter is down.

Host monitoring prevents ESXi host failure. When it's enabled, HA monitors the host's heartbeats. If heartbeats are not received within a certain period of time, HA restarts VMs on another host.

VM monitoring is a protection against guest OS failure...

Prioritizing VMs for recovery


vSphere HA is a cluster-wide setting. This means that once it's enabled, it protects all virtual machines that are a part of the cluster.

In most cases, there are more important virtual machines running along with less critical VMs on the same cluster, and it's desirable that more important and critical VMs are restarted first. Also, depending on cluster resources available, vCenter may not be able to restart all virtual machines on other hosts, so it becomes even more important to make sure the most important servers will be backed up first.

Each environment has critical virtual machines, which in case of host failure need to be restarted before other VMs. A good example is domain controllers, which in most cases need to be up before other servers become available. Another example is database servers, which may be required online by applications and web servers. In such cases, the ability to configure VM restart priority can be very useful.

How to do it...

vCenter...

Left arrow icon Right arrow icon

Description

If you are a system administrator who has some experience with virtualization and already uses VMware vCenter, but wishes to learn more, then this is the book for you. If you are looking for tips or shortcuts for common administration tasks as well as workarounds for pain points in vSphere administration, you'll find this guide useful.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 30, 2015
Length: 302 pages
Edition : 1st
Language : English
ISBN-13 : 9781783552276
Vendor :
VMware
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 30, 2015
Length: 302 pages
Edition : 1st
Language : English
ISBN-13 : 9781783552276
Vendor :
VMware
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 142.97
VMware vSphere 5.5 Essentials
$48.99
vCenter Troubleshooting
$32.99
VMware vCenter Cookbook
$60.99
Total $ 142.97 Stars icon
Banner background image

Table of Contents

8 Chapters
1. vCenter Basic Tasks and Features Chevron down icon Chevron up icon
2. Increasing Environment Availability Chevron down icon Chevron up icon
3. Increasing Environment Scalability Chevron down icon Chevron up icon
4. Improving Environment Efficiency Chevron down icon Chevron up icon
5. Optimizing Resource Usage Chevron down icon Chevron up icon
6. Basic Administrative Tasks Chevron down icon Chevron up icon
7. Improving Environment Manageability Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(4 Ratings)
5 star 25%
4 star 75%
3 star 0%
2 star 0%
1 star 0%
Art.C Jul 07, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
VMware vCenter Cookbook by Konstantin Kuminsky offers in-depth view on how to create and setup a new virtual environment. Whether you are just starting up with VMware or you have been managing multiple hosts. As a systems administrator for over 25 years I find this book very impressive and useful to have for all types of questions that relate to VMware functionality and reliability. As today’s technology advances you need to be able to provide and manage high scalability and availability infer structure. This book covers the necessary steps for creating and managing a healthy environment. The quick reference guides in this book provide the ability to manage multiple VM Hosts, how to create Templates to deploy VM’s much faster. How to prioritize vCPU’s to the VM’s that need the most. This book uses the latest version of VSphere 5 as the main platform which includes HA features, VM delivery and customization and network performance. Any of these points are very important to the overall performance of the VSphere Environment. Great keeper for me as it improves my ability to manage VM’s and helps out in planning for the future. I’d rather have the how to? On hand as a quick reference guide. This book provides the tools for a Great VMware vCenter.
Amazon Verified review Amazon
Kim Bottu Jul 03, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
For some years now my main focus has been virtualization using VMware technology.Konstantin Kuminsky's book provides a good reference work where it comes to vCenter server in all its day to day functionality. If you are new to VMware technology or just want a refresh about what VMware vCenter server can do for you, I would advise this book.Kim
Amazon Verified review Amazon
Jason G. Boche Jul 28, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Back in June, I was extended an offer from PACKT Publishing to review a new VMware book. I’ve got a lot on my plate at the moment but it sounded like an easier read and I appreciated the offer as well as the accommodation of my request for paperback in lieu of electronic copy so I accepted. I finished reading it this past weekend.The book’s title is VMware vCenter Cookbook and it is PACKT’s latest addition to an already extensive Cookbook series (Interested in Docker, DevOps, or Data Science? There’s Cookbooks for that). Although it was first published in May 2015, the content isn’t quite so new as its coverage includes vSphere 5, and vSphere 5 only with specific focus on vSphere management via vCenter Server as the title of the book indicates. The author is Konstantin Kuminsky and as I mentioned earlier the book is made available in both Kindle and paperback formats.Admittedly I’m not familiar with PACKT’s other Cookbooks but the formula for this one is much the same as the others I imagine: “Over 65 hands-on recipes to help you efficiently manage your vSphere environment with VMware vCenter”. Each of the recipes ties to a management task that an Administrator of a vSphere environment might need to carry out day to day, weekly, monthly, or perhaps annually. Some of the recipes can also be associated with and aid in design, architecture, and planning although I would not say these are not the main areas of focus. The majority of the text is operational in nature.The recipes are organized by chapter and while going from one to the next, there may be a correlation, but often there is not. It should be clear at this point it reads like a cookbook, and not a mystery novel (although for review purposes I did read it cover to cover). Find the vCenter how-to recipe you need via the Table of Contents or the index and follow it. Expect no more and no less.Speaking of the Table of Contents… Chapter 1: vCenter Basic Tasks and Features Chapter 2: Increasing Environment Availability Chapter 3: Increasing Environment Scalability Chapter 4: Improving Environment Efficiency Chapter 5: Optimizing Resource Usage Chapter 6: Basic Administrative Tasks Chapter 7: Improving Environment ManageabilityIt’s a desktop reference (or handheld I suppose depending on your preferred consumption model) which walks you through vSphere packaging and licensing on one page, and NUMA architecture on the next. The focus is vCenter Server and perhaps more accurately vSphere management. Fortunately that means there is quite a bit of ESXi coverage as well with management inroads from vCenter, PowerShell, and esxcli. Both Windows and appliance vCenter Server editions are included as well as equally fair coverage of both vSphere legacy client and vSphere web client.Bottom line: It’s a good book but it would have been better had it been released at least a year or two earlier. Without vSphere 6 coverage, there’s not a lot of mileage left on the odometer. In fairness I will state that many of the recipes will translate identically or closely to vSphere 6, but not all of them. To provide a few examples, VM templates and their best operational practices haven’t changed that much. On the other hand, there are significant differences between FT capabilities and limitations between vSphere 5 and vSphere 6. From a technical perspective, I found it pretty spot on which means the author and/or the reviewers did a fine job.Thank you PACKT Publishing for the book and the opportunity.
Amazon Verified review Amazon
Mike nelson Jul 04, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I am a virtualization professional with over 2 decades of IT experience and have been using vCenter since it's inception. I found this book to be a rather good reference for anyone who directly administrates vSphere and works with vCenter. I also found it to be an great reference for the I.T. Generalist, who wears many hats and needs this type of "go-to" reference to assist them in their daily work, which can become very complex. i found the "recipes" quite useful for the novice and quite possibly even a quick refresher for the intermediate user. the books chapters are organized well, and the highlighting of relevant reference material from VMware is a nice add. one recommendation is that the book should have included vSphere 4.x information as well for legacy environments, and a lead-in to the possible new edition for the vSphere 6.x version as well.Overall, I would recommend this book and it has found a spot in my reference library. Nice work Konstantin!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.