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
Conferences
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
zł39.99 zł196.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (4 Ratings)
eBook May 2015 302 pages 1st Edition
eBook
zł39.99 zł196.99
Paperback
zł246.99
Subscription
Free Trial
Arrow left icon
Profile Icon Kostantin Kuminsky
Arrow right icon
zł39.99 zł196.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (4 Ratings)
eBook May 2015 302 pages 1st Edition
eBook
zł39.99 zł196.99
Paperback
zł246.99
Subscription
Free Trial
eBook
zł39.99 zł196.99
Paperback
zł246.99
Subscription
Free Trial

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 1. vCenter Basic Tasks and Features

In this chapter, we will cover the follow recipes:

  • Choosing the right vSphere and vCenter edition
  • Booting a VM from a virtual CD-ROM
  • Using hosts with different CPUs in one cluster
  • Fixing VMware tools to autostart after Linux updates
  • Running vCenter on a VM
  • Managing several vCenter Servers from one client
  • Accessing new vCenter features
  • Accessing hosts via SSH
  • Securing host management access
  • Storing host logs on a shared datastore
  • Configuring remote logging

Introduction

This chapter covers some basic tasks and features administrators may need to use while working with vCenter. Most of the tips and advices in this chapter as well as in this book assume that you already have vCenter deployed and that it already has some hosts and datastores connected. You may be running vCenter with a trial license, which will work just fine if you decide to try some of the how-tos in this chapter. All features and settings described in this chapter exist in any vSphere 5 version unless otherwise noted.

Choosing the right vSphere and vCenter editions

The vCenter edition required for a particular environment is very much determined by the vSphere edition in use. The vSphere edition in turn is chosen based on the size of the environment and features that will be used.

How to do it...

To choose the vCenter edition that's right for your environment you need to:

  1. Determine the vSphere features required.
  2. Choose the vSphere edition based on environment size, features required, and growth expected.
  3. Select the vCenter edition if it's not included in the chosen vSphere edition.

vSphere editions

A vSphere license can be bought as part of a kit or separately. Kits include a vCenter license while other vSphere editions require a separate vCenter license. When choosing a vSphere edition, it may be a good idea to take a look at its kits first. An included vCenter license will save costs. If you determine that none of the available kits include the required features and capacity, select one of the separate vSphere editions.

The following table compares five main kits available and shows the features that are included in each kit:

Features

Essentials kits

Operations management kits (vSOM)

Essentials

Essentials Plus

Standard

Enterprise

Enterprise Plus

Physical CPUs included

6

6

6

6

6

Hypervisor

+

+

+

+

+

vMotion

 

+

+

+

+

High Availability (HA)

 

+

+

+

+

Data Protection (DP)

 

+

+

+

+

vSphere Replication (VR)

 

+

+

+

+

Operations monitoring, optimization and visibility

  

+

+

+

Fault Tolerance (FT)

  

+

+

+

Storage vMotion

  

+

+

+

Distributed Resource Scheduler (DRS)

   

+

+

Distributed Power Management (DPM)

   

+

+

Storage DRS

    

+

Distributed switch

    

+

Flash Read Cache

    

+

Kit editions are meant for smaller environments and have their limitations. Six processors included determine that the environment cannot be larger than three servers with two physical processors each. As a result, if there is a plan to grow the environment in the near future, choose one of the separate vSphere editions.

The following table shows the available vSphere editions and features included:

Features

Standard

Enterprise

Enterprise Plus

Standard with vSOM

Enterprise with vSOM

Enterprise Plus with vSOM

Physical CPUs included

(per-CPU license entitlement)

1

1

1

   

Hypervisor

(basic virtualization capabilities)

+

+

+

   

Operations monitoring, optimization and visibility

   

+

+

+

vMotion

+

+

+

+

+

+

High Availability (HA)

+

+

+

+

+

+

Data Protection (DP)

+

+

+

+

+

+

vSphere Replication (VR)

+

+

+

+

+

+

Fault Tolerance (FT)

+

+

+

+

+

+

Storage vMotion

+

+

+

+

+

+

Distributed Resource Scheduler (DRS)

 

+

+

 

+

+

Distributed Power Management (DPM)

 

+

+

 

+

+

Storage DRS

  

+

  

+

Distributed switch

  

+

  

+

Flash Read Cache

  

+

  

+

