VCAP6-DCV Deploy Study Guide

Section 1 – Create and Deploy vSphere 6.x Infrastructure Components

Objective 1.1 – Perform Advanced ESXi Host Configuration

Objective 1.2 – Deploy and Configure Core Management Infrastructure Components

Objective 1.3 – Deploy and Configure Update Manager Components

Objective 1.4 – Perform Advanced Virtual Machine Configurations

Read More

Back To Basics: Migrating from vSS to vDS in vSphere 6

In this post we will see how to migrate from vSphere Standard Swith to vSphere Distributed Switch. Let’s get started.

Before performing any migration, make sure you have a vDS deployed and fully configured i.e portgroups created, uplinks created, appropriate uplinks placed in respective portgroups.

Here is a review of my environment.

1: I have a vDS created and different port groups for separation of duties. 

2: Uplinks created and meaningfully named.

3: Teaming and Failover configured. Each of the portgroup in my lab have only one active uplink. Rest of them I have placed in unused. 

4: And this is how the networking is layout for the host which I will be migrating to vDS. This host have 2 vSS.

  • vSwitch0 have Management and vMotion VMkernel portgroup along with a VM Network portgroup to which my vCSA is connected.

  • vSwitch1 have 2 portgroups configured for iSCSI storage connectivity. Port binding is enabled here to achieve multipathing. 
Read More

VCAP6-DCV Deploy Objective 3.1

In this post we will cover following topics:

  • Create and manage vSS components according to a deployment plan:
    • VMkernel ports on standard switches
    • Advanced vSS settings
  • Configure TCP/IP stack on a host
  • Create a custom TCP/IP stack
  • Configure and analyze vSS settings using command line tools

Lets get started by going through each topic one by one.

                                          Create and Manage vSphere Standard Switch

When Esxi is installed, a standard switch aka vSS is also created by default. Working mechanism of a standard switch is very similar to a physical switch in the sense that a standard switch works at layer 2, forwards frames to other switch ports based on the MAC address, and supports features such as VLANs and port channels.

Esxi host physical NIC’s serves as uplinks to the standard switches and through these uplinks vSS communicate with the rest of the network. A vSS provide the network connectivity:

  • between virtual machines within the same ESXi host.
Read More

My VCAP6-DCA Deploy (3V0-623) Exam Experience

I haven’t blogged for quite a bit of time as I was busy in my VCAP6-Deploy exam and finally I passed my exam last saturday. There is a lot of things which I want to share about my exam experience and the things I learned during my preprations. 

I passed my VCP 6 exam back in june 2017 and since then a strong feeling about going for VCAP exam started darting every now and then in my mind. I have few certifications but none of them were advance level and this thought pumped me up for going for this exam.

I work as a operations engineer in OVH vCloud Air division and interacts with virtualization/Networking/Storage things on day to day basis and this certainly was an advantage as I already have hands on few of the topics mentioned in VCAP exam blueprint. 

My preparation

I started my preparation by downloading the VCAP6-Deploy exam blueprint and had a rough look on all the objectives.Read More

How To Perform LUN Masking in vSphere 6

What is Lun Masking?

LUN masking is a way to control which LUNs to be made visible to Esxi host. If you have a storage array with multiple LUN’s and you want that an Esxi host should only be seeing a subset of LUN’s and not all, you can use lun masking technique.

Lun masking is totally opposite of lun zoning, where the storage array configuration determines which LUNs are visible to a host.

Last year I was doing a lab on vSphere Replication setup and wanted a subset of LUN’s from my openfiler appliance to be visible in my source site and remaining lun’s in my protected site. That was the first time when I felt need for masking the paths to storage array so that all my Esxi host from both sites, should not be seeing/mounting all the Lun’s which I created on my openfiler appliance.

Although I ended up doing the configuration change on openfiler side (same like zoning), but the idea remained always in my mind to use Lun masking someday.Read More

VCAP6-DCV Deploy Objective 2.3

Objective 2.3 of VCAP6-Deploy exam covers following topics

  • Analyze and resolve storage multi-pathing and failover issues
  • Troubleshoot storage device connectivity
  • Analyze and resolve Virtual SAN configuration issues
  • Troubleshoot iSCSI connectivity issues
  • Analyze and resolve NFS issues
  • Troubleshoot RDM issues

