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

 

 

 

.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

 

Command to configure Nic-Teaming on ESXi

The vim-cmd command can be used to configure nic-teaming from the troubleshooting mode on an ESXi server.  For example, to configure IP-hash nic teaming for the management port, use the following command:

vim-cmd hostsvc/net/portgroup_setnicteaming-policy-loadbalance_ip vSwitch0 “Management Network”

 

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.

 

 

Changed Block Tracking

Some vSphere features, such as Storage VMotion and VMware Data Recovery, 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 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.

 

 

General Virtual Machine Recommendations

 

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

 

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

 

 

 

Security Hardening

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

 

 

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

http://www.vmware.com/pdf/vsphere4/r41/vsp_41_mscs.pdf

 

 

VMware Fault Tolerence

 

vSphere Log Files

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

http://www.vmwarewolf.com/which-esx-log-file/

 

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

ESXi DCUI Administration

In the bizarre scenario, where the local or remote troubleshooting mode on the ESXi server still functions, but the Direct Console User Interface does respond (such as pressing F2 does nothing), the DCUI service can be restarted:

cd /etc/init.d/

./DCUI restart

 

The /etc/chkconfig.db file contains a list of all services that can be restarted (or stopped or started) on the ESXi server in a similar manner.

 

Uninstall VPX and HA agents

When troubleshooting issues, where the suspicion exists that the vpxa agenet or the HA agent on a host is the wrong version or corrupt, then the following link may be useful to install these agents.  One option may be to remove the host from the cluster and then from vCenter.  Then, re-add the host to vCenter and then the cluster, which will attempt to reinstall the vpxa agent and the HA agent.  If we need to remove the agents at the command level, then take a look at this link:

http://www.zealkabi.com/2009/02/remove-ha-and-vpxa-virtualcenter-agents.html

 

 

 

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/

 

 

Recommended books:

 

Recommended Reading from VMware:

 

 

Performance Tuning Presentations by John Davis

 

 

Hardware Vendor specific documentation related to vSphere

 

VMware View – Supplemental Documentation

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

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