Remember that vSphere 5 is licensed per physical CPU. For instance, two physical servers with two CPUs each will require four vSphere 5 CPU licenses. If DRS is a requirement, four Enterprise licenses will be needed. To take advantage of the Storage DRS, you will need four Enterprise Plus licenses in this case.

Both the preceding tables include only the main features we believe are necessary to make a decision. A full feature comparison can be found on the Compare VMware vSphere Editions page at http://www.vmware.com/products/vsphere/compare.

Additional information on the existing features and editions as well as upgrade paths from vSphere 4 can be found at the following link: http://www.vmware.com/files/pdf/vsphere_pricing.pdf

vCenter editions

Each of the following vSphere kit editions includes one instance of vCenter:

  • Essentials
  • Essentials Plus
  • vSOM Standard
  • vSOM Enterprise
  • vSOM Enterprise Plus

Other vSphere editions do not include a vCenter license, and if a separate vSphere edition has been chosen, there are two options for the vCenter edition:

  • vCenter Server Foundation
  • vCenter Server Standard

It is important to know that according to the End User License Agreement, customers licensed under Essentials or Essentials Plus are not allowed to purchase any other vCenter addition. If you need to manage more hosts, then the solution is to upgrade the existing license to vSphere Standard or above and purchase vCenter Standard.

The following table compares vCenter editions:

Feature

Essentials

(part of Essentials or Essentials Plus kit)

Foundation

Standard

Maximum number of hosts that can be managed

3

3

1,000

Management service

+

+

+

Database server

+

+

+

Inventory service

+

+

+

vSphere Clients

+

+

+

vCenter APIs

+

+

+

Single Sign-On

+

+

+

vCenter Orchestrator

  

+

Linked Mode

  

+

There's more…

There is also an option to purchase a support plan from VMware along with the software. The two available options include:

  • Basic: Provides support during business hours
  • Production: Provides 24 x 7 support

The production support plan is recommended for critical environments. Both plans include an unlimited number of support cases. Any of the preceding subscriptions are required for at least one year.

VMware also offers an option for per incident support, which can be purchased in 1, 3, or 5-incident packs. This option is available for vSphere Essentials kit only.

Booting a VM from a virtual CD-ROM

If a VM has just been created and you are trying to install the operating system from a virtual CD-ROM, you can turn the VM on, connect the ISO image to the operating system, and reboot the VM. It will start booting from the CD-ROM right away.

If the operating system has already been installed and you need to boot this VM from the CD-ROM, it may be challenging, as the option to press Esc for Boot Menu is displayed for a very short period of time:

Booting a VM from a virtual CD-ROM

How to do it...

To increase the time for which this option is displayed so that you can press Esc, you'll need to change the Power On Boot Delay value. To do that, perform the following steps:

  1. Go to VM Settings | Options | Boot Options.
  2. Select the Power On Boot Delay option.
  3. Set the value to 3,000 so that the VM waits for 3 seconds for Esc.
    How to do it...
  4. The location of this setting in vCenter Web Client is similar:
    • Right-click on a VM
    • Go to Edit Settings...
    How to do it...
  5. Go to VM Options | *Boot options.
  6. Adjust the Boot Delay (*) setting.
    How to do it...

How it works...

Once Esc has been pressed, you'll get the Boot Menu options to choose from. Connect the ISO image, host or local CD-ROM in VM Settings, and choose CD-ROM drive from the Boot Menu:

How it works...

Using hosts with different CPUs in one cluster

One of the core vSphere features is vMotion. It allows administrators to move a running virtual machine from one host to another without interruption.

Unfortunately, one of the requirements for vMotion is to use hosts with the same processors so that the virtual machine that has been moved can keep running on a new host. This is due to the fact that newer processors, even within the same family, typically have additional features. New generations of processors can also have a different set of instructions. When features or instructions an application is using are not available, the application will crash.

Clusters consisting of hosts with different CPU generations can use Enhanced vMotion Compatibility (EVC) mode. In this mode, vCenter hides CPU features and instructions that are not available on older hosts. This way, it makes all hosts' CPUs in the cluster look like they are the same.

The obvious downside of using this feature is that the cluster's processors will all be the same or lower than the oldest host's CPU.

Getting ready

Things to consider before enabling the feature are as follows:

  • All hosts must have either Intel or AMD processors.
  • All cluster VMs running on hosts where EVC mode will be enabled must be shut down before the feature can be turned on.

How to do it...

