Synopses & Reviews
If you want to gain insight into the real-world uses of VMware ESX and ESXi, this book provides scores of step-by-step solutions for working with these products 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 the stumbling blocks you'll encounter when you monitor systems, troubleshoot problems, and deal with security.
In addition to the recipes, VMware Cookbook includes background information to help you determine your virtualization needs. You'll come to view VMware as part of the real environment, alongside operating systems, storage, and logical and physical network components.
- Follow best practices for installing VMware in your environment
- Discover how to secure and monitor your network
- Understand disk storage implementation and configuration
- Learn resource management using the distributed resource scheduler, shares, and resource pools
- Configure logical and physical networks
- Learn how to clone and migrate servers
- Gain valuable tips for configuration and fine-tuning
Many resources can teach you about virtualization and the basics of VMware. This book is for system administrators who are ready to go beyond an introduction.
VMware is a powerful and flexible platform for pooling the resources from computer clusters or several hardware servers and distributing them quickly. This book provides a look into real-world use of VMware ESX and ESXi, with step-by-step solutions for problems that occur in a wide range of environments.
Many resources exist for learning virtualization technology and the foundations of the VMware software package, including installation and simple configuration. This book provides a deeper look into practical usage. Written by experts with experience using VMware in a production environment, VMware Cookbook shares tips and tricks learned through trial and error, and supplies the background you need to apply them. You'll view VMware as part of its environment, with attention to operating systems, storage, and logical and physical network components.
Major topics include:
Installation best practices Disk storage implementations and configurations Logical and physical network configuration Security and monitoring Resource Management, using the Distributed Resource Scheduler, shares, and resource pools Cloning and migrating servers Configuration and fine-tuning
VMware Cookbook will ease the burden of system administrators who want more than a basic introduction to this complex and mission-critical technology.
VMware is a powerful, flexible, and useful tool for pooling and distributing resources from computer clusters or several hardware servers. This book provides a look into real-world VMware usage, with step-by-step solutions for problems that occur in a wide range of environments.
A Real-World Guide to Effective VMware Use
About the Author
Matthew Helmke has written articles for magazines such as Linux+ and Linux Identity, helped write Prentice Hall's The Official Ubuntu Book, and has written and self-published two books about Arabic and Moroccan culture. He first used Unix in 1987 while studying Lisp on a Vax at the university. Currently, he is an active member of the Ubuntu Linux community as an Administrator and Forum Council member for the Ubuntu Forums (ubuntuforums.org), and a member of the membership approval committee for Ubuntu in Europe, the Middle East, and Africa. He has run a business using only free software, has done some consulting, and is currently working on a master's degree in Information Resources and Library Science at the University of Arizona.
Table of Contents
Preface; Audience; Organization of This Book; Font Conventions; Using Code Examples; We'd Like to Hear from You; Safari® Books Online; Acknowledgments; Chapter 1: VMware Infrastructure Installation; 1.1 What Is VMware Infrastructure 3?; 1.2 What Is VMware vSphere 4.0?; 1.3 VMware ESX 3.x/4.x Configuration Maximums; 1.4 VMware ESX 3.x Server Overview; 1.5 VMware ESX 3.x Installation; 1.6 VMware ESXi 3.5 Overview; 1.7 VMware ESXi 3.5 Installation; 1.8 VMware vCenter Server 2.x Overview; 1.9 vCenter Server 2.x Installation; 1.10 VMware vCenter Client 2.x Overview; 1.11 vCenter Client 2.x Installation; 1.12 License Server Overview; 1.13 License Server (vCenter 2.x) Installation; 1.14 vConverter Overview; 1.15 vConverter Installation; 1.16 VMware ESX 4.0 Installation; Chapter 2: Storage; 2.1 Comparing ESX Storage Options; 2.2 Storage Device Naming Scheme; 2.3 Creating a Network for a Software iSCSI Initiator; 2.4 Configuring Software iSCSI; 2.5 Configuring a Hardware iSCSI Initiator; 2.6 Configuring iSCSI in Windows Virtual Machines; 2.7 Opening Firewall Ports for an ESX iSCSI Software Initiator; 2.8 Multipathing with iSCSI; 2.9 Adding Fibre Channel Storage in ESX; 2.10 Raw Device Mapping in Virtual Machines; 2.11 Creating a Port to Access NFS Datastores; 2.12 Configuring ESX to Use NFS; 2.13 Creating a VMFS Volume in vCenter; 2.14 Performing a Storage Rescan; 2.15 Creating a VMFS Volume via the Command Line; 2.16 Viewing the Files That Define a VMFS Volume; 2.17 Extending a VMFS Volume; 2.18 Reading VMFS Metadata; 2.19 Renaming a VMFS Volume Label from the Command Line; 2.20 Manually Creating and Aligning a VMFS Partition; 2.21 Creating a Diagnostic Partition; 2.22 Removing Storage Volumes from ESX; 2.23 Determining Whether a VMFS Datastore Is on a Local or SAN Disk; 2.24 Adjusting Timeouts When Adding Storage in vCenter; 2.25 Setting Disk Timeouts in Windows; Chapter 3: Networking; 3.1 Understanding Differences Between ESX 3.5 and ESXi 3.5 in Network Support; 3.2 Configuring ESX Network Ports and Firewall; 3.3 Creating a vSwitch for Virtual Machines; 3.4 Removing a Virtual Switch; 3.5 Adding VMotion to Enable Virtual Machine Migration; 3.6 Creating a Service Console Network via the CLI; 3.7 Checking Connectivity Using vmkping; 3.8 Modifying the Speed of a Network Adapter; 3.9 Choosing Network Elements That Protect Security; 3.10 Setting the Basic Level 2 Security Policy; 3.11 Ethernet Traffic Shaping; 3.12 Using Multiple Gateways; 3.13 Load Balancing and Failover; 3.14 Creating a Jumbo Frame VMkernel Interface for iSCSI; 3.15 Enabling Jumbo Frames on a vSwitch; 3.16 Enabling Jumbo Frames on a Virtual Machine; 3.17 Changing the Service Console IP Address; 3.18 Using the Command Line to Locate Physical Ethernet Adapters; 3.19 Changing the Ethernet Port Speed via the Command Line; 3.20 Restoring a Service Console via the CLI; Chapter 4: Resource and vCenter Management; 4.1 Understanding Virtual Machine Memory Use Through Reservations, Shares, and Limits; 4.2 Configuring Virtual Machine CPU Limits; 4.3 Configuring Virtual Machine CPU Shares; 4.4 Configuring Virtual Machine CPU Reservations; 4.5 Setting Up Resource Pools; 4.6 Understanding Resource Pools; 4.7 Expandable Reservations in Resource Pools; 4.8 Creating a Cluster; 4.9 Adding Hosts to a Cluster; 4.10 Enabling DRS in a Cluster; 4.11 Understanding Cluster States and Warnings; 4.12 Reconfiguring HA on a Host; 4.13 Using ESX 4.x CPU/RAM Hot Add/Hotplug Support; 4.14 Surviving a vCenter Server Failure or Outage; Chapter 5: Useful Command-Line Tools; 5.1 Entering Maintenance Mode via the Command Line; 5.2 Displaying Server Information; 5.3 Viewing the ESX Version; 5.4 Changing the Virtual Disk from BusLogic to LSI Logic; 5.5 Hiding the VMware Tools Icon; 5.6 Emptying a Large Virtual Machine Logfile; 5.7 Viewing Disk Partitions via the Console; 5.8 Monitoring CPU Usage; 5.9 Monitoring Memory; 5.10 Monitoring Storage Performance; 5.11 Monitoring Network Usage; 5.12 Managing Virtual Switches; 5.13 Generating a Logfile for VMware Support; 5.14 Checking ESX Patches; 5.15 Enabling NTP in vCenter; 5.16 Enabling NTP via the Command Line; 5.17 Changing the ESX Server's Time; 5.18 Using TCP Wrappers; 5.19 Restarting the vCenter Agent; 5.20 Unregistering a Virtual Machine via the Command Line; 5.21 Registering a Virtual Machine via the Command Line; 5.22 Finding Virtual Machine Snapshots; 5.23 Renaming a Virtual Machine via vCenter; 5.24 Renaming a Virtual Machine via the Command Line; 5.25 Using Host Files; 5.26 Setting ESX Options Using the Command Line; 5.27 Configuring Authentication Choices Using the Command Line; 5.28 Manipulating the Bootloader; 5.29 Manipulating the Crash Dump Partition; 5.30 Configuring a Firewall on the Command Line; 5.31 Managing ESX Driver Modules; 5.32 Configuring Storage Multipathing; 5.33 Managing NFS Mounts; 5.34 Managing Disk Volumes with ESX4; 5.35 Configuring Ethernet Adapters; 5.36 Rescanning Host Bus Adapters; 5.37 Managing ESX4 Add-ons from the Command Line; 5.38 Managing Resource Groups from the Command Line; 5.39 Managing VMkernel Network Routes; 5.40 Configuring Software iSCSI Options; 5.41 Configuring Hardware iSCSCI Options; 5.42 Upgrading Your Version of VMware; 5.43 Displaying vmhba Names with Associated Mappings; 5.44 Managing SCSI Device Mappings with ESX4 vSphere; 5.45 Managing VMkernel Ports; 5.46 Managing vswif Console Network Settings; Chapter 6: General Security; 6.1 Enabling SSH on ESXi; 6.2 Enabling Direct root Logins on Your ESX Server; 6.3 Adding Users and Groups; 6.4 Allowing or Denying Users the Use of SSH; 6.5 Turning on the MOTD for Console Users; 6.6 Changing the root Password via the Console; 6.7 Recovering a Lost root Password; 6.8 Disabling Direct root Console Logins; 6.9 Securing the GRUB Bootloader Menu; 6.10 Disabling USB Drive Mounting; 6.11 Opening and Closing Firewall Ports via the Console; 6.12 Checking Default ESX Ports; 6.13 Turning on SNMP for Remote Administration; 6.14 Using SNMP Version 3; 6.15 Using sudo; 6.16 Configuring sudo; 6.17 Tracking Users via the CLI; 6.18 Configuring Active Directory Authentication; 6.19 Setting a Maximum Number of Failed Logins; 6.20 Limiting Access to the su Command; 6.21 Setting User Password Aging; 6.22 Disabling Copy and Paste; 6.23 Disabling Disk Shrinking on Virtual Machines; 6.24 Disabling Unneeded Devices; 6.25 Preventing Unwanted Device Additions and Removals; 6.26 Disabling VMware Tools Settings Override; Chapter 7: Automating ESX Installation; 7.1 Enabling Scripted Install Support on ESX; 7.2 Using the Scripted Installer; 7.3 Enhancing the Kickstart Configuration; 7.4 Copying the CD-ROM to Facilitate NFS Installations; 7.5 Advanced Install Scripting Using %pre; 7.6 Advanced Install Scripting Using %post; 7.7 Using the ESX Deployment Appliance; Colophon;