Maximum vSphere
Tips, How-Tos,and Best Practices for
Working with VMware vSphere 4
Eric Siebert
Simon Seagrave
• •
• • PRENTICE
HALL
UpperSaddle River, NJ•Boston•Indianapolis•SanFrancisco NewYork•Toronto•Montreal•London•Munich•Paris•Madrid
Capetown•
Sydney
•Tokyo
•Singapore
•MexicoCity
CONTENTS
Foreword xv
Acknowledgments
xixAbout the Authors xxiii
Chapter
I Introduction tovSphere
IWhat's New in This Release I
Storage, Backup,
and Data Protection 2ESXandESXi 6
VirtualMachines 7
vCenterServer 8
Clients and
Management
10Networking
I ISecurity
12Availability
13Compatibility
andExtensibility
14Configuration
MaximumDifferences fromVI3 15Understanding
theLicensing Changes
16Summary
19Chapter
2 ESX and ESXi Hosts 21What's New with ESX and ESXi Hosts in
vSphere
2164-BitVMkernel andESX Service Console 21
Support
for MoreMemory,
CPUs,andVMs 22Support
forEnhanced IntelSpeedStep
and EnhancedAMD PowerNow! 24
Improved
Host ServerHardwareIntegration
andReporting
inthe
vSphere
Client 27Selecting Physical
Host Hardware toUsewithvSphere
2864-bit CPUs and
Long
Mode 28AMD and Intel Virtualization Extensions 29
Checking
Your Server Hardware 29Differences betweenESX and ESXi 31
ESXService Console 32
ESXi
Management
Console 33Functionality
Differences between ESX and ESXi 34Using
HostProfiles 37Creating
andConfiguring
HostProfiles 37Applying
HostProfiles 39Summary
40Chapter
3 Virtual Machines 41What'sNewwith Virtual Machinesin
vSphere
41VirtualMachineHardwareVersion 41
Support
forEight
vCPUsand255GBofRAM 42Support
forAdditionalGuestOperating Systems
43VMXNET3 VirtualNetwork
Adapter
43Paravirtual SCSI
Adapter
and IDEAdapter
44Memory
Hot Addand CPU HotPlug
Features 44Display Adapter Settings
46Support
forUSBControllers 47Virtual Machine Communication Interface 47
VMDirectPath Feature 49
Anatomy
ofaVirtual Machine 52Virtual Machine Hardware 53
Virtual Machine Files 55
Virtual Machine Disks 59
Summary
66Chapter
4 vCenter Server 67What'sNew with vCenter Server in
vSphere
67vCenter Server Linked Mode 67
vApps
70Licensing
72Alarms andEvents 73
Permissions andRoles 76
New HomePage 80
vCenterServer
Settings
81Searching
83Plug-ins
84GuidedConsolidation 85
Converter 86
VMware Data
Recovery
87Update Manager
87Third-Party Plug-ins
89Summary
90Chapter
5Storage
invSphere
91What'sNewwith
Storage
invSphere
91vStorage
APIs 91Paravirtualization 94
Growing
VMFSVolumes 97Choosing
aStorage Type
100Local
Storage
100DirectAttached
Storage
101FibreChannel
Storage
102iSCSI
Storage
103NAS/NFS
Storage
105Mixing Storage Types
106Additional
Storage
Considerations 107LUN Size Considerations 107
Choosing
aBlockSize 110VMFSversusRaw Device
Mappings
11 I1OKversus 15Krpm Hard Drives 113
RAID Levels 113
Jumbo
Frames 114Boot from SAN US
Drives and
Storage Adapters
I' 7Storage Configuration
110Local
Storage
120DirectAttach
Storage
120FibreChannel
Storage
120iSCSI
Storage
122NFS
Storage
123Summary
124Chapter
6Networking
invSphere
127What's New with
Networking
invSphere
127Distributed and
Third-Party
vSwitches 127Private VLANs 128
IP Version 6 128
Physical
NICs 130VirtualNICs 132
Vlance 133
VMXNET 133
Flexible 133
E1000 133
VMXNET2 133
VMXNET3 134
Standard vSwitches 137
Distributed vSwitches 138
Deployment
Considerations 139vDS
Configuration
141Cisco Nexus 1000V 143
Advanced
Functionality
for vSwitches 144Benefits of
Using
Nexus 1000V 145Installing
andConfiguring
Nexus 1000V 146Choosing
avSwitchType
147vShield Zones 149
AdditionalResources 153
Summary
154Chapter
7 Performance invSphere
155What'sNewwith Performance in
vSphere
156CPU Enhancements 156
Memory
Enhancements 156Storage
Enhancements 157Networking
Enhancements 158Monitoring vSphere
Performance 158Resource Views 159
Performance Charts 160
Understanding
Host Server Performance Metrics 167Performance Alarms 171
Troubleshooting vSphere
Performance Issues 172esxtopandresxtop 173
CPU Performance
Troubleshooting
178CPULoad
Average
i 78Physical
CPUUtilization(PCPU
USED(%)) 179Physical
CPU Utilizationby
aWorld(%USED)
180World
Physical
CPU Wait(%RDY)
181Max Limited(%MLMTD) 182
WorldVMkernel
Memory Swap
WaitTime (%SWPWT) 182vCPUCo-descheduleWait Time(%CSTP) 183
CPU
Configuration Tips
183Memory
PerformanceTroubleshooting
185Transparent Page Sharing
(TPS) 186Physical Memory
(PMEM /MB) 187Memory
OvercommitmentAverage
188ESX ServiceConsole
Memory (COSMEM
/MB) I88VMkernel
Memory (VMKMEM /MB)
189Swap (SWAP /MB)
190Memory Compression (ZIP
/MB) 191Memory
Balloon Statistics(MEMCTL/MB)
191 MemoryPerformanceTroubleshooting
aVirtual Machine(VM)
192%Swap
Wait Time(SWPWT) 194Memory Configuration Tips
194Disk/Storage Troubleshooting
195Device
Average (DAVG/cmd)
196VMkernel
Average (KAVG/cmd)
196Guest
Average (GAVG/cmd)
196Queue
Depths (QUED)
197Storage
CommandAborts(ABRT/s)
197Storage
CommandResets(RESETS/s)
198Storage Configuration Tips
198Network
Troubleshooting
200Network
Configuration Tips
201Additional
Troubleshooting Tips
202Summary 203
Chapter
8Backups
invSphere
205Backup
Methods 205Traditional
Backups
206Backup Scripts
207Third-Party vSphere-Specific Backup
Products 207Backup Types
208VMware Data
Recovery
209Installing
VMwareDataRecovery
210Configuring
VMware DataRecovery
211Summary
216Chapter
9 Advanced Features 217High Availability
(HA) 217How HA Works 217
Configuring
HA 219Advanced
Configuration
224Additional Resources 224
DistributedResourceScheduler
(DRS)
224How DRS Works 225
Configuring
DRS 225Distributed Power
Management (DPM)
227How DPMWorks 227
Configuring
DPM 228DPMConsiderations 230
VMotion 231
How VMotionWorks 231
Configuring
VMotion 232VMotion Considerations 233
Enhanced VMotion
Compatibility (EVC)
234Storage
VMotion 235Flow SVMotionWorks 236
Configuring
SVMotion 236Fault Tolerance (FT) 237
How FT Works 238
Configuring
FT 240FT Considerations 243
Summary
245Chapter
10Management
ofvSphere
247vSphere
Client 247WebAccess 249
vSphere
CLI 249vSphere Management
Assistant 251PowerShell and PowerCLI 252
ESX Service Console 254
ESXi
Management
Console 255Free
Third-Party
Tools 257SSHConsole Utilities 257
SCP FileTransfer Utilities 257
Summary
258Chapter
11Installing vSphere
259Installing
vCenter Server 260Choosing
aDatabase for vCenterServer 260Physical
ServerorVirtualMachine? 263Operating System
and Hardware 264Prerequisites
265vCenter Server Installation
Steps
265Installing
ESXandESXi 267Preparing
theServer for Installation 267Importance
of the HardwareCompatibility
Guide 268Bootfrom SANConsiderations 270
ESXPartition Considerations 270
ESXInstallation
Steps
273Installing
ESXi 278Installing
ESXion aLocal Hard Disk 278Installing
ESXion aUSBFlashDrive 279Summary
284Chapter
12Upgrading
tovSphere
285Compatibility
Considerations 285Hardware
Compatibility
286Software andDatabase
Compatibility
286Third-Party Application Compatibility
287VMwareProduct
Compatibility
287Planning
anUpgrade
287Upgrade
Phases 288Upgrade
Methods 289Upgrade Techniques
293Rolling
Backto Previous Versions 294Pre-Upgrade
Checklist 295Phase 1:
Upgrading
vCenter Server 297Backing
UpKey
Files 297Agent Pre-Upgrade
Check Tool 298Running
the vCenterServer Installer 299Post-Installation
Steps
300Phase 2:
Upgrading
ESXand ESXi 301Using
theHostUpdate Utility
302Using Update Manager
303Post-Upgrade
Considerations 305Phase 3:
Upgrading
Virtual Machines 306Upgrading
VMwareTools 306Upgrading
Virtual MachineHardware 307Using Update Manager
toUpgrade
VMwareTools andVirtual Hardware 308
Summary
309Chapter
13Creating
andConfiguring
Virtual Machines 311Creating
aVirtual MachineinvSphere
311Creating
aVirtual Machine 311Installing
VMwareTools 316VM
Hardware, Options,
andResourceControls 318VM Hardware 318
VM
Options
321VM Resources 325
Summary
329Chapter
14Building
Your OwnvSphere
Lab 331Why
Build avSphere
Lab? 331What Do You Wantfroma
vSphere
Lab? 333What You NeedtoBuildYour Own
vSphere
Lab 334Hardware 334
Software 335
Environment 335
Support:
The"Official"Line 335Hardware 336
Server 337
CPU 338
Memory
341Network Controller 343
Disk
Array
Controller 345Shared
Storage
347Network Switches 353
Software
Components
356Environmental andOther Lab Considerations 357
Running
NestedVMs 358VMwareESX/ESXi onVMwareWorkstation 7 359 Virtual ESX/ESXi Instanceson a
Physical
ESX/ESXiHost 360Summary
363Index 365