O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

VMware Cookbook, 2nd Edition

Book Description

With scores of step-by-step solutions, this cookbook helps you work with VMware ESXi in a wide range of network environments. You’ll not only learn the basics—how to pool resources from hardware servers, computer clusters, networks, and storage, and then distribute them among virtual machines—but also how to overcome the stumbling blocks you’ll encounter when you monitor systems, troubleshoot problems, and deal with security.

This expanded second edition covers recent advances in vCloud Director and vShield cloud security. Ideal for system administrators of any level, VMware Cookbook also includes valuable information to help you determine your virtualization needs.

  • Move into the cloud with vCloud Director, and secure virtual datacenters with vSphere
  • Secure and monitor your virtual environment from the command line
  • Manage disk, SSD, and SAN storage implementation and configuration
  • Discover options for managing resources, such as clustering, shares, and hot add/hotplug support
  • Configure logical and physical networks, including virtual switches and software and hardware adapters
  • Make virtual machine replication easier by automating ESXi installations
  • Gain valuable tips for configuration and fine-tuning

Table of Contents

  1. Preface
    1. Audience
    2. Organization of This Book
    3. Font Conventions
    4. Using Code Examples
    5. Safari® Books Online
    6. We’d Like to Hear from You
    7. Acknowledgments
  2. 1. VMware Infrastructure Installation
    1. 1.1. What Is VMware Infrastructure 5?
    2. 1.2. What Is VMware vSphere 5.0?
    3. Convergence from ESX to ESXi with vSphere 5.0
    4. 1.3. VMware ESXi 5.0 Configuration Maximums
    5. 1.4. VMware ESXi 5.0 Server Overview
    6. 1.5. VMware ESXi 5.0 Overview
    7. 1.6. VMware ESXi 5.0 Installation
    8. 1.7. VMware vCenter Server 5.0 Overview
    9. 1.8. vCenter Server 5.0 Installation
    10. 1.9. VMware vCenter Client 5.x Overview
    11. 1.10. vCenter Client 5.x Installation
    12. vCenter 5.0 Web Client Installation
    13. vSphere 5.0 License Changes
    14. 1.11. vConverter
  3. 2. Storage
    1. 2.1. Comparing ESXi Storage Options
    2. Selecting the Virtual Machine Datastore Location
    3. 2.2. Storage Runtime Naming Scheme
    4. 2.3. Creating a Network for the Software iSCSI Initiator
    5. 2.4. Configuring Software iSCSI on ESXi
    6. 2.5. Configuring Hardware iSCSI with an HBA
    7. 2.6. Configuring iSCSI in Windows Virtual Machines
    8. 2.7. Opening Firewall Ports for an ESXi iSCSI Software Initiator
    9. 2.8. Multipathing with iSCSI
    10. 2.9. Adding Fibre Channel Storage in ESXi
    11. 2.10. Creating a Raw Device Mapping for Virtual Machines
    12. 2.11. Creating a VMkernel Port for Access to NFS Datastores
    13. 2.12. Configuring ESXi to Use NFS
    14. 2.13. Creating a VMFS Volume in vCenter
    15. 2.14. Performing a Storage Rescan
    16. 2.15. Creating a VMFS Volume via the Command Line
    17. 2.16. Viewing the Files that Define a VMFS Volume
    18. 2.17. Increasing the VMFS Volume Capacity
    19. 2.18. Reading VMFS Metadata
    20. 2.19. Creating a Diagnostic Partition
    21. 2.20. Removing Storage Volumes from ESXi
    22. 2.21. Determining whether a VMFS Datastore Is on a Local or SAN Disk
    23. 2.22. Adjusting Timeouts When Adding Storage in vCenter
    24. 2.23. Setting Disk Timeouts in Windows
    25. Renaming Datastores
  4. 3. Networking
    1. 3.1. Configuring ESXi Network Ports and the Firewall
    2. 3.2. Creating a vSwitch for Virtual Machines
    3. 3.3. Removing a Virtual Switch
    4. 3.4. Adding VMotion to Enable Virtual Machine Migration
    5. 3.5. Modifying the Speed of a Network Adapter
    6. 3.6. Choosing Network Elements that Protect Security
    7. 3.7. Setting the Basic Level 2 Security Policy
    8. 3.8. Ethernet Traffic Shaping on Standard vSwitches
    9. 3.9. Load Balancing and Failover
    10. 3.10. Enabling Jumbo Frames on a VMkernel for iSCSI
    11. 3.11. Enabling Jumbo Frames on a Standard vSwitch
    12. 3.12. Enabling Jumbo Frames on a Virtual Machine
    13. 3.13. Changing the ESXi Host IP Address
    14. 3.14. Using the Remote Command Line to Locate Physical Ethernet Adapters
    15. 3.15. Changing the Ethernet Port Speed via the Command Line
    16. Enabling TCP Segmentation Offload Support on a Virtual Machine
    17. Enabling Jumbo Frames on a Distributed Switch
    18. Changing DNS Entries on the ESXi Host
    19. Creating a vSphere Distributed Switch
  5. 4. Resource and vCenter Management
    1. Monitoring Virtual Machines Inside the vSphere Cluster
    2. 4.1. Understanding Virtual Machine Memory Use Through Reservations, Shares, and Limits
    3. 4.2. Configuring Virtual Machine CPU Limits
    4. 4.3. Configuring Virtual Machine CPU Shares
    5. 4.4. Configuring Virtual Machine CPU Reservations
    6. 4.5. Setting Up Resource Pools
    7. 4.6. Understanding Resource Pools
    8. 4.7. Expandable Reservations in Resource Pools
    9. 4.8. Creating a Cluster
    10. 4.9. Adding Hosts to a Cluster
    11. Enabling Hyperthreading on a Virtual Machine
    12. 4.10. Enabling DRS in a Cluster
    13. 4.11. Understanding Cluster States and Warnings
    14. 4.12. Using ESXi CPU/RAM Hot Add/Hotplug Support
    15. 4.13. Surviving a vCenter Server Failure or Outage
  6. 5. Useful Tools and References
    1. 5.1. Entering Maintenance Mode via the Command Line
    2. 5.2. Displaying Server Information
    3. 5.3. Viewing the ESXi Version
    4. 5.4. Changing the Virtual Disk from BusLogic to LSI Logic
    5. 5.5. Hiding the VMware Tools Icon
    6. 5.6. Viewing Disk Partitions via the Console
    7. 5.7. Monitoring CPU Usage
    8. 5.8. Monitoring Memory
    9. 5.9. Monitoring Storage Performance
    10. 5.10. Monitoring Network Usage
    11. 5.11. Managing Virtual Switches
    12. 5.12. Generating a Logfile for VMware Support
    13. 5.13. Checking ESXi Patches
    14. 5.14. Enabling NTP in the vCenter
    15. 5.15. Changing the ESXI Server’s Time
    16. 5.16. Restarting the vCenter Agent
    17. 5.17. Finding Virtual Machine Snapshots
    18. 5.18. Renaming a Virtual Machine via the vCenter
    19. 5.19. Setting ESXi Options Using the Command Line
    20. 5.20. Configuring Authentication Choices Using the Command Line
    21. 5.21. Manipulating the Crash Dump Partition
    22. 5.22. Configuring a Firewall on the Command Line
    23. 5.23. Managing ESXi Driver Modules
    24. 5.24. Configuring Storage Multipathing
    25. 5.25. Managing NFS Mounts
    26. 5.26. Managing Disk Volumes
    27. 5.27. Configuring Ethernet Adapters
    28. 5.28. Rescanning Host Bus Adapters
    29. 5.29. Managing Add-ons from the Command Line
    30. 5.30. Managing VMkernel Network Routes
    31. 5.31. Configuring Software iSCSI Options
    32. 5.32. Configuring Hardware iSCSI Options
    33. 5.33. Upgrading Software VIBs
    34. 5.34. Displaying Storage Path Information
    35. 5.35. Managing SCSI Device Mappings with ESXi5 vSphere
    36. 5.36. Managing VMkernel Ports
  7. 6. General Security
    1. 6.1. Enabling SSH on ESX 3.5 / ESX 4.x
    2. 6.2. Enabling Direct Root Logins on Your ESX Server
    3. 6.3. Adding Users and Groups
    4. 6.4. Allowing or Denying Users the Use of SSH
    5. 6.5. Turning On the Message of the Day for Console Users
    6. 6.6. Changing the Root Password via the Console
    7. 6.7. Recovering a Lost Root Password
    8. 6.8. Disabling Direct Root Console Logins
    9. 6.9. Securing the GRUB Bootloader Menu
    10. 6.10. Disabling USB Drive Mounting
    11. 6.11. Opening and Closing Firewall Ports via the Console
    12. 6.12. Checking Default ESX Ports
    13. 6.13. Turning on SNMP for Remote Administration
    14. 6.14. Using SNMP Version 3
    15. 6.15. Using Sudo
    16. 6.16. Configuring Sudo
    17. 6.17. Tracking Users via the CLI
    18. 6.18. Configuring Active Directory Authentication
    19. 6.19. Setting a Maximum Number of Failed Logins
    20. 6.20. Limiting Access to the Su Command
    21. 6.21. Setting User Password Aging
    22. 6.22. Disabling Copy and Paste
    23. 6.23. Disabling Disk Shrinking on Virtual Machines
    24. 6.24. Disabling Unneeded Devices
    25. 6.25. Preventing Unwanted Device Additions and Removals
    26. 6.26. Disabling VMware Tools Settings Override
  8. 7. Automating ESXi Installations
    1. 7.1. Selecting a Different Boot Option with ESXi 5.x
    2. Building a Kickstart Configuration File for Automated Deployments
    3. Differences Between ESXi 4.x and ESXi 5.x Kickstart Commands
    4. 7.2. Advanced Installation Scripting Using %firstboot
    5. 7.3. Advanced Installation Scripting Using %pre
    6. 7.4. Advanced Installation Scripting Using %post
    7. Methods of Upgrading ESX 4.0 Classic to ESXi 5.0
    8. Upgrading ESXi 4.x to ESXi 5.0 via CD/DVD
    9. Installing vSphere Auto Deploy
    10. Formatting a USB Key for ESXi Installations
  9. 8. vCloud Director Overview
    1. What Is vCloud Director?
    2. What’s New in vCloud Director 1.5
    3. vCloud Director Maximums
    4. vCloud Director Requirements
    5. vCloud Director (Evaluation Appliance)
    6. Deploying vShield Manager
    7. Attaching vCloud Director to the vCenter Server
    8. Creating a Provider Virtual Datacenter
    9. Allocating External Network Resources
    10. Adding Network Pools for Virtual Datacenters
  10. 9. vSphere Storage Appliance
    1. 9.1. What Is the vSphere Storage Appliance?
    2. vSphere Storage Appliance Requirements
    3. Installation of the vSphere Storage Appliance
    4. vSphere Storage Appliance Cluster Creation Process
  11. Index
  12. About the Authors
  13. Colophon
  14. Copyright