To enable EVC:

  1. Switch to the Hosts and Clusters view.
  2. Right-click on your cluster and choose Edit Settings.
  3. Go to VMware EVC and click on Change EVC Mode.
    How to do it...
  4. Choose AMD or Intel depending on the host's CPU.
  5. Choose the best available option for processor generation.
    How to do it...
  6. In vCenter Web Client, this setting can be found by going to vCenter | Cluster | Manage | Settings | VMware EVC:
    How to do it...
  7. Press the Edit... button next to the VMware EVC section to change EVC mode:
    How to do it...

There's more…

Virtual machines always have to be off when changing EVC mode to an older processor generation. This is not a requirement when EVC mode is being raised. Unfortunately, in this case, new CPU features will not be available to VMs until they are powered off and back on. Suspending or restarting VMs is not sufficient because virtual machine EVC mode is determined when it's turned on.

Fixing VMware tools to autostart after Linux updates

From time to time, VMware tools that have been working fine before refuse to start automatically when the Linux guest is rebooted. VMware tools can be started manually using the following command:

# /etc/vmware-tools/services.sh start

Note

The preceding command and other commands in this book assume RHEL or CentOS and can be different for Debian or other Linux distributions.

The following error message may be displayed:

Fixing VMware tools to autostart after Linux updates

In most cases, this issue is related to recent OS updates; in particular, the Linux kernel update, which breaks the existing VMware tools installation.

As servers are not rebooted often, it may be hard to correlate the issue of VMware tools not starting automatically and OS updates.

How to do it...

To fix the issue, simply reinstall VMware tools the same way they were installed the first time. The following commands have been tested on CentOS 5 and depending on the Linux distribution, the commands you use and their sequence may be different.

  1. Initiate the VMware tools installation by going to VM menu and then navigating to Guest | Install/Upgrade VMware Tools:
    How to do it...
  2. For Linux guest, the Automatic option will not be available. Click on OK.
    How to do it...
  3. The VMware tools ISO image from the ESXi host will be connected to the virtual CD-ROM of the VM.
  4. Mount the image as follows:
    # mount /dev/cdrom /mnt/cdrom
    
  5. Extract the archive with VMware tool's installation files:
    # tar xzvf /mnt/cdrom/VMwareTools-<x.x.x-xxxx>.tar.gz -C /tmp/
    
  6. Start the installation. Switch –d is for the unattended installation with default settings:
    # cd /tmp/vmware-tools-distrib/
    # ./vmware-install.pl –d
    
  7. Reboot the virtual machine. VMware tools should start automatically as soon as the guest OS is back up:
    # shutdown –r now0
    

There's more…

Additional details about the issue can be found in the VMware KB 2050592 article on the VMware Knowledge Base website at http://kb.vmware.com/kb/2050592.

Running vCenter on a VM

Administrators have three options when it comes to deploying the vCenter Server. vCenter can be imported as a Linux-based virtual appliance or it can be installed on a physical or virtual Windows Server.

Running vCenter on a VM

How to do it...

For smaller environments, it makes sense to choose a vCenter appliance. Its installation and configuration is easier than deploying your own vCenter Server:

  1. Download the vCenter Server Appliance from my.vmware.com.
  2. Deploy the appliance from a template using the Deploy OVF Template... option from the File menu.
    How to do it...
  3. Open your web browser and go to http://<ip address of virtual appliance>:5480.
  4. Log in using the default credentials to configure vCenter:
    • Username: root
    • Password: vmware
  5. After logging in, go through the steps of the configuration wizard to start using the appliance.

There's more…

vCenter Appliance has its limitations. First of all, if an embedded database is used, this server will be able to manage only up to five hosts and up to 50 virtual machines. In vSphere 5.5, this limit has been increased to 100 hosts and 3,000 virtual machines.

Also, this solution doesn't support the Linked Mode configuration. More information about the supported services and limitations can be found in the Knowledge Base article KB2002531 at http://kb.vmware.com/kb/2002531.

vCenter Server on a VM

Running the vCenter Server on a virtual machine offers all virtualization advantages:

  • No additional hardware is needed, which means savings and flexibility.
  • Administrators can take advantage of using high availability features offered by vSphere—HA or FT.
  • vMotion offers additional flexibility and higher uptime.
  • Snapshots can be utilized as a rollback option.

