vSphere Virtual Machine Management
()
About this ebook
This book is for VMware administrators who want to build their knowledge of virtual machine administration and configuration. It’s assumed that you have some experience with virtualization administration and vSphere.
Related to vSphere Virtual Machine Management
Related ebooks
VMware Horizon 6 Desktop Virtualization Solutions Rating: 0 out of 5 stars0 ratingsLearning VMware App Volumes Rating: 0 out of 5 stars0 ratingsImplementing VMware vCenter Server Rating: 0 out of 5 stars0 ratingsLearning PowerCLI Rating: 0 out of 5 stars0 ratingsOpenStack Object Storage (Swift) Essentials Rating: 0 out of 5 stars0 ratingsCitrix XenApp® 7.5 Desktop Virtualization Solutions Rating: 0 out of 5 stars0 ratingsCitrix® XenApp® 7.x Performance Essentials Rating: 0 out of 5 stars0 ratingsGetting Started with Red Hat Enterprise Virtualization Rating: 0 out of 5 stars0 ratingsHybrid Cloud Management with Red Hat CloudForms Rating: 0 out of 5 stars0 ratingsMicrosoft Hyper-V Cluster Design Rating: 0 out of 5 stars0 ratingsDisaster Recovery Using VMware vSphere Replication and vCenter Site Recovery Manager Rating: 0 out of 5 stars0 ratingsVMware Horizon View High Availability Rating: 0 out of 5 stars0 ratingsWindows Server 2012 Hyper-V: Deploying Hyper-V Enterprise Server Virtualization Platform Rating: 0 out of 5 stars0 ratingsInformation Storage and Management: Storing, Managing, and Protecting Digital Information Rating: 0 out of 5 stars0 ratingsGetting Started with VMware Virtual SAN Rating: 0 out of 5 stars0 ratingsVMware Workstation - No Experience Necessary Rating: 0 out of 5 stars0 ratingsMastering VMware Horizon 7 - Second Edition Rating: 0 out of 5 stars0 ratingsWeb 3.0 Rating: 0 out of 5 stars0 ratingsvSphere High Performance Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsMicrosoft Exchange Server 2013 High Availability Rating: 0 out of 5 stars0 ratingsCitrix XenApp Performance Essentials Rating: 0 out of 5 stars0 ratingsOracle VM Manager 2.1.2 Rating: 0 out of 5 stars0 ratingsApplication Layering with VMware App Volumes Rating: 0 out of 5 stars0 ratingsVMware vRealize Orchestrator Cookbook Rating: 0 out of 5 stars0 ratingsHeterogeneous Cellular Networks Rating: 0 out of 5 stars0 ratingsWindows Azure Hybrid Cloud Rating: 0 out of 5 stars0 ratingsFedora 10 and Red Hat Enterprise Linux Bible Rating: 4 out of 5 stars4/5Decentralizing Finance: How DeFi, Digital Assets, and Distributed Ledger Technology Are Transforming Finance Rating: 0 out of 5 stars0 ratingsFrom Zero To Mining Hero: A Complete Guide For New and Experienced Crypto Miners Rating: 0 out of 5 stars0 ratingsThe Ultimate Docker Container Book: Build, test, ship, and run containers with Docker and Kubernetes Rating: 0 out of 5 stars0 ratings
Computers For You
Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5ITIL Foundation Essentials ITIL 4 Edition - The ultimate revision guide, second edition Rating: 5 out of 5 stars5/5Algorithms to Live By: The Computer Science of Human Decisions Rating: 4 out of 5 stars4/5Narrative Design for Indies: Getting Started Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Storytelling with Data: Let's Practice! Rating: 4 out of 5 stars4/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Learn Algorithmic Trading: Build and deploy algorithmic trading systems and strategies using Python and advanced data analysis Rating: 0 out of 5 stars0 ratingsBlender 3D Basics Beginner's Guide Second Edition Rating: 5 out of 5 stars5/5A Modern Enterprise Architecture Approach: Enterprise Architecture Rating: 4 out of 5 stars4/5Learning the Chess Openings Rating: 5 out of 5 stars5/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5UX/UI Design Playbook Rating: 4 out of 5 stars4/5Python for Finance Cookbook: Over 50 recipes for applying modern Python libraries to financial data analysis Rating: 0 out of 5 stars0 ratingsGet Started in UX: The Complete Guide to Launching a Career in User Experience Design Rating: 4 out of 5 stars4/5Becoming a Data Head: How to Think, Speak, and Understand Data Science, Statistics, and Machine Learning Rating: 5 out of 5 stars5/5The Alignment Problem: How Can Machines Learn Human Values? Rating: 4 out of 5 stars4/5Data Visualization with Excel Dashboards and Reports Rating: 4 out of 5 stars4/5Wordpress 2023 A Beginners Guide : Design Your Own Website With WordPress 2023 Rating: 0 out of 5 stars0 ratingsCompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsPython for Beginners: A Crash Course to Learn Python Programming in 1 Week Rating: 0 out of 5 stars0 ratings
Reviews for vSphere Virtual Machine Management
0 ratings0 reviews
Book preview
vSphere Virtual Machine Management - Rebecca Fitzhugh
Table of Contents
vSphere Virtual Machine Management
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Virtual Machine Concepts
vSphere virtual machines
Virtual machine components
Uses of virtual machines
The primary virtual machine resources
CPU
Memory
Network
Disk
Virtual machine files
Configuration files
Swap files
Virtual disks
Snapshot files
Other files
Viewing virtual machine files
Using the vSphere Client
Using the vSphere Web Client
Using command line
VMware Tools
Summary
2. Creating a Virtual Machine Using the Wizard
vSphere Client versus vSphere Web Client
Creating a VM using the typical configuration wizard
Name and Location
Storage
Guest Operating System
Network
Create a Disk
Ready to Complete
Editing the settings
Creating a VM using the custom configuration wizard
Name and Location
Storage
Virtual Machine Version
Guest Operating System
CPUs
Memory
Network
SCSI controller
Creating a new virtual disk
Using an existing virtual disk
Raw Device Mappings
Do not create disk
Ready to Complete
Creating a VM using vSphere Web Client
Select a name and folder
Select a compute resource
Select storage
Select compatibility
Select a guest OS
Customize hardware
Ready to complete
Summary
3. Other Ways to Provision a Virtual Machine
Configuring virtual machine customizations
Copying Sysprep files to vCenter directory
Creating a customization
New VM Guest Customization Spec
Set Registration Information
Set Computer Name
Enter Windows License
Set Administrator Password
Run Once
Configure Network
Set Workgroup or Domain
Set Operating System Options
Ready to complete
Creating a virtual machine from a template
Creating a template
Deploying VMs from the template
Select a name and folder
Select a compute resource
Select storage
Select clone options
Creating a virtual machine by cloning
Creating a virtual machine from an OVF file
Select source
Review details
Accept EULAs
Select name and location
Select storage
Setup networks
Customize template
Ready to complete
Creating a virtual machine using VMware vCenter Converter
Source System
Source Machine
Destination System
Destination Virtual Machine
Destination Location
Options
Summary (pane)
Summary
4. Advanced Virtual Machine Settings
Introducing the virtual machine monitor
Understanding monitor modes
Enabling CPU hot plug / memory hot add
The CPUID mask
The CPU affinity setting
Setting the .vswp location
Viewing other advanced options
The General Options section
The VMware Remote Console Options section
The VMware Tools section
The Boot Options section
Installing VMware Tools
Installing VMware Tools in a Windows virtual machine
Installing VMware Tools in a Linux virtual machine
Summary
5. Managing Multitiered Applications with vApps
What is a vApp?
Creating a vApp
vApp options
IP addressing policies
Virtual machine startup/shutdown order
Exporting a vApp
Cloning a vApp
Summary
6. Virtual Machine Performance and Resource Allocation
Resource performance concepts
CPU virtualization
Memory reclamation
Transparent page sharing (TPS)
Ballooning
Compression
Swapping to host cache
Hypervisor swapping
Network constraint
Storage constraint
Understanding resource controls
Shares
Limits
Reservations
Resource pools
Creating a resource pool
Expandable reservations
Network I/O Control
Storage I/O Control
vSphere Storage APIs
Disk alignment
Performance tuning
Traditional performance practices
Performance problems
Troubleshooting performance
Summary
7. Monitoring Virtual Machines
Performance charts
Overview performance charts
Advanced performance charts
Using esxtop
Monitoring CPU
Monitoring memory
Monitoring network
Monitoring storage
The esxtop options
Using alarms
Creating condition-based alarms
Creating event-based alarms
Other places to find information
Summary
8. Migrating Virtual Machines
vMotion
Configuring for vMotion
Migration using vMotion
Migration using Storage vMotion
Cross-host Storage vMotion
Summary
9. Balancing Resource Utilization and Availability
Clusters
Creating a cluster
Distributed Resource Scheduler (DRS)
Overview of DRS
Enabling and configuring DRS
DRS recommendations and monitoring DRS
Affinity/Anti-affinity rules
High Availability
Overview of HA
Configuring HA
Storage Distributed Resource Scheduler (SDRS)
Overview of SDRS
Configuring SDRS
Applying SDRS recommendations
Anti-affinity rules
Summary
10. Virtual Machine Design
Comparing provisioning methods
Provisioning using templates
Using clones for provisioning
Using virtual appliances
OVF templates
Virtual hardware and resource configuration
Virtual machine maximums
Memory
CPU
Storage
The Disk Provisioning types
Disk Mode
The SCSI controller
Raw Device Mapping (RDM)
The virtual network adapters
Other considerations
Renaming virtual machines
Upgrading virtual hardware version
Using tags
NTP configuration
Disabling unused virtual hardware
VMware Tools
Summary
Index
vSphere Virtual Machine Management
vSphere Virtual Machine Management
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2014
Production Reference: 1140314
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-218-5
www.packtpub.com
Cover Image by Tony Shi (<shihe99@hotmail.com>)
Credits
Author
Rebecca Fitzhugh
Reviewers
James Bowling
Andy Grant
Christopher Kusek
Brian Wuchner
Acquisition Editor
Joanne Fitzpatrick
Content Development Editor
Ankita Shashi
Technical Editors
Kunal Anil Gaikwad
Monica John
Pramod Kumavat
Mukul Pawar
Adrian Raposo
Siddhi Rane
Copy Editors
Alisha Aranha
Sayanee Mukherjee
Adithi Shetty
Project Coordinator
Wendell Palmer
Proofreaders
Lawrence A. Herman
Amy Johnson
Indexer
Mariammal Chettiyar
Graphics
Ronak Dhruv
Yuvraj Mannari
Abhinash Sahu
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda
About the Author
Rebecca Fitzhugh is an independent VMware Consultant and VMware Certified Instructor (VCI). Her focus is on designing and delivering solutions as an infrastructure architect as well as delivering various authorized VMware courses. Prior to becoming a consultant and instructor, she served for five years in the United States Marine Corps, where she assisted in the buildout and administration of multiple enterprise networks residing on virtual infrastructure.
Rebecca currently holds multiple IT industry certifications, including VMware Certified Advanced Professional (VCAP) in Data Center Design (DCD), Data Center Administration (DCA), and Cloud Infrastructure Administration (CIA). You can follow her on Twitter (@RebeccaFitzhugh) or contact her using LinkedIn (www.linkedin.com/in/rmfitzhugh/).
First and foremost, I would like to thank my sister, Robyn, and my brother, Joe. There are not enough words in this world to express how deeply grateful I am for you. I also want to thank my hilarious and brilliant niece and nephew, Katalyna and Kellan, for inspiring me each and every day. To all my friends around the world who have supported me and encouraged me: I'm so glad that there are people like you in my life with whom I can share my adventures.
A big thanks to the editors, technical editors, and reviewers who went through my writing. This book was written across three continents, much of it while sitting in the planes and airports. Jet lag is not conducive to writing coherent sentences; so, I truly appreciate your patience as I worked on trying to get my thoughts written down.
About the Reviewers
James Bowling is a VCAP5-DCD, VCAP5-DCA, VCP5-DCV/IaaS, VCP-Cloud, VMware vExpert (x3), Cisco Champion for Data Center, Houston VMUG Leader, and virtualization enthusiast living in Houston, TX with over 13 years of experience. He has received the 2009 COMMON/IBM Power Systems Innovation Award for Energy Efficiency for his design and implementation of the United States Bowling Congress (USBC) Datacenter in Arlington, TX. James has held presentations on automation and orchestration at VMworld US and EMEA. His experience spans designing, deploying, and maintaining large-scale cloud infrastructures. He is currently a Cloud Architect for General Datatech, LP in Dallas, Texas. He can be reached on Twitter (@vSential) or through his virtualization blog (vsential.com).
Andy Grant is a Technical Consultant for HP Enterprise Services. Andy's primary focus is datacenter infrastructure and virtualization projects across a number of industries, including government, healthcare, forestry, financial, gas and oil, and international contracting. He currently holds a number of technical certifications such as VCAP4/5-DCA/DCD, VCP4/5, MCITP:EA, MCSE, CCNA, Security+, A+, and HP ASE BladeSystem. Outside of work, Andy enjoys hiking, action pistol sports, and spending time adventuring with his son.
Christopher Kusek is a technology visionary and Internet personality known as @cxi on Twitter. A VMware vExpert, he has worked for enterprise vendors such as EMC and NetApp, leading global teams of Virtualization and Cloud Professionals. He is currently leading the charge for virtualization for the war effort in Operation Enduring Freedom in Afghanistan.
Brian Wuchner is a Senior Systems Administrator for a government agency. He has over 10 years of industrial experience with specialties in infrastructure automation, directory services, and data center virtualization. Brian holds the VCA-Cloud, VCA-WM, and VCP5-DCV certifications and was awarded the vExpert title from VMware for 2011-2013. He can be contacted on LinkedIn (http://www.linkedin.com/in/bwuch), on Twitter (@bwuch), or through his blog at http://enterpriseadmins.org.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read, and search across Packt's entire library of books.
Why Subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Instant Updates on New Packt Books
Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.
Preface
Ever since VMware was founded in 1998, it has been creating stable x86 virtualization platforms that allow multiple guest operating systems and applications to run on a single physical server. VMware has truly revolutionized how a datacenter is managed. By consolidating and running more workloads on fewer servers, the datacenter requirements are reduced including space, power, cooling, and cabling. Using virtualization also transforms the way servers are provisioned; virtual machines are deployed within a few minutes rather than the much longer process of deploying physical servers. There's hardly any need to mention that there are many advanced features that improve the availability and continuity of virtual machines.
This book aims at assisting vSphere administrators, new and experienced, to improve their knowledge of virtual machine configuration and administration. This is not meant to replace any vSphere administration or installation guides but merely to supplement them.
What this book covers
Chapter 1, Virtual Machine Concepts, covers the fundamental ideas of virtual machines as well as understanding the components that VMs are comprised of.
Chapter 2, Creating a Virtual Machine Using the Wizard, explains the step-by-step process of how to create a virtual machine using the wizard in the vSphere Client and vSphere Web Client.
Chapter 3, Other Ways to Provision a Virtual Machine, covers how to build a template and provision VMs from template, by cloning, or from physical machines using VMware vCenter Converter. Also, guest OS customizations are covered so that potential IP conflicts, hostname conflicts, and duplicate SIDs are avoided.
Chapter 4, Advanced Virtual Machine Settings, discusses a few advanced settings, how to make the configurations, and how these configurations will affect the virtual machine's functionality and performance.
Chapter 5, Managing Multitiered Applications with vApps, discovers why a vApp is the perfect container for a multitiered application. Also, included herein are instructions on how to create, configure, and manage VMware vSphere vApps.
Chapter 6, Virtual Machine Performance and Resource Allocation, explores different settings that may improve a virtual machine's performance, if needed. Also, discussed in the chapter are resource allocation settings that affect the amount of resources given to a virtual machine and how virtual machines compete in contention.
Chapter 7, Monitoring Virtual Machines, discusses how an administrator can monitor a virtual machine using esxtop and performance graphs.
Chapter 8, Migrating Virtual Machines, explains how to migrate a virtual machine using vMotion and Storage vMotion, if the need arises, as well as how to configure these features.
Chapter 9, Balancing Resource Utilization and Availability, gives a general understanding of how to configure and use vSphere Distributed Resource Scheduler (DRS), Storage DRS, and High Availability.
Chapter 10, Virtual Machine Design, focuses on how the administrator should move forward in the creation and deployment of virtual machines taking everything discussed into consideration.
What you need for this book
This book is technical in nature, so the reader should have a basic understanding of the following:
VMware vSphere
Hypervisor basics
vCenter basics
Active Directory
Domain authentication
Replication
Windows Server
Basic administration skills
Linux
Basic administration skills
Experiencing managing DHCP and DNS
Understanding of basic networking
Who this book is for
Typical readers of this book would be those who have a general understanding of VMware vSphere fundamentals and who want to build up knowledge of virtual machine administration, configuration, and monitoring. This book was written not only to appeal to beginners but also to supply a generous amount of information for advanced users.
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: Once authenticated, type esxtop to begin running this utility.
A block of code is set as follows:
displayName = SampleVM
extendedConfigFile = SampleVM.vmxf
virtualHW.productCompatibility = hosted
memSize = 384
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: Click on OK after configuring this feature.
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <feedback@packtpub.com>, and mention the book title via the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <copyright@packtpub.com> with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
Questions
You can contact us at <questions@packtpub.com> if you are having a problem with any