Information about this Document

VCP Exam

 

 

vSphere Editions and Licenses

 

Paravirtualization vs Full Virtualization vs Hardware Assist

http://www.vmware.com/files/pdf/VMware_paravirtualization.pdf

 

 

Differences in ESX and ESXi

 

Upgrading from vSphere 4 to vSphere 5

 

dvSwitch Best Practices

Here is a white paper for best practices concerning distributed virtual switches:

http://www.vmware.com/files/pdf/techpaper/vsphere-distributed-switch-best-practices.pdf

 

dvSwitch -  Load Based Teaming

Distributed vSwitches offer an extra choice for NIC Teaming, “Route based on physical NIC load”.  Here is a good explanation, plus a comparison to IP-hash based teaming.

http://frankdenneman.nl/2011/02/ip-hash-versus-lbt/

 

.dvsData folder – Distributed vSwitch Data

DVS information is stored on each ESX host located at /etc/vmware/dvsdata.db. This is a binary file (database) that can be dumped with the net-dvs command and the “-f” switch.   The data is also automatically stored on a shared VMFS volume in a folder named “.dvsData”.  Here is an interesting article concerning how DVS data stored on vCenter can get out of sync with a host and what action to take to correct the issue:  http://kb.vmware.com/kb/1010913

 

Cisco Nexus 1000V switch

Cisco has created the world’s first 3rd party distributed vswitch for use with vSphere.  Here are some details:

http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9902/data_sheet_c78-492971.html   and   http://www.cisco.com/cdc_content_elements/flash/dataCenter/ciscofeaturenavigator/index.html

 

Deployment Guide:  http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9902/guide_c07-556626.html

 

 

DMZ virtualization using Cisco Nexus 1000v:  http://www.vmware.com/resources/techresources/10035

 

Choices for virtual Ethernet Adpapters:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1001805

 

new choice in vSphere 5 = e1000e: 

 

Details on Distributed port groups:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010593

 

Private VLANs

 

 

VMXNET3 Performance white paper:

http://www.vmware.com/pdf/vsp_4_vmxnet3_perf.pdf

 

VMSafe

VMSafe is a technology and set of APIs that allow 3rd party vendors to invent new products to secure vSphere-based servers and applications in ways that could not be accomplished in non-virtualized environments.

http://www.vmware.com/technical-resources/security/vmsafe.html

 

Beacon Probing

http://kb.vmware.com/selfservice/microsites/search.do?language=en,US&cmd=displayKC&externalId=1005577

NetApp:  Comparison of FC, iSCSI, and NFS at various bandwidths

This document provides the results of tests performed by NetApp on NetApp storage using FC, iSCSI, and NFS access.  The goals of the test was not to measure maximum performance, but instead to measure performance under low, medium, and high workloads.  The results indicate: 

 

Test results - http://media.netapp.com/documents/tr-3808.pdf

 

 

iSCSI Considerations – a multi-vendor collaboration

Here is a link to good whitepaper on configuring iSCSI written as a collaboration from multiple vendors:   http://virtualgeek.typepad.com/virtual_geek/2009/09/a-multivendor-post-on-using-iscsi-with-vmware-vsphere.html

 

iSCSI – port binding

Here is a simple illustration of utilizing multiple vkernel ports on the same virtual switch, but separate virtual port groups, and port binding to distribute I/O manually across multiple paths:  http://goingvirtual.wordpress.com/2009/07/17/vsphere-4-0-with-software-iscsi-and-2-paths/

 

NFS Considerations – a multi-vendor collaboration

http://virtualgeek.typepad.com/virtual_geek/2009/06/a-multivendor-post-to-help-our-mutual-nfs-customers-using-vmware.html

 

TPGS and SLUA:

Explanation of Target Port Group Support (TPGS) and Asymmetric Logic Unit Access (ALUA):  http://developers.sun.com/solaris/articles/tpgs_support.html

 

EMC PowerPath VE

The native multi-pathing modules in vSphere do not provide true load balancing; however, vSphere provides vStorage APIs and a pluggable archietecture permitting partner storage vendors to produce unique multi-pathing modules.  The primary example of this is EMC PowerPath VE, which could be used to provide true load balancing in a vSphere environment.

 

 

 