Virtual machines are easier to manage but at the same time, there are a few concerns related to this approach:

  1. The main concern is that issues with the vSphere environment potentially can affect the vCenter Server and as a result, the administrator's ability to manage the environment and troubleshoot issues.

    For example, if a host where vCenter VM is running becomes unavailable, vCenter is not accessible until it's restarted and comes back online. In certain cases, HA fails to restart some VMs so vCenter may become unavailable for a longer time.

    The administrator can connect to hosts directly using the vSphere Client but in this case, the core features offered by vCenter will not be available.

  2. Another concern is related to environments that have only one host. Certain tasks such as ESXi updates require host maintenance mode, which means that all VMs need to be turned off. In this case, the vCenter Server has to be shut down and thus, Update Manager can't be used.

    Updating ESXi from the command line can be more time consuming and challenging in certain cases. In other words, running the vCenter Server on a VM in environments with only one ESXi host can introduce some administrative difficulties.

    Note

    In general, a single ESXi host with vCenter Server VM is not a recommended design option for the enterprise environment.

Managing several vCenter Servers from one client

There is a way to manage more than one vCenter Server from the same vCenter client. This is accomplished by using Linked Mode groups. Linked Mode group is a group of vCenter Servers that allows managing other members by connecting to any one of them.

Getting ready

This feature is available only in vCenter Server Standard edition and cannot be used with vCenter Server Appliance (vCSA).

The main requirement is that all group members must run the same version of vCenter. Other requirements are as follows:

  • Members must belong to the same Active Directory domain or different domains that have two-way trust relationships with each other.
  • DNS has to be operational for Linked Mode groups to work properly.
  • vCenter must be licensed or in evaluation mode.
  • The domain account is the local administrator on both vCenter Servers—the one that is being joined to the group and the target server.

How to do it...

To be able to manage additional vCenter Servers, they need to be joined to the Linked Mode group.

Joining vCenter to a group

The vCenter Server can be joined to a group either during installation or any time after. The Linked Mode group is created when the first member is being joined to a group that doesn't exist.

To join the running vCenter Server to the existing Linked Mode group, follow the ensuing steps:

  1. On the vCenter Server, go to Start | All Programs | VMware.
  2. Run vCenter Server Linked Mode Configuration.
  3. Select Modify linked mode configuration.
  4. Click on Join this vCenter server instance to an existing linked mode group or another instance.
  5. Click on Next.
  6. Enter the FQDN of an existing member and LDAP port.
  7. In case role conflict has been detected, choose a way to resolve it. You can either let vCenter rename the group or you can rename it yourself.
  8. Restart the vCenter Server.

If a member that is being joined to the Linked Mode group is running an older version of vCenter than other members of the group it has to be upgraded. Also, if vCenter on a member is upgraded, it will be disconnected from the group.

Removing vCenter from a group

To remove vCenter from a Linked Mode group, execute the following steps:

  1. On the vCenter Server, go to Start | All Programs | VMware.
  2. Run vCenter Server Linked Mode Configuration.
  3. Choose Modify linked mode configuration.
  4. Select Isolate this vCenter server instance from linked mode group and click on Next.
  5. Click on Continue and then on Finish.
  6. Reboot the vCenter Server.

Accessing new vCenter features

vSphere 5 introduced a new web client, which can be used to manage the environment along with the traditional vSphere Client we used before.

vCenter Web Client is just another way to access the environment using a web browser. Three major browsers—Internet Explorer, Firefox, and Chrome—are supported.

Web Client becomes the main administrative interface starting with vSphere 5.1 and while vSphere Client can still be used, a lot of new features introduced in vSphere 5 are available only through Web Client.

Some of these new features are:

  • Datastore cluster and Storage DRS
  • vSphere Replication
vSphere Data Protection
  • Enhanced vMotion
  • Drag-and-drop actions as well as bulk operations for vSphere objects

How to do it...

  1. To access your vSphere environment using Web Client, open your web browser and point it to https://<vCenter Server IP address>:9443/vsphere-client.
  2. On the VMware vSphere welcome page, click on the Log in to vSphere Web Client link.
    How to do it...
  3. From this page, you will be able to log in to vCenter using the same credentials that work for older clients.

There's more…

Take a look at the following error message:

There's more…

If the preceding error message is displayed, add port 9443 after the vCenter Server address or name in the URL: https://<vcenter-server>:9443/vsphere-client/. This will take you to the same login page, assuming vCenter was installed with default port settings.

Accessing hosts via SSH

In certain cases, you may need to access the ESXi host via SSH. This may be needed to run a script, troubleshoot an issue, or use a command or a feature not available via vSphere Client.