Lets discuss each topic one by one

                               Analyze and resolve storage multi-pathing and failover issues

There can be hundreds of reason for multipathing and failover issues and troubleshooting these issues comes with experience only. Issues with multipathing can be because of issues on storage side (SAN Switch, Fibre configuration etc)  or from vSphere side. In this post we will focus only on vSphere side troubleshooting.

In my lab I am using openfiler appliance for shared storage and my vSphere hosts are configured to use software iSCSI to reach to openfiler. Each host has 2 physical adapters mapped to two disting portgroups configured for iSCSI connection and both portgroups are complaint with iSCSI Port Binding settings

VMware KB-1027963 explains in great details about storage path failover sequence in vSphere. Read More

VCAP6-DCV Deploy Objective 3.4

Objective 3.4 of VCAP6-Deploy exam covers following topics

  • Perform a vDS Health Check for teaming, MTU, mismatches, etc.
  • Configure port groups to properly isolate network traffic
  • Use command line tools to troubleshoot and identify configuration issues
  • Use command line tools to troubleshoot and identify VLAN configurations
  • Use DCUI network tool to correct network connectivity issue

Lets discuss about these topics one by one.

                      Perform a vDS Health Check for teaming, MTU, mismatches, etc.

The network configuration for the vSphere infrastructure is a very cumbersome task and if the process is not automated then there are chances of configuration error. Typical network configuration includes tasks like configuring VLAN, Setting uplinks, NIC teaming, configuring VLAN etc. 

Now if anyone of the above configuratin is misconfigured, it can lead to host disconnection, VM traffic not traversing to destination, storage disconnection (if using iSCSI) or any other issues.

In earlier versions of vSphere, there were no tools available that could help resolve such misconfigurations across the physical and virtual switches.Read More

VCAP6-DCV Deploy Objective 7.3

Objective 7.3 of VCAP6-Deploy exam covers following topics:

  • Backup and restore distributed switch configurations

  • Backup and restore resource pool configurations

  • Export Virtual Machines to OVA/OVF format

  • Use a Host profile to recover an ESXi host configuration

Lets learn about these topics one by one

                                         Backup and restore distributed switch configurations
 
You can export vSphere distributed switch and distributed port group configurations to a file. The file preserves valid network configurations, enabling distribution of these configurations to other deployments.
To export vSphere Distributed Switch configurations using the vSphere Web Client:
 
1: Browse to a distributed switch in the vSphere Web Client navigator and Right-click the distributed switch and click Settings > Export Configuration
  

2: Select the Export the distributed switch configuration or Export the distributed switch configuration and all port groups option.

3: Click Yes to save the configuration file to your local system. 

4: Select a location your computer where you want to save the backup file and also provide a name for the backup file.

Read More

Hardening Virtual Machine Security

Securing virtual machines in a virtualized environment is equally important as securing physical servers. In this post we will learn a few techniques for hardening a virtual machine security. Although its not possible to cover everything in a single post. 

1: Remove Unnecessary Hardware Devices

If you have work inside a datacenter, you might have noticed none of the physical servers are equipped with CD RM/Floppy drive. This is done intentionally so that no one can use these removeable devices to perfor actions for which they are not authorized to.

Virtual machines are no different than physical servers and its equally important to make sure external devices are attached to a VM when its actually needed and as soon as work is completed, make sure to dismount/remove any Floppy drives or CD-ROM drives.

Force a VM to boot into Bios and disable any Serial ports, Parallel ports or Floppy disk controller.  Read More

List services registered with SSO in vSphere 6

Method of listing services registered to SSO in vSphere 5.x and 6.x are very different. In vSphere 5.x list of registered services can be found by running command ssolscli.cmd.

In vSphere 6 a new python script “lstool.py” was introduced for this purpose and which can be found in directory : /usr/lib/vmidentity/tools/scripts/

If you are using vCSA and vCenter is deployed with external PSC, then login to psc node via root user and run below command to see list of available option

You will see below output

Now in order to see list of services that are currently registered to your SSO, run below command:

You will see output similar to

For windows based vCenter installation, you have to use below command

Read More