02 Vsphere Services Consultant FAQ
02 Vsphere Services Consultant FAQ
© 2010 VMware, Inc. All rights reserved. Protected by one or more of U.S. Patent Nos. 6,075,938,
6,397,242, 6,496,847, 6,704,925, 6,711,672, 6,725,289, 6,735,601, 6,785,886, 6,789,156, 6,795,966,
6,880,022, 6,944,699, 6,961,806, 6,961,941, 7,069,413, 7,082,598, 7,089,377, 7,111,086, 7,111,145,
7,117,481, 7,149,843, 7,155,558, 7,222,221, 7,260,815, 7,260,82f0, 7,269,683, 7,275,136, 7,278,030,
7,277,998, 7,277,999, 7,281,102, 7,290,253, 7,356,679, 7,409,487, 7,412,492, 7,412,702, 7,424,710,
7,428,636, 7,433,951, 7,434,002, and 7,447,854; patents pending.
VMware, VMware vSphere, VMware vCenter, the VMware “boxes” logo and design, Virtual SMP and
VMotion are registered trademarks or trademarks of VMware, Inc. in the United States and/or other
jurisdictions. All other marks and names mentioned herein may be trademarks of their respective
companies.
VMware, Inc
3401 Hillview Ave
Palo Alto, CA 94304
www.vmware.com
Contents
Introduction...............................................................................................7
How to Use this FAQ............................................................................................................... 7
Tips for Effective Presentations and Discussions....................................................................7
vSphere Overview....................................................................................8
Virtualization and VMware...................................................................................................... 8
Key VMware vSphere Features.............................................................................................. 9
Licenses................................................................................................................................ 12
Evaluations........................................................................................................................... 13
vSphere Architecture..............................................................................13
ESX/ESXi.............................................................................................................................. 13
ESX Only.............................................................................................................................. 14
ESXi Only.............................................................................................................................. 15
vCenter Server...................................................................................................................... 16
vCenter Server Linked Mode................................................................................................17
vSphere Client....................................................................................................................... 18
vSphere Web Access............................................................................................................ 18
vMA....................................................................................................................................... 19
Standard Virtual Switch......................................................................................................... 19
Distributed Virtual Switch...................................................................................................... 22
ESX/ESXi Boot...................................................................................................................... 28
Virtual Storage...................................................................................................................... 28
vApps.................................................................................................................................... 32
Cloning and Templates......................................................................................................... 33
VM Snapshots....................................................................................................................... 35
vSphere Administration...........................................................................47
Permissions.......................................................................................................................... 47
Tasks, Alarms and Monitoring...............................................................................................48
Maps..................................................................................................................................... 48
Host Profiles.......................................................................................................................... 49
Update Manager................................................................................................................... 49
Converter Overview................................................................................50
Converter Functionality......................................................................................................... 50
P2V....................................................................................................................................... 51
Conversion Steps.................................................................................................................. 52
Cloning Options..................................................................................................................... 53
P2V Motion........................................................................................................................... 53
Converter Architecture............................................................................54
Live Windows........................................................................................................................ 54
Live Linux.............................................................................................................................. 54
VM Import............................................................................................................................. 54
Cold Clone............................................................................................................................ 55
Converter Usage.....................................................................................55
Conversion Checklist............................................................................................................ 55
vSphere Overview
Virtualization and VMware
How can you describe virtualization in basic terms?
USA Today once had a great article describing virtualization. “Imagine you had 3
daughters and only one bedroom. What if you could trick each daughter into thinking that
she had her own room exclusively while all 3 technically shared the same room?”
The goal of virtualization from VMware vSphere’s perspective, is to logically represent, or
“virtualize” physical hardware resources. By doing so, the underlying physical hardware
can be shared. Sharing gives us not only the potential for higher utilization of resources,
but also more flexibility in their use and their management.
A virtual machine is really just a small collection of files (we call this attribute
“encapsulation”). These files can be easily copied or moved to other physical hosts. The
state of VMs can easily be captured as “snapshots” at a point in time which can be useful
© 2010 VMware, Inc. All rights reserved.
Page of
for testing purposes or reverting to last known good states. Such data management and
manipulation serves as the foundation of the advanced options you get with running VMs
rather than physical machines.
Virtualization is not new as it dates back to the late 1960’s with the IBM S/360 mainframe
computers. VMware’s virtualization technology traces back to research done at Stanford
University.
Must Update Manager be used to apply patches for both ESX/ESXi hosts and VMs?
No. Some customers who already have patch management systems for VMs use
Update Manager just for patching hosts.
Can you protect a VM using FT by placing a shadow copy on the same host?
Yes, but there is no real benefit. FT was intended to use DRS anti-affinity rules to ensure
that FT pairs run on different VMs to protect against host failures.
Can you perform a Storage VMotion and VMotion at the same time?
No. Storage VMotion is about keeping a VM running on the same host while relocating
the underlying VM files from one storage location to another. VMotion is about keeping a
VM running and moving it from one host to another without relocating the underlying VM
files. In order to relocate a VM from one host to another and the VM files at the same
time, the VM must be powered off (and technically not running on a host, although
associated with a host).
What do you get with a Distributed Virtual Switch that you don’t with a standard vSwitch?
Virtual networking configuration down to the port level.
o Promiscuous mode can be activated for a single port rather than at the entire port
group level.
o Network statistics provided at port level.
Required to support third-party switches such as the Cisco Nexus 1000v.
Easier network management.
o Networking at the vCenter/datacenter level, not per host.
o Simply add new hosts with new physical adapters to the Distributed Virtual
Switch without having to ensure each host is configured the same.
o When you lose a host or the host is powered off, the state, statistics, and
properties of the Distributed Virtual Switch and its ports assigned to VMs remain.
o Note: because of the multi-host dependency, mis-configuration of a Distributed
Virtual Switch can impact multiple hosts, unlike mis-configuring a standard
vSwitch.
Network VMotion.
o A VM’s network state including statistics and policies remain with the VM as it
moves from host to host. This is necessary for accurate virtual network
monitoring and such technologies that rely on accurate network state such as
IDS/IPS and firewalls.
Inbound traffic shaping.
PVLANs.
Licenses
Can the same vSphere license key be used for multiple hosts?
Yes. The 25-character key is encoded with the number of hosts allowed. vCenter will
keep track of the number of hosts licensed.
Evaluations
Can ESX/ESXi be run in evaluation mode?
Leave the license key field blank during installation, and ESX/ESXi runs in evaluation
mode that expires after 60 days. Reinstalling ESX/ESXi with no license mode can restart
the evaluation mode.
Evaluation mode is equivalent to the vSphere Enterprise Plus License. No feature
restrictions are enforced.
Any VMs left running after the evaluation period expires will continue to run but cannot be
powered on again after being powered off.
The evaluation period starts counting the first time the host is powered on, even if you are
not using evaluation mode. For example, if you initially input a license key during the
installation but then switched to evaluation mode 10 days later, you only have 50 days
remaining for the evaluation mode period.
vSphere Architecture
ESX/ESXi
Can ESX/ESXi be installed on most systems?
No. Customers should always refer to the online VMware Compatibility Guide for
guidance.
The hypervisor includes the proprietary kernel, VMkernel, and runs on top of physical
hardware. Because the VMkernel runs directly “on bare metal” via specialized device
drivers, not all server hardware and adapters are supported.
Can hosts be mixed and matched between ESX and ESXi in an environment?
Yes. However, the best practice is to create host clusters that are all ESX or ESXi.
Doing so will avoid some potential compatibility and manageability issues pertaining to
HA.
ESX Only
Is ESX based on Linux?
No. The core VMkernel is proprietary. ESX does ship with a service console based on
Linux, which is often the component that confuses customers because they erroneously
think that the service console = Linux = ESX. The service console helps with certain
functions, but is not a critical part of ESX, as ESXi is a service console-less version of
ESX.
The service console, while it appears as a variant of Red Hat Enterprise Linux, is not a
standalone OS. Changes to it are not advised by VMware. Updates to the service
console are made as part of updates to ESX.
What are typical reasons for accessing the service console directly for ESX, instead of using
the vSphere Client?
Logging into the service console directly is typically required when making customizations
or installing software, which in itself is not normally recommended as doing so may run
into supportability and management issues. Example customizations include:
o Installing supported third-party agents
o Grooming logs and/or changing logfile rotation sizes and settings
o Enabling sudo and implementing other security hardening best practices
o Configuring Pluggable Authentication Module (PAM) Active Directory
authentication
o Configuring BMC firmware
o Permitting root login via SSH (for convenience; this is not recommended for
security)
Starting with vSphere, the service console is no longer a supported environment for
development.
In addition to root, what other ESX service console accounts are recommended?
At least one non-root account should be created and used with sudo. Doing so will follow
best practices in administration, specifically creating an audit trail and limiting super user
privileges.
Named accounts should be created for each individual granted access to the service
console.
ESXi Only
What is different between ESX and ESXi?
ESXi lacks a service console. The service console and vmkernel network types are
combined in a management network type.
ESXi comes in OEM embedded (preinstalled) and installable form, whereas ESX must be
installed.
ESXi has a dramatically smaller footprint compared to ESX. ESXi embedded can fit on a
USB flash disk as small as 1GB. ESXi installable uses approximately 800MB except that
it also creates a 4GB VMFS partition for use (3 hypervisor volumes and a datastore1
volume). ESX takes approximately 10GB of disk space.
What are typical reasons for accessing the direct console, instead of using the vSphere
Client?
When calling VMware Technical Support, a Technical Support Engineer may request you
to access the direct console in Tech Support mode. Going in under Tech Support mode
is not advised except in conjunction with a Technical Support consultation.
If an ESXi host becomes impaired so that it cannot be accessed via the vSphere Client,
the quickest and most straightforward remedy is to reinstall the ESXi host.
vCenter Server
What are the optional extensions available to vCenter Server?
Optional extensions include: vCenter Converter, vCenter Guided Consolidation Service,
vCenter Update Manager.
After installing an optional extension for vCenter Server, does the installer remind you to
install a corresponding client plug-in, if available?
No.
Do all optional server extensions for vCenter Server have corresponding client plug-ins and
vice versa?
No. For example, some plug-ins are automatically installed: vSphere Client Storage,
Hardware Status, vCenter Server status.
What are optional components that can be installed with vSphere Client?
Host Update Utility
Client plug-ins for optional vCenter Server extensions
Does the system where vCenter Server will be installed have to be a member of a Microsoft
Windows Active Directory domain?
No, if standalone.
If the vCenter Server is to be running in linked mode with another vCenter Server, both
systems must be part of a Microsoft Windows Active Directory domain. They can be in
different domains if two-way trust is configured between the domains.
vCenter Server cannot be installed on a domain controller (this is the case as well with
vCenter Server 2.5).
Is any other LDAP-based directory service other than Microsoft Windows Active Directory
supported by vCenter Server?
No.
vSphere Client
Can the vSphere Client be run indirectly from Windows Remote Desktop?
The vSphere Client can be run within a Windows VM and accessed remotely via
Windows Remote Desktop. Some users run it from within a Windows VM hosted on an
ESX/ESXi host. However, we recommend for performance reasons not to run it within a
Windows VM on the vCenter Server, itself i.e. do not install VMware Player, VMware
Workstation, or VMware Server or on the same system running vCenter Server. For
power users, we recommend installing and running vSphere Client on a physical desktop
rather than through Windows Remote Desktop to avoid possible KVM latency issues with
running a VM Console within Remote Desktop.
vMA
Why is the vMA useful?
You can use this appliance to remotely connect and manage an ESXi host using CLI.
This is equivalent to using CLI commands on the service console of an ESX host.
What are the characteristics of virtual switches depending on the number of uplinks?
0 uplinks.
o Represents an internal host-only private network. This is not common except in
cases where one wants several VMs communicating with each other while
isolated from outside networks. VMs actively connected to an internal network
may not be migrated to other hosts.
o Full duplex and no collisions.
o Networking is implemented entirely in software and traffic is maintained in
memory.
o Traffic shaping is not supported since it is available only for outbound physical
traffic.
o Ideal for high security requirement applications and testing.
1 uplink.
o Provides external communication via a physical adapter.
o No collisions on internal traffic.
o Outbound traffic can be shaped.
o ESX/ESXi will avoid routing traffic externally if 2 VMs are connected to the same
vSwitch. Traffic between 2 VMs on the same host connected to the same
vSwitch will stay within the host’s memory and not go outside the host. (This is
different than if you have 2 VMs on the same host networked via 2 different
vSwitches, which necessitates traffic go outside the outbound adapters and back
in.)
o Each virtual NIC has a MAC address. The physical adapter does not have a
MAC address.
2 or more uplinks.
o 2 or more physical adapters connected to a vSwitch provides teaming per the
IEEE 802.3ad specifications.
o Connecting the physical adapters to separate physical switches provides
additional redundancy.
o A physical adapter can be designated as a standby adapter to use should the
primary adapter(s) fail.
What are the optional security settings for a virtual switch (at the vSwitch or port group level)?
Promiscuous Mode (Accept/Reject)
o Default is Reject, meaning virtual NICs in Guest OSes see only traffic intended
for them.
o Changing to Accept will turn off filtering and allow all frames to be passed on and
made visible to Guest OSes, even those not intended for them. This is normally
not advised except for situations where network intrusion detection software or
packet sniffers are to be run.
MAC Address Changes (Accept/Reject)
o Default is Accept. Supports changing the MAC address from within the Guest
OS even if the value is different from the VM virtual hardware configuration.
o Changing to Reject will cause INBOUND network frames to be dropped if the
MAC address in the Guest OS does not match the MAC address of the VM
virtual hardware configuration.
Forged Transmits (Accept/Reject)
o Default is Accept. No filtering on OUTBOUND network frames.
o Changing to Reject will cause OUTBOUND network frames to be dropped if the
source MAC address specified in the frames does not match that of the MAC
address of the VM virtual hardware configuration.
What are the optional outbound traffic shaping options for a virtual switch (at the vSwitch or
port group level)?
Traffic Shaping (Disabled/Enabled)
o Default is Disabled.
© 2010 VMware, Inc. All rights reserved.
Page of
o Can enable and set limits to control:
Average Bandwidth (default is 102400 Kbps). The allowed average
outbound network load.
Peak Bandwidth (default is 102400 Kbps). The maximum network
bandwidth allowed. If the peak is reached, excess packets are queued
by the vSwitch for later transmission; if the queue is full, the packets are
dropped. Even if there is spare bandwidth on the connection, this
parameter limits the use.
Burst Size (default is 102400 Kb). Caps the maximum number of Kb that
can be sent in one burst while exceeding the average bandwidth.
o Used to control and limit some “noisy” traffic on specific networks to protect other
networks.
o While these settings can be made on a vSwitch or Port Group/Port that has no
connected physical adapter, these settings do not take into effect since they are
intended to shape outbound traffic sent to physical adapters.
What are the optional NIC teaming settings for a virtual switch?
A vSwitch has optional NIC Teaming settings to set policies on traffic across multiple
physical adapters. These settings can be defined at the vSwitch level or overridden at
the individual Port Groups/Port level.
o Load Balancing (3 algorithms)
1. Route based on the originating virtual port ID (default). Chooses an
uplink based on the virtual port where the traffic entered the vSwitch.
This method is simple and fast and does not require the VMkernel to
examine frames.
2. Route based on IP hash. Chooses an uplink based on a hash of the
source and destination IP addresses of each packet. This is done by
looking at the Least Significant Bit (LSB), i.e. last digit, of the source and
destination IP addresses in the frame. Using an exclusive
disjunction/exclusive or (XOR) algorithm, load balancing is achieved by
comparing the two values. For non-IP packets, the offsets are used to
calculate the hash. This scheme requires awareness by physical
switches of the team of physical adapters (i.e. turn EtherChannel on).
This method has higher CPU overhead and is not compatible with all
switches, but has a better distribution of traffic across physical NICs.
3. Route based on source MAC hash. Chooses an uplink based on a
hash of the source Ethernet’s MAC address. This is the Least Significant
Bit (LSB) of the source MAC address in the frame. This method has low
overhead and is compatible with all switches, but may not spread traffic
evenly across physical NICs.
o Network Failover Detection.
Link Status Only (default). Relies solely on the link status provided by
the physical network adapter, which detects failures (cable pulls, physical
switch power failure) but not configuration errors (physical switch port
blocked by spanning tree, configured to wrong VLAN, cable pulls on
other side of physical switch)
Beacon probing. Sends out and listens for beacon probes on all network
adapters in the team, in addition to Link Status. Beacon probing may be
effective for Blades servers where the Blade chassis may erroneously
report network connectivity if a network adapter is plugged into the
chassis, even if there is no actual network connectivity to the outside.
o Configuring explicit failover order. By default the list of active adapters is sorted
by uptime. The VMkernel uses the first adapter listed. This adapter list can be
reordered.
o Notify Switches.
Can physical adapters be migrated back from Distributed Virtual Switches to vSwitches?
Yes.
How do you set up the equivalent of VLAN ID 4095 for a standard virtual switch in a
distributed virtual switch?
Set the dvPortGroup VLAN type to VLAN trunking, and set the range to 0-4094.
Is there a VMware White Paper on how to migrate to and configure a distributed virtual
switch?
Yes. http://vmware.com/files/pdf/vsphere-vnetwork-ds-migration-configuration-wp.pdf
ESX/ESXi Boot
Is booting from a shared LUN supported?
No.
Virtual Storage
What is the difference between VMFS volume grow vs. adding a VMFS extent?
VMFS volume grow allows you to make an existing VMFS volume bigger, provided the
SAN LUN backing the VMFS volume has first been grown. VMFS volume grow takes
advantage of contiguous new space to the existing VMFS volume to expand.
Adding a VMFS extent allows you to take an unformatted LUN, create a VMFS partition
(extent), and join it to an existing VMFS volume. Unlike VMFS volume grow, the new
combined VMFS volume has a dependency to the extent. VMFS volume grow is
preferable to adding extents to avoid such dependencies (the VMFS volume may be
inaccessible if either the first volume or extent is lost, whereas a VMFS volume grow only
has one volume exposed).
Inventory
Does the “datacenter” have a special meaning in vCenter?
A datacenter is a security boundary and organizational unit. Datastores, networks, and
VMs are relative to a single datacenter. VMs can be hot migrated only within the
confines of a single datacenter.
Virtual Hardware
Are USB devices supported in a VM in ESX/ESXi 4?
Yes, but only devices attached to a host can be presented to a VM. Devices attached to
a machine running the vSphere Client cannot be redirected and presented inside a VM
by ESX/ESXi alone. (USB redirection can be found in VMware View and is supported
through RDP.)
USB support requires installation of VMware Tools.
Can thin disks be converted into thick disks and vice versa?
A virtual disk can be converted from thin to thick by right-mouse clicking on it in the
Datastore view and selecting: Inflate. There is not a corresponding ‘Deflate’ menu option
for thick disks, however. You would have to initiate a Storage VMotion to change from a
thick to thin disk.
Disks can be converted when cloning VMs, deploying from template, or migrating VMs.
Options include:
o Maintain format
o Thick
o Thin
VMs protected under FT must have eagerzeroedthick disks.
Are there differences between hardware levels across VMware products and versions?
Refer to the Virtual Machine Mobility Planning Guide on compatibility between VMware
products and their virtual hardware levels.
VMware Tools
Is it a best practice to use the time synchronization with VMware Tools?
Using the VMware Tools option only catches up time, as time tends to be slower in
virtualized worlds than physical. If the time is ahead in the guest, the time will not be
synchronized with the time on the host. However, NTP and Windows Time
synchronization can correct for time that is ahead.
If using VMware Tools’ time synchronization option, do not also synchronize time inside
the guest as well, as both methods could conflict with each other.
General best practices for Windows time synchronization is:
How do I see virtual CPU and memory counters in perfmon in the guest OS?
Make sure VMware Tools is installed.
The perfmon counters are:
o VM Memory
Memory Active in MB
Memory Ballooned in MB
Memory Limit in MB
Memory Mapped in MB
Memory Overhead in MB
Memory Reservation in MB
Memory Shared in MB
Memory Shared Saved in MB
Memory Shares
Memory Swapped in MB
Memory Used in MB
o VM Processor
% Processor Time
Effective VM Speed in MHz
Host Processor Speed in MHz
Limit in MHz
Reservation in MHz
Shares
Installing a Guest OS
How do I easily/quickly create an ISO or FLP image?
VM Encapsulation
What are notable files that represent a VM?
.vmx – configuration settings for VM
.vmxf – configuration settings used to support an XML-based VM configuration API
.vmtx – configuration settings for a Template VM (replaces the .vmx file)
.vmdk – virtual disk file. (Note: if a thick disk is used, a –flat.vmdk file that represents the
actual monolithic disk file will exist but will be hidden from the vSphere Client.)
.nvram – non-volatile memory (BIOS)
.vswp – swap file used by ESX/ESXi per VM to overcommit memory, i.e. use more
memory than physically available. This is created by the host automatically when
powering on a VM and deleted (default behavior) when powering off a VM. Swap files
can remain and take up space if a host failed prior to shutting down a VM properly.
Normally the swap file is stored in the location where the VM configuration files are kept;
however the location can be optionally located elsewhere—for example, locally for
performance reasons and if using NAS/NFS, local swap should be used.
.vmss – suspend file (if placed into suspend power mode)
.vmsd – for snapshot management
.vmsn – snapshot file
vApps
What are the advantages of using a vApp?
Group properties.
o vApp properties are metadata or variables that can be set at the vApp level,
stored in the .ovf virtual appliance representing the vApp, and then passed to the
Virtual Machines at runtime after a new instance is deployed.
o Scripts within the Virtual Machines can be written to perform configuration based
on the properties, greatly simplifying deployment of unique vApp instances. An
example of the properties could be virtual machine names, proxy server URL, IP
addresses to store in a host file, etc.
IP allocation policy. vApps offer three IP allocation policies to simplify network
addressing for vApp deployments:
o Fixed. Manual allocation
o Transient. IP addresses are assigned by vCenter when the VMs are powered on
and released back to the pool when they are powered off.
o DHCP. A DHCP Server and its IP allocation policies are used.
Start order.
o Specify the relative start order of VMs within a vApp. This enables staggering
the startup of Virtual Machines so that the systems that need to be powered on
before others come online first, which is common in a multi-tiered application.
Packaging.
VM Snapshots
What are the mechanics of a VM snapshot?
Snapshots can be taken at any time the VM is powered on. The analogy is similar to a
database checkpoint. Multiple snapshots (checkpoints) can be taken and applied to the
base disk (image). Reverting to a previous state will require more time if there are
multiple snapshots since they all have to be applied to get to the desired point in time.
Each snapshot taken will result in
o -SnapshotN.vmsn. VM snapshot configuration file. It may or may not take the
memory.
o -NNNNNN-delta.vmdk. Snapshot differences COW (copy on write) file. Disk
write buffer (REDO log), where changes to the base disk are written.
o -NNNNNN.vmdk. Create/delete/find/get properties for VM snapshots. Snapshot
metadata about the snapshot itself.
o -.vmsd. Single management file that catalogs all VM snapshots and associated
virtual disks. Only one .vmsd file exists per VM; additional VM snapshots will
create additional of the above files.
How many concurrent migrations (VMotion and/or Storage VMotion) are supported?
Up to 4 concurrent VMotion operations are supported per VMFS volume accessed. A
VMotion operation involves 2 hosts accessing the same VMFS volume and therefore
counts as 2. A Storage VMotion operation involves a single host accessing the same
VMFS volume once. Therefore, up to 2 VMs on the same datastore can be hot migrated
using VMotion concurrently, while up to 4 VMs on the same datastore can be hot
relocated using Storage VMotion concurrently.
VMware DRS
What are the levels of DRS automation?
Automation modes are:
o Automated
o Manual
o Partially Automated
o Default – inherit the cluster’s automation level
o Disabled – Do not use the cluster’s automation level
Automation levels apply to all VMs of a VMware DRS cluster. Individual VMs in the
cluster can be set at different automation modes.
Are there possible problems with setting too aggressive a level for a DRS cluster migration
threshold?
Sometimes a side effect of a too aggressive level is many automated VMotions for
seemingly no apparent reason, i.e. there is not a large imbalance in resources available.
In such cases, select an option that applies more stars for recommendations (higher
priority or conservative).
What happens if I add a host with an existing resource pool to a DRS cluster?
If a standalone host that has an existing resource pool is added to a VMware DRS cluster
with at least 1 VM, a pop-up window will prompt the administrator to:
If I deploy or migrate a VM to a cluster with DRS, will DRS automatically place it onto a host
for me?
Yes. However, if manual mode is set, you must manually select a host.
#!/usr/bin/perl
# cpubusy.pl
if ($^O =~ /Win/) {
$goal = 2700000;
} else {
$goal = 3000000;
}
while (1) {
$before = time();
for ($i = 0; $i < $goal; $i ++) {
$x = 0.000001;
$y = sin($x);
$y = $y + 0.00001;
}
$y += 0.01;
print "I did three million sines in ", time() - $before, " seconds!\n";
}
cpubusy.vbs
Dim goal
Dim before
goal = 2181818
Do While True
before = Timer
For i = 0 to goal
x = 0.000001
y = sin(x)
y = y + 0.00001
Next
y = y + 0.01
WScript.Echo "I did three million sines in " & Int(Timer - before + 0.5) & "
seconds!"
Loop
Resource Management
What is the concept of shares?
Think of resource shares like shares in a company. The more shares you have, the more
control you have over the company. Lets pretend we have an imaginary company with
three shareholders, A, B, and C. Lets say they each start with 1000 shares of stock, for a
total of 3000 shares.
A: 1000 (33.3% of total)
B: 1000 (33.3% of total)
C: 1000 (33.3% of total)
Total: 3000
Each shareholder has an equal stake and equal power within the company. Now, lets
say shareholder A wants to get more control over the company. Therefore, he buys
another 1000 shares. Now, let’s look at the totals:
A: 2000 (50% of total)
B: 1000 (25% of total)
C: 1000 (25% of total)
Total: 4000
As we can see, shareholder A now holds 50% of the total shares. He has more “relative
weight” than the other shareholders, and thus has greater priority over them in times of
need, i.e. during resource contention.
Shares default to Normal. The settings are:
o High. (twice as much as normal)
2000 shares per virtual CPU
20 shares per MB of virtual RAM
o Normal.
1000 shares per virtual CPU
10 shares per MB of virtual RAM
o Low. (half as much as normal)
500 shares per virtual CPU
5 shares per MB of virtual RAM
o Custom.
Specify a custom value.
Shares only come into play during times of resource contention. If there is no resource
contention, each virtual machine can take whatever it needs (up to the limits assigned for
that VM).
VMware HA
Are there any problems with mixing ESX and ESXi hosts in a VMware HA cluster?
Possibly. When adding both ESX and ESXi hosts to a VMware HA cluster, the
configuration wizard will attempt to ensure that all hosts have compatible networks. The
first host in the cluster is used to compare subsequent hosts, and any hosts with more or
fewer networks than the first host’s may be considered incompatible. Because ESXi
hosts lack a service console network, such hosts will likely have fewer networks than
comparable ESX hosts. A workaround is to use the das.allowNetwork[…] advanced
options to specify which networks are to be used by the cluster. Using a vNetwork
Distributed Switch (dvSwitch) instead of vSwitches will avoid this issue.
If a host running VMs protected by both HA and FT fails, what is the startup priority for VMs?
HA will restart VMs based on HA’s startup priority.
Starting up secondary FT VMs will not have a higher priority than VMs not protected by
FT.
VMware FT
What are the requirements for VMware FT?
Hosts and clusters:
o Primary and secondary hosts must have the same build number (hostd build
number) and same patches.
o Fault tolerant VMs must run on ESX/ESXi hosts in a VMware HA cluster. This
ensures that if a primary host or secondary host fails for a fault tolerant VM, an
additional host can be leveraged to ensure that a primary and secondary host
pairing can be maintained.
o Primary and secondary ESX/ESXi hosts must be in the same CPU model family.
For best results, use CPUs with the same stepping level to ensure the greatest
compatibility/homogeneity and therefore greatest capacity for lock-stepped VMs.
o VMware FT uses VMware DRS anti-affinity rules by default to ensure that a
primary VM and its companion secondary VM do not run on the same host. It is
possible to configure a fault-tolerant lock-stepped VM on the same host, but
doing so negates the benefits of protection from host failure.
o Host certificate checking must be enabled on all hosts.
o Hardware virtualization (HV) must be turned on in the BIOS of the hosts.
o DPM will not power off hosts running FT-protected VMs, since DRS is disabled
and therefore DRS cannot VMotion FT-protected VMs off a host.
Storage
o Fault-tolerant VMs must be on shared storage. VMFS on FC and iSCSI SAN is
recommended. NFS, while supported, is not recommended. If NFS must be
used, storage timeouts may need to be increased, and dedicated NICs on the
ESX/ESXi hosts for the NFS configuration may be needed to ensure that a
secondary VM can remain in lockstep with a primary VM within a timely fashion.
o Virtual disks of fault-tolerant VMs in VMFS must be in eagerzeroedthick format
(pre-allocated and all data is zeroed out at time of creation). VMs provisioned in
other formats—thin (not pre-allocated), 2gbsparse (thin disk with 2GB maximum
extent size), zeroedthick (“lazy zeroed” thick, pre-allocated but data zeroed out
later as the VM reads/writes to the disk), or thick (pre-allocated but data is never
zeroed out) will be converted, and must be powered off to have their disks.
o RDMs are supported, but only in virtual compatibility mode.
Networking
o At least 2 dedicated Gigabit NICs for VMware FT are required. One dedicated
for FT logging and one dedicated for VMotion. Both need to be on different
subnets. This is on top of network traffic for the VM itself.
Is there a VMware KB article on what processors and guest OSes are supported for VMware
FT?
See VMware KB article 1008027.
Is VMware FT application-aware?
What algorithm is used when starting up a secondary VM for FT in the event of a host failure?
FT uses the same placement algorithm for starting a secondary VM in the event of a host
failure that HA uses when restarting VMs from a failed host.
Guided Consolidation
What does Guided Consolidation do?
The Guided Consolidation service allows you to discover existing physical machines on
the Windows network. Their workloads can be analyzed and compared with running
VMs, and the machines can be easily converted into VMs by invoking VMware Converter.
Why should I use vCenter monitoring tools instead of tools inside the Guest OS?
Tools running within the Guest OS can be inaccurate within VMs because the Guest OS
does not have awareness of the physical hardware clock. Therefore, it is best to use the
performance data collected by vSphere.
How can you save data from the Performance overview tab?
The overview tab shows real-time metrics. Data displayed on the advanced tab provides
an ability to export data to a .CSV format.
Maps
Can maps be exported?
Maps can be exported as .jpg files. Use the Maps, File -> Export -> Export Maps…
Host Profiles
What licensing is required for Host Profiles?
vSphere Enterprise Plus.
Can Host Profiles be used with a cluster running both ESX and ESXi hosts?
Yes, but remember to use an ESX host and not an ESXi host to create a profile for use.
In theory, Host Profiles should work with mixed host clusters, as it translates ESX to
ESXi, but be careful as there are enough differences between ESX and ESXi that can
lead you to make self-inflicted errors when applying Host Profiles. The easiest method is
to create clusters that are homogeneous and maintain two different profiles for these two
types of clusters.
Can Host Profiles work when using the Cisco Nexus 1000v?
No, because Host Profiles was designed with the generic vNetwork Distributed Switch.
The Cisco Nexus 1000v switch gives administrators finer-grained control of the
networking beyond what Host Profiles can apply.
Update Manager
Can the vCenter Update Manager server be installed in a DMZ?
Yes. Doing so can be practical as the Update Manager server can have internet access
to download updates. However, in such situations installing the Update Manager
Download Service (UMDS) component in the DMZ is preferred, as downloads can be
obtained from the internet and placed on a share accessible to the Update Manager
server without compromising the Update Manager server, which can reside on an internal
network.
Are there guidelines on how large to size the Update Manager database?
A sizing estimator can be found on VMware.com on the Update Manager documentation
page, or directly at:
http://www.vmware.com/support/vsphere4/doc/vsp_vum_40_sizing_estimator.xls.
Is it a bad thing to run into a lot of problems during the test conversions?
Converter Overview
Converter Functionality
What does Converter do?
Converter is really three products in one.
o Conversion of powered on machines. These can be physical or virtual machines.
o VM import. These must be powered off virtual machines.
o Third-party system image import. These must be supported files.
What is the difference between Converter Standalone and Converter integrated with
vCenter?
As of vCenter Server 4.0, the plug-in for Converter is older than the Converter
Standalone 4.0.x and based on the Converter 3.0.x standalone. A future version will
likely get these to parity.
The integrated version for vCenter supports scheduling of tasks.
P2V
What are the mechanics of P2V?
P2V allows us to move a physical machine into a VMware environment. Since there is
no way to “move” a physical machine into the virtual world per se, the process is similar
to taking a backup of a server and restoring the backup onto another server.
For example, what if we took a backup of an IBM server and tried restoring that onto an
HP or Dell server? Has anyone tried that? Obviously it would not boot up properly
because the backup image is referencing the old hardware—in particular the SCSI and
network adapters. The same issues come up when attempting to restore onto a VMware
VM. We have VMware’s brand of virtual hardware, namely the SCSI (BusLogic or LSI
Logic) and network (AMD PCI or VMware Accelerated PCI) adapters and drivers.
When we perform P2V, we generally try to recreate the physical machine in its entirety as
a virtual machine. Microsoft Sysprep can be used in conjunction with P2V, although this
use is not typical. Sysprep would be used in situations where the original server and
migrated server co-exist on the same network. Typically, P2V involves decommissioning
the original server.
The P2V’ed VM is nearly identical to the original physical machine. Two notable
exceptions of items not always preserved are:
o Network configurations. This is because the network information (IP address
information, etc.) is associated with a physical card which we disable, as we are
adding a new virtual NIC that is configured with new networking information.
This is no different than replacing an existing NIC with a new one on a physical
machine.
o Drive letter mappings. This is a function of the imaging application, and some
older applications may possibly remap drive letters, which could potentially
impact applications that reference hard-coded drives (e.g. Citrix). We may need
to go back and fix the drive mappings.
How can P2V be done for OSes that are not supported by Converter?
You can try a manual method using a combination of a cloning tool (e.g. Ghost) and
manually correcting the new VM’s boot files. The way to do this is to peer into the new
VM’s unbootable disk by mounting it from a Helper VM that has the same OS installed in
the guest from scratch. You can manually copy over needed driver files to the new VM.
This technique can be used for OSes such as Novell Netware and Windows 9x.
Does Converter provide the option for disk alignment when it creates a new VM’s vmdk files?
No.
Conversion Steps
What happens during conversion?
The first step is to clone the source machine’s disk(s), create a new VM with empty virtual
disk(s), and copy the contents into new VMware virtual disk(s). The second step is to
reconfigure the virtual disk containing the OS system to make it bootable, if necessary.
These two steps—clone and reconfigure, are automatically done sequentially, when
selecting “Import machine” from the Converter UI. We make a distinction here because it
is possible to use your own third-party imaging application to clone the source machine’s
disk(s), create a new VM, and restore the image onto the new VM’s blank virtual disk(s).
Doing so will not result in a bootable VM, and will require running the Reconfigure option
from within VMware Converter, which can be run separately from the Import Machine
step.
Cloning Options
When would it be ideal to use hot vs. cold cloning for converting a physical machine?
Hot cloning is the default option. As long as you can connect to your powered-on
machine over the network, you do not need to worry about disk driver issues.
Hot cloning involves installing and running a Converter agent. If the machine has been
hardened, proper installation of the agent may fail. In this case, it may be easier to boot
up the machine using the cold clone boot CD.
The cold clone boot CD is available only to vCenter Server customers as a separate
download. Converter Standalone, which is free, does not come with the cold clone boot
CD.
The cold clone boot CD boots up using WinPE and does not leave a software footprint on
the machine to be converted. This may be useful in situations where a customer is
concerned about modifying the machine to be converted.
P2V Motion
How does P2V Motion work?
During conversion of a Windows machine, we take a disk snapshot that is point in time,
and spend the rest of the time copying the disk snapshot. For a typical system, this can
take several hours. If the machine is still powered-on, any transactions that occur will not
be reflected in the new VM being created.
P2V Motion involves using the Synchronize option within Converter 4 Standalone.
Selecting this option invokes a synchronization step immediately after the cloning is
finished. The synchronize step takes minutes. Used in conjunction with the services
© 2010 VMware, Inc. All rights reserved.
Page of
configuration, you can disable any services on the source machine prior to the
synchronize step to keep application users off. This effectively reduces the downtime
and lost transactions window down from hours to a few minutes.
The synchronize step requires block-level cloning. Therefore, you cannot resize your
volume sizes.
As of Converter Standalone 4.0.x, the synchronize step runs immediately after the clone
completes and cannot be scheduled.
Some customers may not opt for P2V Motion with immediate cutover of a physical
system to virtual because it does not give them a window to properly test and validate the
new P2V’ed VM prior to cutting over. In these cases, they will typically choose to keep
the source machine running and place the new VM on a private network for user
validation before cutting over.
Is it a good idea to select the “minimum size” option for new virtual disks when converting
machines?
Using this option takes the actual disk used and adds 10% for free space.
For most typical Windows machines, a 20% buffer of free space is ideal to avoid
performance issues.
Converter Architecture
Live Windows
Does it matter where you install Converter?
The integrated vCenter plug-in is intended to be run from a single central location.
For large-scale conversions, it may be advantageous to install multiple instances of
Converter Standalone to increase throughput.
You do not need to install Converter on a machine to convert it. You can access it
remotely.
It may be easiest to install Converter Standalone in a VM when provisioning multiple
instances.
Live Linux
How do Live Linux conversions work?
vCenter creates a new VM on the ESX/ESXi host and boots up the VM using a built-in
ISO containing Linux. The bootstrapped VM formats the new Linux VM and then makes
contact with the machine to be converted and TARs and copies the file system over.
Does traffic flow directly from the VM to the destination when using a VM import?
No, not if the VM is powered off. VM file copy traffic goes through the Converter server.
If the VM is powered on, data copying traffic does flow directly from the VM to the
destination, as this is considered a live clone.
Cold Clone
Where can peTool be found?
peTool can be found in the Converter installation directory.
Run peTool to inject drivers into a Converter cold clone boot CD ISO. Then burn a new
CD-ROM to use.
Converter Usage
Conversion Checklist
What are the most common issues with setting up a Converter environment for Windows
machines?
Required network ports not open.
Required Windows services on the machine to be converted are not running.
Will how fragmented a file system impact how fast Converter clones a system?
No. The speed of cloning is largely dependent on the network speed and latency, and
speed of writing on the destination.
How do I upgrade an ESX 3.x host that does not have network access?
Since both the Host Update Utility and VUM require network access, see VMware KB
article 1009440 for guidance on performing an offline host upgrade. Also note that the
CD-ROM device must be IDE—see VMware KB article 1009509.
Why did the default /boot partition size increase from ESX 3 to ESX 4 from 100MB to
1100MB?
The additional space is not necessary, as upgrading from ESX 3 will preserve the default
100MB size of /boot and will work if there is at least 46MB free space. The 1100MB size
applies to only fresh installations of ESX 4.
The additional space is being reserved to allow for possible upgrades from ESX to ESXi
in the future.
Can optional vCenter Server extensions be installed at the same time as vCenter Server?
No. With vCenter Server 4.0, the vCenter autorun installation menu only allows one
installation option at a time. To install multiple extensions, the installer must be run
multiple times, one time for each option chosen.
Are optional vCenter Server extensions always installed in the same location as the vCenter
Server?
Not necessarily. Server extensions are installed wherever the installer is run. Because
with vCenter Server 4.0, the vCenter autorun installation menu now only allows one
installation option at a time, you can easily run the installer on a different machine when it
comes time to install an extension.
What’s different between Converter for vCenter 4.0 and Converter for vCenter 2.5?
The Converter server extension for vCenter 4.0.0 is functionally the same as the one for
vCenter 2.5 U4.
Converter standalone 4.0 is ahead of the server extension. Converter standalone 4.0
supports new features such as Linux conversions.
A Converter server extension comparable to Converter standalone 4.0 is expected in a
release/update after the initial vCenter 4.0.0 release.
Is Storage VMotion supported across disparate datastore types (FC SAN, iSCSI SAN, NFS)?
Yes, starting with vSphere 4, support is extended to NFS.
Starting with vCenter 4.0, Storage VMotion can be initiated from the vSphere Client.
Is it possible to upgrade vCenter Server just the hosts without the VMs?
© 2010 VMware, Inc. All rights reserved.
Page of
Yes, but you cannot take advantage of some of the new vSphere features without
upgrading the virtual hardware and VMware Tools.
What happens to an existing ESX 3.x host when an in-place upgrade to ESX 4 is performed?
The existing service console partitions get mapped to a partitions in a new cos.vmdk.
An upgrade precheck script determines if there is sufficient free space to place the new
ESX 4 vmkernel and initrd, minimum 10GB.
If for any reason the in-place upgrade is interrupted, the original grub.conf file will be
restored so that the host reboots into the original ESX 3.x host installation.
The /boot size (typically 100MB) is preserved if an in-place upgrade is performed (vs.
1100MB for a fresh installation). At least 46MB must be free in the /boot partition to
support an upgrade.
A new 5GB / partition is created in the new cos.vmdk and certain files (not all) from the
old file system are copied with file attributed preserved as much as possible. Included
files most of the files/directories in the /etc directory, in particular: /etc/vmware directory,
The size of the existing swap partition is retained in the new cos.vmdk.
The original file system is mounted as /esx3-installation after the upgrade (one or more
mounts depending on how the original disk was partitioned). This can be useful if
specific files from the previous installation need to be referenced.
How do I check if an existing service console partition has enough free space for an in-place
upgrade?
From the service console, df -k.
Is there an Upgrade VMotion for a VM from an ESX/ESXi 3.x host to an ESX/ESXi 4.x host?
Use Storage VMotion. The source VMFS must be running at least VMFS version 3.31.
ESX 4 runs version 3.33 and later.
VMs from ESX 2.5.x hosts must be cold migrated to ESX/ESXi 4.0 hosts.
A VM with virtual hardware 4 can be VMotioned between an ESX/ESXi 3.5.x and 4.x
hosts provided vCenter 4.x is managing both hosts.
Once a VM’s virtual hardware has been upgraded to version 7, can the VM run on ESX/ESXi
3.x hosts?
No.
Are the vShield Manager web management interface accounts and vShield Manager
command-line interface accounts the same?
No.
Firewall Management
If a vShield fails to deploy automatically, can one be installed manually?
Yes. Refer to the vShield Zones Administration guide for steps.
If vShield Manager goes down, do the vShields stop protecting the virtual machines?
No. The vShield Manager provides management and reporting. The vShields
themselves provide monitoring data and enforce firewall rules. In the event the vShield
Manager is unavailable for some time, each vShield can queue data and send it to the
vShield Manager once it is available.
How does vShield Zones work with VMotion? Does it break the state of a connection?
Each vShield in a cluster shares information about the virtual machines being protected.
When a virtual machine migrates from behind vShield-1 to behind vShield-2, vShield-1
passes the information for the virtual machine to vShield-2 providing continuous,
uninterrupted protection. To use vShield Zones with VMotion, you must add an entry to
the vCenter Server configuration file (vpxd.cfg) and restart the vCenter Server service.
VM Discovery
How do the three VM discovery types differ?
Continuous discovery.
o Constantly analyzes traffic as it passes through each vShield firewall appliance.
Continuously monitoring at this level yields the most accurate and
comprehensive VM traffic flow statistics and application inventory.
o Continuous discovery is also the only method limited to the virtual network
infrastructure. The other two methods: Periodic and On Demand, both can affect
systems on the physical network as unlike the Continuous method which
monitors traffic as it passes through the vShields, these methods probe entire
networks by IP address, including all systems and devices within that address
space and network accessible be they virtual or physical.
o Continuous discovery is always operational. The time it takes for an On-Demand
or Periodic Discovery to run depends entirely on the size of the network and the
number of hosts and network devices discovered. It could take an hour or more
with large subnets with lots of devices. For example, a small subnet with 20
devices can take around 7 minutes to scan.
On Demand discovery.
o A single scan of the specified network address(es) at the point in time the scan is
run. Its results depict only that single occurrence of the scan.
Periodic discovery.
o Scheduled On Demand discoveries that occur at intervals specified when they
are configured. This enables performing Discovery every four hours, for
example.
VM Flow
What kinds of network traffic-related questions can you answer with VM Flow?
What are the busiest applications?
What are the busiest clients?
What virtual machines participate in an application?
What applications run on the virtual machines?
ESX/ESXi
Configuring VMCI on ESX/ESXi Host
See KB 1010806
Storage
Using Storage VMotion to migrate a virtual machine with many disks may time out.
See KB 1010045
vCenter
FT is disabled.
See KB 1010631
Some of the default alarms are not created when you upgrade to vSphere
See KB 1010399 to download and run the appropriate SQL script.
VMs
DNS registration is gone or changed after VM hardware upgrade (prior to final reboot, with
DDNS in environment).
Make sure you have rebooted the VM after the VM hardware upgrade
Make sure there is a reverse DNS entry for the VM
You can force a DNS update using ipconfig /reregister