How to do it...

SSH access to ESXi hosts is disabled by default and can be enabled using the ESXi console and command line or through vCenter. To enable it from vCenter:

  1. Allow SSH port through the host's firewall.
  2. Start the SSH service on the host.

Opening the SSH port on the firewall

To allow the SSH port through the firewall on the ESXi host, execute the following steps:

  1. Go to the Hosts and Clusters view.
  2. Select the host and go to the Configuration tab.
  3. Click on Security Profile on the left.
  4. Click on the Properties... link next to the Firewall section.
    Opening the SSH port on the firewall
  5. The Firewall Properties window will open. Check SSH Server under the Secure Shell section.
    Opening the SSH port on the firewall
  6. Click on the Firewall button to allow only certain IP addresses to connect. Click on OK when finished to apply the changes.

In Web Client, perform the following steps:

  1. Select a host.
  2. Go to Manage | Settings | Security Profile.
    Opening the SSH port on the firewall
  3. Click on the Edit... button next to the Firewall section.
  4. Select the SSH Server option and click on OK as shown in the next screenshot.

    Tip

    To allow connections from only certain IP addresses, uncheck the Allow connections from any IP address option and enter the IP addresses separated by commas.

    Opening the SSH port on the firewall

Starting an SSH service

To start an SSH service on the host from the same place under Configuration | Security Profile:

  1. Click on the Properties... link next to the Services section.
  2. Select SSH in the list of services and click on Options....
    Starting an SSH service
  3. Click on the Start button.
  4. Once the service starts, both windows can be closed.

From Web Client, perform the following steps:

  1. Select a host.
  2. Go to Manage | Settings | Security Profile.
  3. Scroll down to the Services section.
    Starting an SSH service
  4. Click on the Edit button.
  5. Select SSH from the list.
  6. Click on Start.
    Starting an SSH service

There's more…

Now you will be able to access the ESXi command line using the SSH client.

Note

Note that when SSH service is running on the host, vCenter marks it with a yellow exclamation mark as it is a configuration issue. Enabling SSH is considered to be an insecure practice.

There's more…

Securing host management access

When it comes to managing ESXi hosts, there are a few interfaces available to perform management tasks:

  • Common Information Model (CIM), which is used for vCenter Server access.
  • Direct Console User Interface (DCUI), which is also known as the ESXi console.
  • Tech Support Mode (TSM)
    • Local—console access to the ESXi command line.
    • Remote—SSH access to the ESXi command line.
  • vSphere Application Programming Interface (API) such as vSphere Client, PowerCLI, vCLI, and so on.

Remote TSM has been covered in the Accessing hosts via SSH recipe in this chapter. Local TSM and DCUI are console options available if you have physical access to the host or remote console access such as iDRAC.

All interfaces except vSphere API can be managed from vCenter under host Configuration | Security Profile | Services:

Securing host management access

Both TSM options can also be configured from the DCUI console.

The following table summarizes different management interfaces and where each one can be configured:

Management interface

Description

Configuration from vCenter

Configuration from DCUI

CIM

vCenter access

Host's Services

 

DCUI

ESXi console

Host's Services

 

Local TSM

Console CLI

Host's Services

Troubleshooting menu

Remote TSM

SSH access to CLI

Host's Services

Troubleshooting menu

APIs

vSphere Client, PowerCLI, vCLI

  

VMware offers a way to secure management access to hosts called Lockdown mode.

Lockdown mode is a security feature, which limits the administrator's ability to manage the ESXi host only through vCenter. When a host is in this mode, the administrator cannot use the command line or run scripts. Also, any third-party software cannot get or change any settings on this host.

Note

User root will still be able to access DCUI but not TSM.

The following table summarizes each management interface's behavior in Normal and Lockdown modes:

Management interface

Normal mode

Lockdown mode

CIM

User and group permissions

Only vCenter server

DCUI

User root and users with administrator rights

Only root user

Local TSM

Only root user

None

Remote TSM

Only root user

None

APIs

User and group permissions

Only vCenter vpxuser

Additional security always means inconvenience. If the vCenter VM crashed or didn't come up after the reboot, and access to vCenter has been lost, ESXi has to be reinstalled on hosts that are in Lockdown mode to restore access.

How to do it...

To enable lockdown mode from vCenter, execute the following steps:

  1. Lockdown mode can be enabled per host by going to Configuration | Security Profile:
    How to do it...
  2. Click on Edit next to Lockdown Mode, select Enable Lockdown Mode, and click on OK:
    How to do it...

