Preface

VMware is one of those products that many of us, including this book’s authors, have been reading about for years. Ryan had the opportunity to become involved with and architect a virtualized environment a few years ago. After researching several options, he became particularly interested in and impressed by VMware’s enterprise virtualization platform. As time passed and he worked directly with VMware’s products in a production environment, he became even more enthused.

Matthew and Ryan have worked together on several projects in the past. In the summer of 2008, the two of us decided we would like to write a book together. We tossed around ideas and decided to write on VMware’s ESX platform, because it impressed us so. Since Matthew was already an established writer and also technologically proficient, although new to this specific software, we decided that Ryan would do the technical writing and Matthew would concentrate his efforts on making sure it all came across clearly and accurately. As we mention later in the Acknowledgments, Dell was kind enough to lend us some equipment for testing while writing, and the two of us got together and began experimenting.

We are genuinely delighted by VMware as a company, and have found its employees very kind and helpful. We have also become sold on its products. Using VMware’s platform in a production environment has been everything it is advertised to be: it has made system administration easier, made the use of resources more efficient and cost-effective, and quite frankly been a lot of fun. If this weren’t the case, like all true geeks (in the best sense of the word), we would find something else to play with. So far, we haven’t.

This book encompasses many of the most useful and interesting recipes we have discovered while using the platform in production, as well as some cool tricks we encountered while testing and playing. We believe that anyone who’s using the VMware platform will find this book useful, and we hope it helps you enjoy VMware as much as we do.

Audience

This book is intended for system administrators who have some experience with VMware ESX, ESXi, or vSphere. Throughout the book we’ve tried to appeal to beginners and also include a generous amount of complex recipes for advanced users. We believe this book will be a solid reference guide for any system administrator, regardless of his level of knowledge. We hope you enjoy it!

Organization of This Book

This book is made up of seven chapters:

  • Chapter 1, VMware Infrastructure Installation, covers installation details for ESX and ESXi. It includes instructions for 3.x and the steps that worked for 4.0 at the time the book was written.

  • Chapter 2, Storage, covers partitions, iSCSI and NFS configuration, and other choices reflecting local or external data storage.

  • Chapter 3, Networking, covers communications at multiple levels, including configuration of virtual switches, software and hardware adapters, Ethernet frame sizes, and more.

  • Chapter 4, Resource and vCenter Management, shows you how best to apportion memory and CPU resources through clustering, shares, hot add/hotplug support, and other options.

  • Chapter 5, Useful Command-Line Tools, presents miscellaneous commands that can rescue you in a pinch and help you keep apprised of your servers’ functioning.

  • Chapter 6, General Security, covers a range of access issues, such as how to control which users have access to each level of the system and how to set up firewalls, networking, and remote access to your desired level of security.

  • Chapter 7, Automating ESX Installation, introduces the configuration files used to control basic networking options, startup activities, and other aspects of the system you’ll want to automate in order to make it easier to replicate virtual machines.

Along the way, you’ll also find plenty of pointers and advice on good programming practices and tips that may help you find and solve hard-to-detect programming errors. There are also plenty of links to websites containing further details on the topics covered.

Font Conventions

This book uses the following typographical conventions:

Italic

Used for email addresses, URLs, filenames, pathnames, and emphasizing new terms when they are first introduced

Constant width

Used for the contents of files and for commands and their output

Constant width bold

Used in code sections to show commands or text that would be typed by the user, and, occasionally, to highlight portions of code

Constant width italic

Used for replaceable items and some comments in code sections

Note

Indicates a tip, suggestion, or general note relating to the nearby text.

Warning

Indicates a warning or caution relating to the nearby text.

Using Code Examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “VMware Cookbook, by Ryan Troy and Matthew Helmke. Copyright 2010 Ryan Troy and Matthew Helmke, 978-0-596-15725-8.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

We’d Like to Hear from You

Every recipe in this book has been tested on various platforms, but occasionally you may encounter problems. The information in this book has also been verified at each step of the production process. However, mistakes and oversights can occur and we will gratefully receive details of any you find, as well as any suggestions you would like to make for future editions. You can contact the author and editors at:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
(800) 998-9938 (in the United States or Canada)
(707) 829-0515 (international or local)
(707) 829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at:

http://www.oreilly.com/catalog/9780596157258

To comment or ask technical questions about this book, send email to the following address, mentioning the book’s ISBN (9780596157258):

For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our website at:

http://www.oreilly.com

Safari® Books Online

Note

Safari Books Online is an on-demand digital library that lets you easily search over 7,500 technology and creative reference books and videos to find the answers you need quickly.

With a subscription, you can read any page and watch any video from our library online. Read books on your cell phone and mobile devices. Access new titles before they are available for print, and get exclusive access to manuscripts in development and post feedback for the authors. Copy and paste code samples, organize your favorites, download chapters, bookmark key sections, create notes, print out pages, and benefit from tons of other time-saving features.

O’Reilly Media has uploaded this book to the Safari Books Online service. To have full digital access to this book and others on similar topics from O’Reilly and other publishers, sign up for free at http://my.safaribooksonline.com.

Acknowledgments

Ryan: I would like to thank my wife, Holly, for her continued support and always-sound advice while I work on projects, which require me to be engulfed in concentration. Without her dedication and interest in my projects they probably wouldn’t become realities. I want to thank my coauthor, Matthew Helmke, for his words of wisdom, great ideas, and never-ending copyediting; you are a true rock star. I’d also like to say thanks to my family, friends, and coworkers for supporting me during the writing of this book—your consistent interest helped keep me motivated.

Matthew: I would like to thank my wonderful wife, Heather, for her consistently supportive attitude and encouragement. Without that, I wouldn’t even try to take on big projects like this book. My kids didn’t help in the project directly, but they did put up with me asking them to be quiet at odd times while I was writing something that required my full attention, and they are incredibly wonderful kids—I love you, Saralyn, Sedona, and Philip! I want to thank Ryan Troy for the opportunity to collaborate on this and other projects and also for the hospitality he and Holly showed me during my visit. I freely and gratefully acknowledge that there is no way this book could/would have been written without Ryan. Finally, I would like to thank all my computer geek friends around the world who were genuinely excited when they discovered I was involved in a book project with O’Reilly—I’m so glad to have people like you in my life with whom I can share my joy as well as my enjoyment of this topic.

Together, we would like to thank all those who helped us make this a better book than it would have been without their assistance: our editor, Andy Oram, and all of the staff at O’Reilly, who have been kind and attentive from the moment we first submitted our book proposal; the wonderful people at Dell who lent us a rack of Dell PowerEdge servers, Cisco switches, and a Dell EqualLogic iSCSI array to use for testing as we wrote the book; the people who helped with the book’s tech review, including Paul Jahnz, Cathy Leik, Guillermo Amodeo, David Deeths, John S. Howard, and Beth Cohen; and finally, the people at VMware for allowing us to be a part of the beta cycle for 4.0 and for making such cool software that we found ourselves excited to learn it and use it and write about it.

Get VMware Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.