Documente Academic
Documente Profesional
Documente Cultură
Module 7
Course Introduction Introduction to Virtualization Virtual Machines VMware vCenter Server Configure and Manage Virtual Networks Configure and Manage Virtual Storage Managing Virtual Machines
Data Protection Access & Authentication Control Resource Management and Monitoring High Availability Scalability Patch Management Installing vSphere Components
7-2
2011 VMware Inc. All rights reserved
Importance
You must perform many cumbersome tasks when using physical machines. For example, you must move server storage from one storage array to another, deploy servers with the same configuration, and add resources dynamically. To address these issues and more, VMware vSphere 5 provides methods for you to add memory and expand virtual machine disk drives. The ability to clone and deploy virtual machines from a template enables you to capture the state of a problematic virtual machine or deploy a virtual machine from a pre-configured standard. Also, vSphere 5 gives you the ability to migrate virtual machines and virtual machine disks from one VMware ESXi host to another while the virtual machines are running.
7-3
2011 VMware Inc. All rights reserved
Module Lessons
Creating Templates and Clones Modifying Virtual Machines Migrating Virtual Machines Creating Virtual Machine Snapshots Creating a vSphere vApp and Registering a Virtual Machine
7-4
2011 VMware Inc. All rights reserved
7-5
2011 VMware Inc. All rights reserved
Learner Objectives
After this lesson, you should be able to do the following: Create a template. Deploy a virtual machine from a template. Clone a virtual machine. Allow guest operating system customization by VMware vCenter Server.
7-6
2011 VMware Inc. All rights reserved
Using a Template
A template is a master copy of a virtual machine used to create and provision new virtual machines. The template is an image that typically includes a guest operating system, a set of applications, and a specific virtual machine configuration.
7-7
2011 VMware Inc. All rights reserved
Creating a Template
Clone the virtual machine to a template. The virtual machine can either be powered on or powered off. Convert the virtual machine to a template. The virtual machine must be powered off.
7-8
2011 VMware Inc. All rights reserved
Viewing Templates
Two ways to view templates: Use the VMs and Templates inventory view. Use the Virtual Machines tab in the Hosts and Clusters inventory view.
7-9
2011 VMware Inc. All rights reserved
7-10
2011 VMware Inc. All rights reserved
Updating a Template
To update a template: 1. Convert the template to a virtual machine. 2. Place the virtual machine on an isolated network to prevent user access. 3. Make appropriate changes to the virtual machine. 4. Convert the virtual machine to a template.
7-11
2011 VMware Inc. All rights reserved
Cloning is an alternative to deploying a virtual machine. A clone is an exact copy of the virtual machine. The virtual machine being cloned can either be powered on or powered off.
7-12
2011 VMware Inc. All rights reserved
VMware recommends customization of a clones guest operating system to prevent software and network conflicts. During cloning or deploying from template, you have the option of running the Guest Customization wizard. The wizard lets you create a specification that you can use to prepare the guest operating systems of virtual machines. Specifications can be stored in the database. You can edit specifications in the Customization Specifications Manager.
7-13
2011 VMware Inc. All rights reserved
Virtual machine deployment is allowed across datacenters. Clone a virtual machine from one datacenter to another. Deploy from a template in one datacenter to a virtual machine in a different datacenter.
7-14
2011 VMware Inc. All rights reserved
Lab 10
In this lab, you will deploy a virtual machine from a template and clone a virtual machine. 1. Create a template. 2. Copy Sysprep files to the vCenter Server appliance. 3. Create Customization Specifications. 4. Deploy a virtual machine from a template. 5. Clone a virtual machine that is powered on.
7-15
2011 VMware Inc. All rights reserved
You should be able to do the following: Create a template. Deploy a virtual machine from a template. Clone a virtual machine. Allow guest operating system customization by vCenter Server.
7-16
2011 VMware Inc. All rights reserved
7-17
2011 VMware Inc. All rights reserved
Learner Objectives
After this lesson, you should be able to do the following: Describe virtual machine settings and options. Add a hot-pluggable device. Dynamically increase the size of a virtual disk. Add a raw device mapping (RDM) to a virtual machine.
7-18
2011 VMware Inc. All rights reserved
You can modify a virtual machines configuration in its Properties dialog box: Add virtual hardware.
Some hardware can be added while the virtual machine is powered on.
Remove virtual hardware. Set virtual machine options. Control a virtual machines CPU and memory resources. Create an RDM.
7-19
2011 VMware Inc. All rights reserved
Hot-Pluggable Devices
Examples of hotpluggable devices: USB controllers, Ethernet adapters, and hard disk devices. You can also add CPU and memory while the virtual machine is powered on.
7-20
2011 VMware Inc. All rights reserved
Create an RDM
To create an RDM: 1. Edit Settings to modify the virtual machine configuration. 2. Click the Add button to add a device. 3. Click Hard Disk. 4. Select Raw Device Mappings and complete the Add Hardware wizard information by defining the following items:
Target LUN - LUN that the RDM will map to Mapped datastore - Store
the RDM file with the virtual machine or on a different datastore
7-21
2011 VMware Inc. All rights reserved
7-22
2011 VMware Inc. All rights reserved
7-23
2011 VMware Inc. All rights reserved
7-24
2011 VMware Inc. All rights reserved
7-25
2011 VMware Inc. All rights reserved
Lab 11
In this lab, you will modify a virtual machines hardware and add a raw LUN to a virtual machine. 1. Increase the size of a VMDK file. 2. Adjust memory allocation on a virtual machine. 3. Rename a virtual machine in the vCenter Server inventory. 4. Add a raw LUN to a virtual machine and verify that the guest operating system can see it. 5. Expand a thin-provisioned virtual disk.
7-26
2011 VMware Inc. All rights reserved
You should be able to do the following: Describe virtual machine settings and options. Add a hot-pluggable device. Dynamically increase the size of a virtual disk. Add an RDM to a virtual machine.
7-27
2011 VMware Inc. All rights reserved
7-28
2011 VMware Inc. All rights reserved
Learner Objectives
After this lesson, you should be able to do the following: Describe the types of migration. Explain the importance of VMware vSphere vMotion. Identify vMotion requirements (Virtual machine, Host). Verify vMotion requirements (CPU constraints and guidelines). Perform a vMotion migration.
7-29
2011 VMware Inc. All rights reserved
Migration Moving a virtual machine from one host or datastore to another. Types of migrations: Cold Migrate a virtual machine that is powered off. Suspended Migrate a virtual machine that is suspended. vMotion Migrate a virtual machine that is powered on. vSphere Storage vMotion Migrate a virtual machines files, while the virtual machine is powered on, to a different datastore. Concurrent migrations are possible: A host can be involved in up to two migrations with vMotion or Storage vMotion at one time. A maximum of eight simultaneous vMotion, cloning, deployment, or Storage vMotion accesses to a single VMFS-5 datastore is supported.
7-30
2011 VMware Inc. All rights reserved
Migration type
VM power state
CPU compatibility? Different CPU families allowed Must meet CPU compatibility requirements Must meet CPU compatibility requirements N/A
Cold
Off
Suspended
Suspended
Yes
No
vMotion
On
Host
No
Yes
Storage vMotion
On
Datastore
No
No
7-31
2011 VMware Inc. All rights reserved
vMotion Migration
A vMotion migration moves a powered-on virtual machine from one host to another. vMotion can be used to: Improve overall hardware utilization Allow continued virtual machine operation while accommodating scheduled hardware downtime Allow vSphere Distributed Resource Scheduler (DRS) to balance virtual machines across hosts
VMware vSphere: Install, Configure, Manage Revision A 7-32
2011 VMware Inc. All rights reserved
7-33
2011 VMware Inc. All rights reserved
7-34
2011 VMware Inc. All rights reserved
Source and destination hosts must have: Visibility to all storage (Fibre Channel, iSCSI, or NAS) used by the virtual machine:
128 concurrent vMotion migrations per VMFS datastore Four concurrent vMotion migrations on a 1Gbps network Eight concurrent vMotion migrations on a 10Gbps network
7-35
2011 VMware Inc. All rights reserved
CPU characteristics Clock speeds, cache sizes, hyperthreading, and number of cores Manufacturer (Intel or AMD) Family (P4, Opteron) Presence or absence of SSE3, SSSE3, or SSE4.1 instructions Virtualization hardware assist
No
Virtualized away by VMkernel Instruction sets contain many small differences. Multimedia instructions usable directly by applications Virtualized away by VMkernel The VMware Intel 64-bit implementation leverages VT. Guest operating system relies on NX/XD bit if detected.
Yes
Yes
For 32-bit VMs: No For 64-bit VMs on Intel: Yes Yes (but customizable)
7-36
2011 VMware Inc. All rights reserved
7-37
2011 VMware Inc. All rights reserved
To identify CPU characteristics, use the server and CPU specifications, or use the VMware CPU identification utility.
7-38
2011 VMware Inc. All rights reserved
7-39
2011 VMware Inc. All rights reserved
7-40
2011 VMware Inc. All rights reserved
Storage vMotion
Storage vMotion allows you to:
Perform storage maintenance and reconfiguration Redistribute storage load Evacuate physical storage soon to be retired Perform storage tiering Upgrade ESXi hosts without virtual machine downtime VMkernel
7-41
2011 VMware Inc. All rights reserved
Initiate storage migration. Start a new virtual machine process (VPX). Mirror I/O calls to file blocks that have already been copied to virtual disk on the destination datastore. Copy data using the VMkernel data mover or vSphere Storage APIs - Array Integration (VAAI).
vpx
VMkernel
data mover
storage array
Cut over to the destination VPX process to begin accessing the virtual disk copy.
VAAI
source datastore
VMware vSphere: Install, Configure, Manage Revision A 7-42
2011 VMware Inc. All rights reserved
destination datastore
vMotion
Storage vMotion Cold migration; Function available when virtual machine is powered off
VMware vSphere: Install, Configure, Manage Revision A 7-43
2011 VMware Inc. All rights reserved
Guidelines: Plan and coordinate with administrators. Perform during off-peak hours. Ensure that source host has access both to source datastores and target datastores. Limitations: Virtual machine disks must be in persistent mode or be RDMs. The virtual machine must be powered off to concurrently migrate to another host and datastore.
7-44
2011 VMware Inc. All rights reserved
Lab 12
In this lab, you will use vMotion to migrate virtual machines. 1. Create a virtual switch and VMkernel port group for vMotion migration. 2. Verify that your ESXi host meets vMotion requirements. 3. Verify that your virtual machines meet vMotion requirements. 4. Perform a vMotion migration of a virtual machine. 5. Migrate virtual machine files with Storage vMotion.
7-45
2011 VMware Inc. All rights reserved
You should be able to do the following: Describe the types of migration. Explain the importance of vMotion. Identify vMotion requirements (virtual machine, host). Verify vMotion requirements (CPU constraints and guidelines). Perform a vMotion migration.
7-46
2011 VMware Inc. All rights reserved
7-47
2011 VMware Inc. All rights reserved
Learner Objectives
After this lesson, you should be able to do the following: Take a snapshot of a virtual machine and manage multiple snapshots. Delete virtual machine snapshots.
7-48
2011 VMware Inc. All rights reserved
7-49
2011 VMware Inc. All rights reserved
7-50
2011 VMware Inc. All rights reserved
16MB
Base Image
flat-vmdk VMFS
7-51
2011 VMware Inc. All rights reserved
Taking a Snapshot
pending transactions committed to disk
.vmdk
You can take a snapshot while a virtual machine is powered on, powered off, or suspended. A snapshot captures the entire state of the virtual machine: Memory state, settings state, and disk state A snapshot is not recommended for backup and recovery!
VMware vSphere: Install, Configure, Manage Revision A 7-52
2011 VMware Inc. All rights reserved
Managing Snapshots
The Snapshot Manager lets you review all snapshots for the active virtual machine and act on them directly: Revert to (Go to) a snapshot. Delete one or all snapshots.
7-53
2011 VMware Inc. All rights reserved
7-54
2011 VMware Inc. All rights reserved
7-55
2011 VMware Inc. All rights reserved
7-56
2011 VMware Inc. All rights reserved
7-57
2011 VMware Inc. All rights reserved
server A
20GB VMDK-1
Delta Disk
VMFS-01
Base Disk
A R R A Y
The delta files might expand and use all free space available on the LUN When committing a large delta disk fails, try the following:
Clone the virtual machine to a datastore that has more space. Relocate the disk(s) of other virtual machines with cold migration to another datastore. Relocate templates.
7-58
2011 VMware Inc. All rights reserved
You should be able to do the following: Take a snapshot of a virtual machine and manage multiple snapshots. Delete virtual machine snapshots.
7-59
2011 VMware Inc. All rights reserved
7-60
2011 VMware Inc. All rights reserved
Learner Objectives
After this lesson, you should be able to do the following: Describe a vApp. Build a vApp. Manage virtual machines using vApp. Remove a virtual machine from the vCenter Server inventory and completely from disk. Manage virtual machine snapshots.
7-61
2011 VMware Inc. All rights reserved
A vApp: Is a container for one or more virtual machines Can be used to package and manage related applications Is an object in the vCenter Server inventory
7-62
2011 VMware Inc. All rights reserved
vApp Characteristics
You can configure a vApp: CPU and memory allocation IP allocation policy Advanced settings You can also configure the virtual machine startup and shutdown order.
7-63
2011 VMware Inc. All rights reserved
Two ways to remove a virtual machine: Remove a virtual machine from the inventory.
Unregisters virtual machine The virtual machines files remain on disk. The virtual machine can later be registered (re-added) to the inventory.
The virtual machine is removed from the inventory, and its files are permanently deleted from disk.
7-64
2011 VMware Inc. All rights reserved
Lab 13
In this lab, you will perform several virtual machine management tasks. 1. Unregister a virtual machine in the vCenter Server inventory. 2. Register a virtual machine in the vCenter Server inventory. 3. Unregister and delete virtual machines from disk. 4. Take snapshots of a virtual machine. 5. Revert to a snapshot. 6. Delete an individual snapshot. 7. Use the Delete All function in Snapshot Manager.
7-65
2011 VMware Inc. All rights reserved
You should be able to do the following: Describe a vApp. Build a vApp. Manage virtual machines using vApp. Remove a virtual machine from the vCenter Server inventory and completely from disk. Manage virtual machine snapshots.
7-66
2011 VMware Inc. All rights reserved
Key Points
You can use several methods to create a virtual machine. Choose the method that best fits your needs. Deploying virtual machines from a template allows you to easily create many virtual machines. vCenter Server provides useful features for provisioning virtual machines, such as templates and cloning.
7-67
2011 VMware Inc. All rights reserved