Note

All the existing vCenter Client connections to the host will be dropped immediately.

Users that are currently logged in to DCUI or TSM will still have access after Lockdown mode has been enabled until they log off. Logged in users will not be able to switch Lockdown mode off in this case.

All the existing user and group permissions will be restored once Lockdown mode is disabled if it was enabled from vCenter.

To enable Lockdown Mode from Web Client, execute the following steps:

  1. Select a host.
  2. Go to Manage | Settings | Security Profile.
  3. Scroll down to the Lockdown Mode section.
  4. Click on the Edit next to the section.
  5. Check Enable Lockdown Mode.
  6. Click on OK.
    How to do it...

Enable Lockdown mode from the ESXi console

To enable Lockdown mode from DCUI, press F2, log in with the root user, move the cursor to the Configure Lockdown Mode item, and press Enter.

Enable Lockdown mode from the ESXi console

Tip

All the existing user and group permissions will be lost once Lockdown mode is enabled from DCUI so the best practice is to use vCenter to enable Lockdown.

Storing host logs on a shared datastore

ESXi server logs are stored locally by default on each host in the /var/log directory. In certain cases, there is a requirement to store logs on a datastore.

Possible scenarios are hosts without local storage, where all locally stored logs disappear after reboot, compliance requirements where there is a requirement to store logs in an alternative location, or space concerns where there are many hosts and the administrator has to keep older logs.

How to do it...

vCenter allows redirecting ESXi logs to one of the datastores accessible to the host. This can be accomplished by going to Configuration | Advanced Settings | Syslog by changing the variable Syslog.global.logDir to an appropriate value [Datastore]/Folder:

How to do it...

In vCenter Web Client, these options can be found by going to Host | Manage | Settings | Advanced System Settings, as shown in the following figure:

How to do it...

There's more…

Once this change is made, you will see log files created in the configured folder if you browse the datastore.

From the same Advanced Settings section, you can configure the additional logging options:

Option

Description

Syslog.global.logDirUnique

If chosen the ESXi syslog will create a separate folder for this host in the specified logging folder. The folder will be named with the ESXi hostname.

This option is helpful when the logging folder is shared between more than one host.

Syslog.global.defaultRotate

This is the maximum number of log files to keep after rotation.

Syslog.global.defaultSize

This is the maximum log file size in kilobytes. Once reached, the log file will be rotated.

The same logging parameters can also be configured from the ESXi command line using the esxcli system syslog command.

For example, to validate logging settings configured from vCenter use:

esxcli system syslog config get

VMware KB 2003322 gives more details about configuring syslog, including CLI command sequence, which is available at http://kb.vmware.com/kb/2003322.

Configuring remote logging

For compliance and security reasons, administrators may need to redirect ESXi logs to a remote syslog server.

How to do it...

This configuration is done by going to Configuration | Advanced Settings | Syslog and changing the variable Syslog.global.logHost to <protocol>://<syslog host>:<port> as shown in the following screenshot:

How to do it...

From Web Client, perform the following steps:

  1. Go to Manage | Settings | Advanced System Settings.
  2. Select the Syslog.global.logHost option in the list.
  3. Click on the Edit button above the list.
  4. Adjust the value of the Syslog.global.logHost option.
  5. Click on OK.
    How to do it...

Note

In most cases, syslog uses UDP and that's why in case of high logging volume or high network utilization, some log entries may be lost. Consider this when planning the logging infrastructure.

You can configure the syslog and datastore logging mentioned in storing host logs on a shared datastore at the same time for each host.

Also, administrators may need to configure the ESXi firewall to allow outbound syslog traffic. This is done by going to Configuration | Security Profile | Firewall and performing the following steps:

  1. Click on Properties next to the Firewall section.
  2. Make sure syslog is chosen.
  3. Click on OK.
    How to do it...

Alternatively, from Web Client, perform the following steps:

  1. Select a host.
  2. Go to Manage | Settings | Security Profile.
  3. Click on the Edit button next to the Firewall section.
  4. Select syslog in the list.
  5. Click on OK.
    How to do it...

Once this configuration is completed the remote syslog server will start receiving logging data.

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 zł20 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 zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 578.97
VMware vSphere 5.5 Essentials
zł197.99
vCenter Troubleshooting
zł133.99
VMware vCenter Cookbook
zł246.99
Total 578.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.