vSphere Storage Concepts and Troubleshooting

Here is some really good information on understanding how to analyze and troubleshoot Storage performance issues in vSphere.:

·      http://blogs.vmware.com/vsphere/2012/05/troubleshooting-storage-performance-in-vsphere-part-1-the-basics-.html?utm_source=Notes+from+VMware&utm_campaign=86c74b94f4-Notes_from_VMware_June_17_2012&utm_medium=email

·      http://blogs.vmware.com/vsphere/2012/06/troubleshooting-storage-performance-in-vsphere-part-2.html

·      http://blogs.vmware.com/vsphere/2012/06/troubleshooting-storage-performance-in-vsphere-part-3-ssd-performance.html

·       

 

Changed Block Tracking

Some vSphere features rely on Changed Block Tracking, which is a vmkernel feature introduced with vSphere 4.0

 

http://itknowledgeexchange.techtarget.com/virtualization-pro/what-is-changed-block-tracking-in-vsphere/

 

VMFS Track Alignment

Improper alignment of a VMFS partition can certainly result in poor performance of applications.  Typically, using the vSphere Client to create VMFS datastores result in proper alignment, but this may not always be the case.   Here is a document that discusses the impact and the steps to ensure proper alignment;  http://www.vmware.com/resources/techresources/608 and http://www.vmware.com/pdf/esx3_partition_align.pdf. 

 

Guest O/S Track Alignment:  Likewise, the guest operating system’s file system should also be properly aligned to ensure the best performance.  Typically, this rule should only be applied to the non-system disks.  For example, when adding a second disk to a Windows server that is intended to be used to install application software, the following Diskpart commands could be used:

Diskpart

list disk

select disk 1

create partition primary align=1024

assign letter=E

format fs=ntfs unit=64K label="Applications" nowait

 

In this example, the disk to be partitioned is Disk 1 (the first disk is Disk 0), its beginning partition is offset at 1024 KB, its drive letter is E:, and unit of allocation is 64K.

 

Here is a good reference:    http://msdn.microsoft.com/en-us/library/dd758814(v=sql.100).aspx

 

VMFS Extents
Some administrators like to span a VMFS volume across multiple LUNs and partitions (VMFS extents), while others prefer to avoid spanning at all costs.  Here is a good blog to help you decide:

http://blogs.vmware.com/vsphere/2012/02/vmfs-extents-are-they-bad-or-simply-misunderstood.html

 

VMFS and SCSI Reservations

Certain activities within a VMFS datastore may result in using SCSI Reservations to temporarily lock the underlying LUN and impacting other hosts sharing the datastore.  Here is a reference:  http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1005009

 

Expart

Here is information about a free tool from Dell that easily extend the size of partitions within Windows 2003 servers, including VMs:

http://www.vmwareinfo.com/2009/12/dell-extpartexe-extend-volumes-easily.html

This is the same tool that is currently used in VMware certification course labs.

 

 

Virtual Disk options for VMs in vSphere:

ESX servers use monolithic v-disk files (vmdk files) that are pre-allocated to the configured size. These files do Not grow. Having said that, templates can be stored in various formats and other Vmware products allow additional formats. Here are the options:

 

Reclaiming (Shrinking) Thin-Provisioned Virtual Disks

Thin provision virtual disks do not automatically shrink the virtual disk files whenever files in the virtual disk are deleted.  Here is a link that provides a manual method for shrinking the disk:  http://www.virtualizationteam.com/virtualization-vmware/vsphere-virtualization-vmware/vmware-esx-4-reclaiming-thin-provisioned-disk-unused-space.html

 

vCenter Converter Standalone

the standalone version has more features than the Server component used in class.  For example, it provides options to automatically shutdown the source server, re-synchronize final data changes, and boot up the new VM. 

User Guide:  http://www.vmware.com/pdf/vsp_vcc_421_admin_guide.pdf

Hardware Health Monitoring / CIM

http://www.vmware.com/files/pdf/techpaper/hwhm41_technote.pdf

 

NUMA Considerations

Many newer CPUs use NUMA architecture.  Here is  good document concerning NUMA and large VM configurations:

http://frankdenneman.nl/2010/02/sizing-vms-and-numa-nodes/

 

Memory Management in vSphere

ESX Server provides a Ballooning Mechanism to borrow RAM from a rich VM and give to a poor VM.  Here is a link to a good, detailed article that includes an explanation of ballooning and other memory related information:

http://www.vmware.com/files/pdf/perf-vsphere-memory_management.pdf

 

Memory compression – New Feature in vSphere 4.1

The vmkernel now looks to compress memory in a memory compression cache within the VM.  This step exists just prior to vm swapping step:

·     Memory compression summary:  http://www.gabesvirtualworld.com/memory-management-and-compression-in-vsphere-4-1/

·     Memory compression whitepaper:  http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.pdf

 

 

ESXTOP

http://communities.vmware.com/docs/DOC-9279

 

 

DPM:

 

Power Savings in vSphere

vCenter Linked Mode:

 

 

 

Performance Best Practices for vSphere

http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.1.pdf

 

Performance and Scalability for SQL Server on vSphere:

http://www.vmware.com/files/pdf/perf_vsphere_sql_scalability.pdf

 

 

vscsiStats command

The vscsiStats command can be run from the Service Console prompt on an ESX server to collect performance data on the activity of the virtual SCSI disks used by VMs. 

            To list all VMs, their world IDs, and virtual SCSI devices use this command:

 

vscsiStats -l

Use the following command to collect SCSI related performance data from a specific VM and save the data in a CSV file. 

vscsiStats -p all -c -w <worldID> > /tmp/vmstats-<vmname>.csv

When finished, be sure to stop the data collection with this command:

vscsiStats -x -w <worldID>

 

Macro used to built histograms from a CSV file produced by vscsiStats:

·                                 http://www.gabesvirtualworld.com/converting-vscsistats-data-into-excel-charts/

·                                 http://www.gabesvirtualworld.com/wp-content/uploads/2010/02/vscsiStats-excel-macro.txt

 

Running Exchange Server on vSphere using NFS, iSCSI, and Fiber

http://www.vmware.com/files/pdf/vsphere_perf_exchange-storage-protocols.pdf

 

Configuring Microsoft Network Load Balancer on VMware Infrastructure:

 

 

VMWare ESX (ESXi) Monitoring Modes

The vmkernel can use Binary Translation to run the virtual CPU of a VM, but new physical CPUs allows the Virtual Machine Monitor (VMM) to be moved to the pCPU (will allow the VMM to run on the CPU beneath Ring 0.)   Likewise, newer pCPUs can virtualize the Memmory Management Unit (MMU).   Virtualizing the VMM and MMU allows the VM to execute more efficiently.  This should occur automatically, whenever the hardware supports it.  To determine if a VM is actually utilizing hardware based virtualization, follow the advice in this link:

http://virtualizationeh.ca/2010/11/23/checking-vsphere-monitor-modes-and-performance-implications/

 

 

Paravirtualized devices

The paravirtualized SCSI adapter recently resulted in improved throughput with less CPU utilization compared to the standard LSI adapter.  References:

 

VM Direct Path I/O

For special cases where a VM-based application requires extremely high performance, higher than normally expected by a VM, VMDirectPath may be useful.  Basically, some I/O devices (a very limited list) may be configured to allow direct access by one VM.  In other words, the guest O/S would have direct access to the device, rather than the vmkernel.

 

http://www.vmware.com/pdf/vsp_4_vmdirectpath_host.pdf

 

Host Cache Configuration

In ESXi 5, a new feature called Host Cache has been created.  It allows swapping to host cache, which means swapping to a Solid State Drive.  Here is a nice article:

http://www.yellow-bricks.com/2011/08/18/swap-to-host-cache-aka-swap-to-ssd/

 

 

Security Hardening and Compliance

Here is the latest released Official VMware Security Hardening Guide for vSphere

http://communities.vmware.com/servlet/JiveServlet/downloadBody/15413-102-2-18829/vSphere%204.1%20Hardening%20Guide%20April%202011.pdf

 

vCenter Configuration Manager is worth a look as a tool to help verify compliance with regulatory standards and industry best practices, such as VMware Hardening Guidelines, PCI, FISMA, HIPPA, and SOX:

