logo资料库

VMware vSphere 6.5 Cookbook 3rd Edition.pdf

第1页 / 共564页
第2页 / 共564页
第3页 / 共564页
第4页 / 共564页
第5页 / 共564页
第6页 / 共564页
第7页 / 共564页
第8页 / 共564页
资料共564页,剩余部分请下载后查看
Cover
Title Page
Copyright and Credits
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Upgrading to vSphere 6.5
Introduction 
vSphere 6.5 core components
Hypervisor – VMware ESXi 6.5
Core management layer – VMware vCenter 6.5
Authentication and core services layer – vSphere Platform Services Controller
Upgrade and patch management layer – vCenter Update Manager 6.5
Planning vSphere upgrade
How to do it...
How it works...
Upgrading from vSphere 5.5 or 6.0 to vSphere 6.5
How to do it...
How it works...
Upgrading vCenter Server running Microsoft Windows
How to do it...
How it works...
Using the vCenter 6.5 Migration Assistant 
How to do it...
Upgrading vCenter Server – Migrating from Microsoft Windows to VCSA
Getting ready
How to do it...
How it works...
Upgrading the vCenter Server Appliance
Getting ready
How to do it...
Upgrading ESXi Hypervisor
Getting ready
How to do it...
There is more...
Chapter 2: Greenfield Deployment of vSphere 6.5
Introduction
Deploying vSphere ESXi 6.5
Getting ready
Downloading ESXi 6.5 and mapping it to the server
How to do it...
Configuring ESXi Management Network
Getting ready
How to do it...
There is more...
Deploying vCenter Server Appliance 6.5
How to do it...
Deploying External Platform Services controllers
Getting ready
How to do it...
Part 1 – Deploying a PSC for a new SSO domain
Part 2 – Joining a PSC to an existing SSO domain
How it works...
VMware Certificate Authority
VMware Single Sign-On
VMware licensing service
Deploying vCenter Servers in Enhanced Linked Mode
How to do it...
Configuring SSO identity sources
How to do it...
Assigning users and groups to vCenter Server
Getting ready
How to do it...
Chapter 3: Using vSphere Host Profiles
Introduction
Preparing a reference host
How to do it...
Creating Host Profiles
Getting ready
How it works...
How it works...
Attaching/detaching ESXi hosts to/from a Host Profile
How to do it...
Performing host customizations
Getting ready
How to do it...
Checking Host Profile compliance of ESXi host(s)
Getting ready
How to do it...
How it works...
Scheduling Host Profile compliance checks
Getting ready
How to do it...
Remediating non-compliant ESXi hosts
Getting ready
How to do it...
Using Host Profiles to push a configuration change
How to do it...
Copying settings between Host Profiles
How to do it...
Exporting Host Profiles
How to do it...
Importing Host Profiles
How to do it...
Duplicating Host Profiles
How to do it...
Chapter 4: Using ESXi Image Builder
Introduction
vSphere ESXi Image Builder architecture
Enabling ESXi Image Builder service for vSphere Web Client GUI
How to do it...
Preparing an ESXi Image Builder CLI environment
Getting ready
How to do it...
Downloading an ESXi offline bundle
How to do it...
Importing a software depot
How to do it...
There's more...
Creating an online software depot
Getting ready
How to do it...
There's more...
Creating a custom depot
How to do it...
Creating image profiles using an existing image profile
Getting ready
How to do it...
There's more....
Creating image profiles from scratch
Getting ready
How to do it...
There's more...
Comparing image profiles
How to do it...
Moving image profiles between software depots
How to do it...
Exporting image profiles
How to do it...
There's more...
Chapter 5: Using vSphere Auto Deploy
Introduction
vSphere auto deploy architecture
Enabling vSphere auto deploy service
How to do it...
How it works...
Configuring TFTP server with the files required to PXE boot
Getting ready
How to do it...
How it works...
Configuring the DHCP server to work with auto deploy
Getting ready
How to do it...
How it works...
Preparing vSphere environment – create host profile, configure the deploy rules and activate them
How to do it...
How it works...
Enabling stateless caching
How to do it...
How it works...
Enabling stateful install
How to do it...
How it works...
Chapter 6: Using vSphere Standard Switches
Introduction
Creating a vSphere Standard Switch
Getting ready
How to do it...
There is more...
Creating VMkernel interfaces on a vSphere Standard Switch
Getting ready
How to do it...
There is more...
Creating custom VMkernel TCP/IP stacks
Getting ready
How to do it...
How it works...
Creating virtual machine port groups on a vSphere Standard Switch
Getting ready
How to do it...
There is more...
Managing the physical uplinks of a vSwitch
There is more...
Configuring security, traffic shaping, teaming, and failover on a vSphere Standard Switch
How to do it...
Chapter 7: Using vSphere Distributed Switches
Introduction
Creating a vSphere Distributed Switch
Getting ready
How to do it...
How it works...
Connecting hosts to a vSphere Distributed Switch
How to do it...
Creating a vSphere Distributed port group
How to do it...
How it works...
Port binding
Port allocation
Network resource pools
Managing physical adapter (vmnic) to dvUplink mappings
How to do it...
Migrating a virtual machine network from a vSphere Standard Switch (vSwitch ) to a vSphere Distributed Switch (dvSwitch)
Getting ready
How to do it...
How it works...
Migrating VMkernel interfaces between vSphere Standard (vSwitch) and vSphere Distributed Switches (dvSwitch)
Getting ready
How to do it...
How it works...
Creating additional VMkernel interfaces on a vSphere Distributed Switch (dvSwitch)
Getting ready
How to do it...
Creating a vSphere Distributed Switch backup
How to do it...
How it works...
Restoring dvSwitch from a backup
How to do it...
Creating or importing a dvSwitch from a backup
How to do it...
How it works...
Configuring security, traffic shaping, teaming, and failover on a dvSwitch
Getting ready
How to do it...
How it works...
Security
Promiscuous mode
MAC address changes and forged transmits
Traffic shaping
Teaming and failover
Network failure detection
Notify switches 
Failback
Failover order
Configuring VLANs on a vSphere Standard or Distributed Switch
Getting ready
How to do it...
How it works...
External switch tagging
Virtual Switch Tagging
Virtual Guest Tagging (VGT)
Configuring private VLANs on a dvSwitch
Getting ready
How to do it...
How it works...
Configuring LAGs on a vSphere Distributed Switch
Getting ready
How to do it...
How it works...
Creating user-defined network resource pools
Getting ready
How to do it...
How it works...
There's more...
Using port mirroring on a vSphere Distributed Switch
Getting ready
How to do it...
How it works...
Enabling NetFlow on a vSphere Distributed Switch
How to do it...
How it works...
Chapter 8: Creating and Managing VMFS Datastore
Introduction
Viewing the LUNs presented to an ESXi host
How to do it...
Viewing datastores available on an ESXi host
How to do it...
Creating a VMFS datastore
Getting ready
How to do it...
Managing multipathing configuration of a VMFS datastore
How to do it...
How it works...
Expanding or growing a VMFS datastore
Getting ready
How to do it...
Extending a VMFS datastore
Getting ready
How to do it...
Unmounting and detaching VMFS volumes
Getting ready
How to do it...
Re-mounting a VMFS datastore
Getting ready
How to do it...
Deleting VMFS datastores
Getting ready
How to do it...
Upgrading from VMFS 5 to VMFS 6
How to do it...
There is more...
Managing VMFS volumes detected as snapshots
Getting ready
How to do it...
Masking paths to a LUN
How to do it...
Unmasking paths to a LUN
How to do it...
Chapter 9: Managing Access to the iSCSI and NFS Storage
Introduction
iSCSI fundamentals
NFS fundamentals
Adding the software iSCSI adapter
Getting ready
How to do it...
How it works...
Configuring iSCSI multipathing using port binding
Getting ready
How to do it...
How it works...
Configuring access to an iSCSI target server
Getting ready
How to do it...
How it works...
Creating NFSv3 datastores
Getting ready
How to do it...
How it works...
Creating NFSv4.1 datastores with Kerberos authentication
Getting ready
How to do it...
Chapter 10: Storage IO Control, Storage DRS, and Profile Driven Storage
Introduction
Settings disk shares on virtual machine disks
How to do it...
Enabling Storage I/O Control (SIOC)
How to do it...
How it works...
Integrating a VASA provider with the vCenter Server
Getting ready
How to do it...
How it works...
Using vCenter tags to define storage capabilities
How to do it...
Creating VM storage policies
How to do it...
How it works...
Assigning VM storage policies
How to do it...
How it works...
Chapter 11: Creating and Managing Virtual Machines
Introduction
Virtual machine components
Files that make up a virtual machine
Creating a virtual machine
Getting ready
How to do it...
How it works...
Creating a new hard disk for a virtual machine
How to do it...
How it works...
Adding an existing disk to a virtual machine
How to do it...
Attaching a Raw Device Mapping to a virtual machine
Getting ready
How to do it...
How it works...
Mapping a virtual machine's vNIC to a different port group
Getting ready
How to do it...
How it works...
Creating virtual machine snapshots
Getting ready
How to do it...
How it works...
There's more...
Deleting a virtual machine snapshot
Getting ready
How to do it...
How it works...
Restoring a snapshot in linear snapshot tree
How to do it...
How it works...
Switching to an arbitrary virtual machine snapshot
How to do it...
How it works...
Consolidating snapshots
How to do it...
How it works
Converting a virtual machine to a template
How to do it...
How it works...
Cloning a virtual machine to template
How to do it...
Exporting to an OVF template
How to do it...
How it works...
Deploying a virtual machine from an OVF template
Getting ready
How to do it...
How it works...
There is more...
Creating a local content library
How to do it...
How it works...
Creating a subscribed content library
Getting ready
How to do it...
How it works...
Chapter 12: Configuring vSphere 6.5 High Availability
Introduction
Enabling vSphere HA on a cluster
Getting ready
How to do it...
How it works...
Configuring vSphere HA Admission Control
Getting ready
How to do it...
How it works...
Setting the host isolation response for a HA cluster
Getting ready
How to do it...
How it works...
Setting the VM restart priority for a HA cluster
Getting ready
How to do it...
How it works...
Configuring VM monitoring
How to do it...
How it works...
Configuring datastore heartbeating
How to do it...
How it works...
Disabling host monitoring
How to do it...
How it works...
Configuring vCenter Native High Availability
Getting ready
How to do it...
How it works...
See also
Chapter 13: Configuring vSphere DRS, DPM, and VMware EVC
Introduction
Enabling vSphere DRS on a cluster
Getting ready
How to do it...
How it works
Configuring VMware Enhanced vMotion compatibility
Getting ready
How to do it...
How it work...
See also
Choosing a DRS automation level
Getting ready
How to do it...
How it works...
Overriding the cluster automation level for a VM
Getting ready
How to do it...
Setting a migration threshold
How to do it...
How it works...
Creating DRS VM or host groups
Getting ready
How to do it...
How it works...
Creating VMs to host affinity rules
Getting ready
How to do it...
How it works...
Creating VM affinity or anti-affinity rules
Getting ready
How to do it...
How it works...
Configuring Distributed Power Management
Getting ready
How to do it...
How it works...
Configuring Predictive DRS
Getting ready
How to do it...
How it works...
See also
Chapter 14: Upgrading and Patching using vSphere Update Manager
Introduction
Installing vSphere Update Manager on Windows
Getting ready
How to do it...
Activating vSphere Update Manager in vCenter Server Appliance
Getting ready
How to do it...
How it works...
Installing the Update Manager download service
Getting ready
How to do it...
Configuring VUM with a download source
Getting ready
How to do it...
How it works...
Creating a custom baseline
How to do it...
How it works...
Creating a baseline group
How to do it...
How it works...
Importing an ESXi image and updating a host
Getting ready
How to do it...
How it works...
Leveraging a VM/VA baseline to remediate a VM/VA
How to do it...
How it works...
Chapter 15: Using vSphere Certificate Manager Utility
Introduction
Regenerating a new VMCA Root Certificate and replacing all certificates
Getting ready
How to do it...
Generating certificate signing requests with the vSphere Certificate Manager
Getting ready
How to do it...
How it works...
Replacing all certificates with custom certificate
Getting ready
How to do it...
Reverting the last performed operation by republishing old certificates
How to do it...
How it works...
Resetting all certificates
How to do it...
How it works
Chapter 16: Using vSphere Management Assistant
Introduction
Deploying the vMA appliance
Getting ready
How to do it...
Preparing VMware vMA for first use
How it works...
Configuring VMware vMA to join an existing domain
How to do it...
Adding vCenter to vMA with AD authentication
How to do it...
How it works...
Adding vCenter to vMA with fastpass (fpauth) authentication
Getting ready
How to do it...
How it works...
Adding an ESXi host to vMA
How to do it...
How it works...
Changing the authentication policy
How to do it...
Running CLI commands on target servers
How to do it…
Method 1 – Issuing commands on the default target
Method 2 – Issuing commands by specifying a target server
Method 3 – Issuing commands against a vCenter added as the target
Chapter 17: Performance Monitoring in a vSphere Environment
Introduction
Using esxtop to monitor performance
Getting ready
How to do it...
Exporting and importing esxtop configurations
How to do it...
How it works...
Running esxtop in the batch mode
Getting ready
How to do it...
How it works...
Gathering VM I/O statistics using vscsiStats
Getting ready
How to do it...
Using vCenter performance graphs
Getting ready
How to do it...
How it works...
Other Books You May Enjoy
Index
VMware vSphere 6.5 Cookbook Third Edition Over 140 task-oriented recipes to install, configure, manage, and orchestrate various VMware vSphere 6.5 components Abhilash G B Cedric Rajendran BIRMINGHAM - MUMBAI
VMware vSphere 6.5 Cookbook Third Edition Copyright © 2018 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 authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been 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. Commissioning Editor: Vijin Boricha Acquisition Editor: Heramb Bhavsar Content Development Editor: Sharon Raj Technical Editor: Vishal K. Mewada Copy Editor: Safis Editing Project Coordinator: Virginia Dias Proofreader: Safis Editing Indexer: Francy Puthiry Graphics: Kirk D'Penha Production Coordinator: Melwyn Dsa First published: October 2016 Second edition: October 2017 Third edition: January 2018 Production reference: 1190118 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78712-741-8 www.packtpub.com
mapt.io Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website. Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals Improve your learning with Skill Plans built especially for you Get a free eBook or video every month Mapt is fully searchable Copy and paste, print, and bookmark content PacktPub.com 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 service@packtpub.com for more details. 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.
Contributors About the authors Abhilash G B (@abhilashgb) is a virtualization specialist, author, designer, and a VMware vExpert 2014-2017 who specializes in the areas of data center virtualization and cloud computing. He has been in the IT industry for more than a decade and working on VMware products and technologies since the start of 2007. He sold several VMware certifications including VCIX6-DCV, VCAP4/5 -DCA, VCP3/4/5/6-DCV, VCP-Cloud, and VCP6-NV. He is also the author of the five other books. I dedicate this book to my family. Without their patience and support, this book would not have been possible. Thanks to the Technical Reviewer Mathias Meyenburg for his valuable input. Special thanks to the entire Packt team for their support during the course of writing this book. Cedric Rajendran is a senior staff engineer in technical support with VMware. He has around 13 years of experience covering a wide spectrum of technologies. He holds a master’s degree specializing in International Business. He has served in the fields of Network Ops, Technical Support, and Consulting. His core strengths are on the server and storage virtualization. He has authored a book on VMware Virtual SAN, holds advanced certifications with VMware, and is also a TOGAF certified Enterprise Architect. I dedicate this book to my family, Samantha, Ankita, Dom, Annie, mum, and dad for their encouragement and support. Special thanks to my dear daughter, Samantha. Her intriguing questions about pony were a welcome interruption when work gets tiring. As with my first project, proceeds from this book would be donated to the children at Gerizim.
About the reviewer Mathias Meyenburg is an accomplished business unit manager, solution architect, and senior consultant with more than 15 years of experience in the IT industry. From a system administrator to large-scale data center operations and administration, his career has evolved through constantly updating and expanding his know-how as well as acquiring advancing certifications, CCNA, MCP, and VCP to name a few. In 2016, he was recruited by vleet GmbH as a solution architect and senior consultant for server and desktop virtualization specializing in vSphere, vROPS, NSX, and vSAN. I would like to express my gratitude to my wife Andrea who had to carry the burden while I was occupied with this book and my career and who lovingly looked after our kids while studying herself. Packt is searching for authors like you If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents Chapter 1: Upgrading to vSphere 6.5 Introduction vSphere 6.5 core components Hypervisor – VMware ESXi 6.5 Core management layer – VMware vCenter 6.5 Authentication and core services layer – vSphere Platform Services Controller Upgrade and patch management layer – vCenter Update Manager 6.5 Planning vSphere upgrade Upgrading from vSphere 5.5 or 6.0 to vSphere 6.5 Upgrading vCenter Server running Microsoft Windows Using the vCenter 6.5 Migration Assistant Upgrading vCenter Server – Migrating from Microsoft Windows to VCSA How to do it... How it works... How to do it... How it works... How to do it... How it works... How to do it... Getting ready How to do it... How it works... Getting ready How to do it... Getting ready How to do it... There is more... Upgrading the vCenter Server Appliance Upgrading ESXi Hypervisor Chapter 2: Greenfield Deployment of vSphere 6.5 Introduction 7 7 8 9 9 10 10 11 11 12 13 13 14 15 16 17 18 18 21 22 22 35 35 35 35 37 37 38 40 41 41
Table of Contents Deploying vSphere ESXi 6.5 Downloading ESXi 6.5 and mapping it to the server Configuring ESXi Management Network Deploying vCenter Server Appliance 6.5 Deploying External Platform Services controllers Getting ready How to do it... Getting ready How to do it... There is more... How to do it... Getting ready How to do it... Part 1 – Deploying a PSC for a new SSO domain Part 2 – Joining a PSC to an existing SSO domain How it works... VMware Certificate Authority VMware Single Sign-On VMware licensing service Deploying vCenter Servers in Enhanced Linked Mode Configuring SSO identity sources Assigning users and groups to vCenter Server How to do it... How to do it... Getting ready How to do it... Chapter 3: Using vSphere Host Profiles Introduction Preparing a reference host How to do it... Creating Host Profiles Getting ready How it works... How it works... How to do it... Getting ready How to do it... Attaching/detaching ESXi hosts to/from a Host Profile Performing host customizations [ ii ] 42 42 42 43 46 47 47 51 51 52 59 59 60 60 62 66 66 67 68 68 68 69 69 73 73 73 78 78 80 80 80 81 81 82 83 83 86 87 87
分享到:
收藏