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

Arrow left icon
Profile Icon Kostantin Kuminsky
Arrow right icon
R$50 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (4 Ratings)
Paperback May 2015 302 pages 1st Edition
eBook
R$80 R$271.99
Paperback
R$339.99
Subscription
Free Trial
Renews at R$50p/m
Arrow left icon
Profile Icon Kostantin Kuminsky
Arrow right icon
R$50 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (4 Ratings)
Paperback May 2015 302 pages 1st Edition
eBook
R$80 R$271.99
Paperback
R$339.99
Subscription
Free Trial
Renews at R$50p/m
eBook
R$80 R$271.99
Paperback
R$339.99
Subscription
Free Trial
Renews at R$50p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781783553976
Vendor :
VMware
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
R$50 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
R$500 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 R$25 each
Feature tick icon Exclusive print discounts
R$800 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 R$25 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total R$ 796.97
VMware vSphere 5.5 Essentials
R$272.99
vCenter Troubleshooting
R$183.99
VMware vCenter Cookbook
R$339.99
Total R$ 796.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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.