http://www.vmware.com/files/pdf/vmware-vcenter-config-manager-compliance-SB-EN.pdf

 

 

Deep Dive DRS

http://www.yellow-bricks.com/drs-deepdive/

 

Impact of Memory Reservation

http://frankdenneman.wordpress.com/2009/12/08/impact-of-memory-reservation/

 

 

MSCS on vSphere 5

http://pubs.vmware.com/vsphere-50/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-50-mscs-guide.pdf

 

Using P2V (VMware Converter) on Domain Controllers

Typically, I prefer Not to P2V domain controllers, but instead use dcpromo in a Windows VM, then decommission old physical domain controllers.  Here are links with details on the challenges and options for performing P2V Migrations of domain controllers

http://vknowledge.wordpress.com/2010/11/03/how-to-p2v-a-domain-controller/

 

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006996

 

http://michael.requeny.com/2011/03/07/p2v-domain-controllers-in-depth/

 

VMware Fault Tolerence

 

vSphere Log Files

Here is a link that explains the purpose of many of the log files located on ESXi servers:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2004201

 

ESXi log files are not persisted during shutdown, so it is best to configure a datastore to hold the logfiles and / or configure central logging via syslog using a syslog receiver or via vilogger using vSphere Management Assistant.  Here are some details for syslog:

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2003322

 

And more details, including description of log file:

http://kb.vmware.com/selfservice/php/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2004201

 

And details for changing the scratch partition:

http://kb.vmware.com/selfservice/php/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1033696

 

 

VMWare Data Recovery

Document with information for configuring and supporting VDR:  http://www.google.com/url?sa=t&source=web&ct=res&cd=10&ved=0CCcQFjAJ&url=http%3A%2F%2Fmyvirtualcloud.net%2F%3Fp%3D88&rct=j&q=vmware+data+recovery+troubleshooting&ei=K7nFS6XjGJXy9ASLlJipDg&usg=AFQjCNEviFJpnJMgAZz5bUo2ai754ksGpQ

VMotion – Under the Covers

What really happens during a VMotion migration?  You will likely see that the following links provide more detail than the descriptions provided in the course materials:

·      http://blogs.vmware.com/uptime/2011/02/vmotion-whats-going-on-under-the-covers.html

·      http://www.vmware.com/files/pdf/vmotion-perf-vsphere5.pdf

·      http://www.vmware.com/pdf/usenix_vmotion.pdf

 

 

VMotion CPU Compatibility

Here is a good link for CPU Compatibility for VMotion:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003212

 

 

Commands and scripting

·      VMware vSphere API Reference:  http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/index.html

PowerCLI

Several automation tools are available to function with vSphere.  The most powerful tool is probably the PowerCLI.  Generally, if any vCenter task requires automation beyond what the vSphere client provides or if the client does not adequately provide a desired function, the first place to turn to may be PowerCLI.  It provides a command set that allows the creation of scripts to call operations to be run in vCenter and the ESX servers.

 

Image Builder

vSphere 5 offers Auto Deploy and Image Builder which can be used to automate the deployment and configuration of ESXi hosts.

http://virtualbill.wordpress.com/2011/08/19/vmware-vsphere-5using-image-builder-for-custom-installation/

 

Visio Stencils

 

 

vSphere Orchestrator:

 

 

good blogs, websites, etc. focused on virtualization

 

Virtual storage products

This link provides a list of vm-based storage products that may be useful for proof of concept labs, where shared storage is required, but a real SAN does not exist:

http://vmsupergenius.com/free-storage-for-your-lab/

 

How to install ESXi in a VM on vSphere 5

http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/

 

Recommended books:

 

Recommended Reading from VMware:

 

 

AutoLab

Here is a tool that may simplify deploying a nested vSphere infrastructure (running ESXi in VMs) in a lab environment for those wanting to practice for VCP or gain familiaraity.

 

http://www.labguides.com/autolab/

 

VMware View – Supplemental Documentation

Here is some information to supplement the VMware View Install and Configure course:

http://virtualizationinformation.com/docs/ViewSupplementalDocumentation.htm