73
© 2012 VMware Inc. All rights reserved Virtual Machine Management Module 7

Managing Virtual Machines

Embed Size (px)

DESCRIPTION

How to manage a VM

Citation preview

Page 1: Managing Virtual Machines

© 2012 VMware Inc. All rights reserved

Virtual Machine Management

Module 7

Page 2: Managing Virtual Machines

7-2

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Course Introduction

Introduction to Virtualization

Creating Virtual Machines

VMware vCenter Server

Configuring and Managing Virtual Networks

Configuring and Managing vSphere Storage

Virtual Machine Management

Data Protection

Access and Authentication Control

Resource Management and Monitoring

High Availability and Fault Tolerance

Host Scalability

Patch Management

Installing VMware vSphere Components

You Are Here

Page 3: Managing Virtual Machines

7-3

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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 dynamically add resources.

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 preconfigured standard.

VMware vSphere® enables you to migrate virtual machines and

virtual machine disks from one VMware vSphere® ESXi™ host to

another while the virtual machines are running.

Importance

Page 4: Managing Virtual Machines

7-4

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 1: Creating Templates and Clones

Lesson 2: Modifying Virtual Machines

Lesson 3: Migrating Virtual Machines

Lesson 4: Creating Virtual Machine Snapshots

Lesson 5: Creating a vApp and Removing a

Virtual Machine

Module Lessons

Page 5: Managing Virtual Machines

7-5

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 1:

Creating Templates and Clones

Page 6: Managing Virtual Machines

7-6

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Enable guest operating system customization by VMware® vCenter Server™.

Learner Objectives

Page 7: Managing Virtual Machines

7-7

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

A template is a master copy of a virtual machine. It is 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.

Using a Template

Page 8: Managing Virtual Machines

7-8

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Clone the virtual machine to a template.

The virtual machine can be powered on or powered off.

Convert the virtual machine to a template.

The virtual machine must be powered off.

Clone a template.

Select the template in inventory first.

Creating a Template

Page 9: Managing Virtual Machines

7-9

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Two ways to view templates:

Use the VMs and Templates inventory view.

Use the Virtual Machines tab in the Hosts and Clusters inventory view.

Viewing Templates

Page 10: Managing Virtual Machines

7-10

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

To deploy a virtual machine, you must provide such information as

the virtual machine name, inventory location, host, datastore, and

guest operating system customization data.

Deploying a Virtual Machine from Template

Page 11: Managing Virtual Machines

7-11

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Updating a Template

Page 12: Managing Virtual Machines

7-12

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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 be

powered on or

powered off.

Cloning a Virtual Machine

Page 13: Managing Virtual Machines

7-13

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

VMware® recommends customization of a clone’s guest operating

system to prevent software and network conflicts.

During cloning or deploying from template, you can run the Guest

Customization wizard.

You can 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.

Customizing the Guest Operating System

Page 14: Managing Virtual Machines

7-14

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Deploying Virtual Machines Across Datacenters

Page 15: Managing Virtual Machines

7-15

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

In this lab, you will deploy a virtual machine from a template and

clone a virtual machine.

1. Copy Sysprep files to the vCenter Server instance.

2. Create a template.

3. Create customization specifications.

4. Deploy a virtual machine from a template.

5. Clone a virtual machine that is powered on.

Lab 9

Page 16: Managing Virtual Machines

7-16

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

You should be able to do the following:

Create a template.

Deploy a virtual machine from a template.

Clone a virtual machine.

Enable guest operating system customization by vCenter Server.

Review of Learner Objectives

Page 17: Managing Virtual Machines

7-17

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 2:

Modifying Virtual Machines

Page 18: Managing Virtual Machines

7-18

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Learner Objectives

Page 19: Managing Virtual Machines

7-19

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

You can modify a virtual

machine’s 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 machine’s CPU and memory resources.

Create an RDM.

Modifying Virtual Machine Settings

Page 20: Managing Virtual Machines

7-20

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Examples of hot-pluggable

devices: USB controllers,

Ethernet adapters, and hard

disk devices.

You can also add CPU and

memory while the virtual

machine is powered on.

Hot-Pluggable Devices

Page 21: Managing Virtual Machines

7-21

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

To create an RDM:

Edit settings to modify the virtual machine configuration.

Click the Add button to add a device.

Click Hard Disk.

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.

Compatibility mode

Virtual Device Node

Creating an RDM

Page 22: Managing Virtual Machines

7-22

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Dynamically Increasing a Virtual Disk’s Size

Dynamically increase a

virtual disk from, for

example, 2GB to 20GB.

Increases the size of the

existing virtual disk file

Page 23: Managing Virtual Machines

7-23

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

If you create a virtual disk in thin format, you can later inflate it to its full size.

To inflate a thin-provisioned disk:

Right-click the virtual machine’s .vmdk file and select Inflate.

Inflating a Thin-Provisioned Disk

Page 24: Managing Virtual Machines

7-24

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Virtual Machine Options

guest operating system type

VM directory

.vmx file location

VM display name

Page 25: Managing Virtual Machines

7-25

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Options: VMware Tools

When to run VMware Tools

scripts

Customize power button actions.

Update checks and time sync.

Page 26: Managing Virtual Machines

7-26

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Advanced: Boot Options

Advanced options rarely have to be set.

Delay power on.

Boot into BIOS.

Retry after failed boot.

Page 27: Managing Virtual Machines

7-27

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

In this lab, you will modify a virtual machine’s 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.

Lab 10

Page 28: Managing Virtual Machines

7-28

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Review of Learner Objectives

Page 29: Managing Virtual Machines

7-29

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 3:

Migrating Virtual Machines

Page 30: Managing Virtual Machines

7-30

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Perform a VMware vSphere® Storage vMotion® migration.

Perform an Enhanced vMotion migration.

Learner Objectives

Page 31: Managing Virtual Machines

7-31

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Storage vMotion – Migrate a virtual machine’s files, while the virtual machine is powered on, to a different datastore.

Concurrent migrations are possible:

A maximum of eight simultaneous vMotion, cloning, deployment, or Storage vMotion accesses to a single VMware vSphere® VMFS-5 datastore is supported.

Migrating Virtual Machines

Page 32: Managing Virtual Machines

7-32

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Comparison of Migration Types

Migration

type

Virtual

machine

power state

Change

host/

datastore?

Across virtual

datacenters?

Shared

storage

required?

CPU

compatibility?

Cold Off

Host or

datastore

or both

Yes No Different CPU

families allowed

Suspended Suspended

Host or

datastore

or both

Yes No

Must meet CPU

compatibility

requirements

vMotion On Host No Yes

Must meet CPU

compatibility

requirements

Storage

vMotion On Datastore No No N/A

Enhanced

vMotion On Both No No

Must meet CPU

compatibility

requirements

Page 33: Managing Virtual Machines

7-33

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

A vMotion migration moves a

powered-on virtual machine

from one host to another.

vMotion can be used to:

Improve overall hardware utilization

Enable continued virtual machine operation while accommodating scheduled hardware downtime

Enable vSphere Distributed Resource Scheduler (DRS) to balance virtual machines across hosts

vMotion Migration

Page 34: Managing Virtual Machines

7-34

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

How vMotion Migration Works

VM A

(network =

Production)

vMotion

network

Production network

memory bitmap

memory

VM A

(network =

Production)

Page 35: Managing Virtual Machines

7-35

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

A virtual machine must meet the following requirements:

A virtual machine must not have a connection to an internal standard virtual switch (vSwitch with zero uplink adapters).

A virtual machine must not have a connection to a virtual device (such as a CD-ROM or floppy drive) with a local image mounted.

A virtual machine must not have CPU affinity configured.

If the virtual machine’s swap file is not accessible to the destination host, vMotion must be able to create a swap file accessible to the destination host before migration can begin.

If a virtual machine uses an RDM, the RDM must be accessible by the destination host.

Virtual Machine Requirements for vMotion Migration

Page 36: Managing Virtual Machines

7-36

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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

At least a Gigabit Ethernet (GigE) network:

• Four concurrent vMotion migrations on a 1Gbps network

• Eight concurrent vMotion migrations on a 10Gbps network

Identically named port groups connected to the same physical networks

Compatible CPUs:

• CPU feature sets of both the source and destination host must be compatible.

• Some features can be hidden by using Enhanced vMotion Compatibility (EVC) or compatibility masks.

Host Requirements for vMotion Migration

Page 37: Managing Virtual Machines

7-37

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

CPU Constraints on vMotion Migration

CPU characteristics Exact match required? Why or why not?

Clock speeds, cache sizes,

hyperthreading, and number

of cores

No Virtualized away by the

VMkernel

Manufacturer (Intel or AMD)

Family (P4, Opteron) Yes

Instruction sets contain many

small differences.

Presence or absence of

SSE3, SSSE3, or SSE4.1

instructions

Yes Multimedia instructions usable

directly by applications

Virtualization hardware

assist

For 32-bit VMs: No Virtualized away by the

VMkernel

For 64-bit VMs on Intel:

Yes

The VMware Intel 64-bit

implementation leverages VT.

Execution-disable

(NX/XD bit) Yes (but customizable)

Guest operating system relies

on NX/XD bit if detected.

Page 38: Managing Virtual Machines

7-38

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Hiding or Exposing NX/XD

Choose between NX/XD security features or broadest vMotion compatibility.

For future CPU features, edit mask at the bit level.

Page 39: Managing Virtual Machines

7-39

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Identifying CPU Characteristics

To identify CPU characteristics, use the

server and CPU specifications, or use

the VMware CPU identification utility.

Page 40: Managing Virtual Machines

7-40

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Verifying vMotion Layout: Virtual Machine Map

Page 41: Managing Virtual Machines

7-41

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Checking vMotion Errors

Page 42: Managing Virtual Machines

7-42

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Storage vMotion enables 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

Storage vMotion is

independent of storage type.

Source and destination can be different storage types.

Storage vMotion

VMkernel

Storage vMotion

Page 43: Managing Virtual Machines

7-43

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

1. Initiate storage migration.

2. Use the VMkernel data mover

or VMware vSphere® Storage

APIs - Array Integration (VAAI)

to copy data.

3. Start a new virtual machine

process.

4. Mirror I/O calls to file blocks

that have already been copied

to virtual disk on the

destination datastore.

5. Cut over to the destination VM

process to begin accessing

the virtual disk copy.

Storage vMotion in Action

VMkernel

mirror driver

data mover

VM

process

VM

process

read/write I/O

to virtual disk

destination datastore source datastore VAAI

storage array

Page 44: Managing Virtual Machines

7-44

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Storage vMotion performs up to 4 parallel disk migrations per Storage

vMotion operation.

In previous versions, Storage vMotion used to copy virtual disks serially.

Limit of two concurrent Storage vMotion operations per host.

Storage vMotion Parallel Disk Migrations

Page 45: Managing Virtual Machines

7-45

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Guidelines:

Plan and coordinate with administrators.

Perform during off-peak hours.

Ensure that the host has access both to source datastores and target datastores.

Limitations:

Virtual machine disks must be in persistent mode or be RDMs.

Storage vMotion Guidelines and Limitations

Page 46: Managing Virtual Machines

7-46

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Enhanced vMotion

Combine vMotion and Storage vMotion into a single operation

Migrate between hosts and clusters without shared storage

Enhanced vMotion

VMware ESXi VMware ESXi

Layer 2 Network

vCenter

Server

Page 47: Managing Virtual Machines

7-47

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Enhanced vMotion is only available in the vSphere Web Client.

Enhanced vMotion and the vSphere Client

Windows vSphere Client vSphere Web Client

Page 48: Managing Virtual Machines

7-48

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Single Migration to Change Both Host and Datastore

Hosts must be managed by the same vCenter Server instance.

Hosts must be part of the same Datacenter.

Hosts must be on the same layer-2 network (and same switch if VDS is used).

Operational Considerations:

Enhanced vMotion is a manual process:

• DRS and SDRS do not leverage enhanced vMotion.

Maximum of 2 concurrent Enhanced vMotions per host:

• Enhanced vMotions count when considering concurrent limitations for both vMotion and Storage vMotion.

Enhanced vMotion leverages multi-NIC when available.

Enhanced vMotion Considerations

Page 49: Managing Virtual Machines

7-49

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

In this lab, you will use vMotion and Storage vMotion to migrate

virtual machines.

Migrate virtual machine files with Storage vMotion.

Create a virtual switch and a VMkernel port group for vMotion migration.

Verify that your ESXi host meets vMotion requirements.

Verify that your virtual machines meet vMotion requirements.

Perform a vMotion migration of a virtual machine on a shared datastore.

Perform a vMotion migration to a private datastore.

Prepare for the next lab.

Lab 11

Page 50: Managing Virtual Machines

7-50

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Perform a Storage vMotion migration.

Perform an Enhanced vMotion Migration.

Review of Learner Objectives

Page 51: Managing Virtual Machines

7-51

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 4:

Creating Virtual Machine Snapshots

Page 52: Managing Virtual Machines

7-52

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

Consolidate snapshots.

Learner Objectives

Page 53: Managing Virtual Machines

7-53

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Snapshots enable you to preserve the state of the virtual machine so

that you can return to the same state repeatedly.

For example, if you make changes while testing software, snapshots

enable you to back out of those changes.

Virtual Machine Snapshots

Page 54: Managing Virtual Machines

7-54

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

A snapshot consists of a set of files: the memory state file (.vmsn),

the description file (-00000#.vmdk), and the delta file (-00000#-

delta.vmdk).

The snapshot list file (.vmsd) keeps track of the virtual machine’s

snapshots.

Virtual Machine Snapshot Files

Page 55: Managing Virtual Machines

7-55

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

You can take a snapshot while a virtual machine is powered on,

powered off, or suspended.

A snapshot captures the state of the virtual machine:

Memory state, settings state, and disk state

Snapshots are not backups.

Taking a Snapshot

pe

nd

ing

tran

sa

ctio

ns

co

mm

itted

to d

isk

.vmdk

Page 56: Managing Virtual Machines

7-56

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

The Snapshot

Manager enables

you to review all

snapshots for the

active virtual

machine and act

on them directly:

Revert to (Go to) a snapshot.

Delete one or all snapshots.

Managing Snapshots

Reverted from

Security Patch 2.0 to

Security Patch 1.0.1

Page 57: Managing Virtual Machines

7-57

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Deleting a Virtual Machine Snapshot (1)

base disk (5GB)

snap02 delta (2GB)

You Are Here snap01 delta (1GB)

base disk (5GB) +

snap01 data

Page 58: Managing Virtual Machines

7-58

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Deleting a Virtual Machine Snapshot (2)

base disk (5GB)

You are here. snap01 delta (1GB)

snap02 delta (2GB)

snap01 delta (1GB) +

snap02 delta (2GB)

Page 59: Managing Virtual Machines

7-59

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Deleting a Virtual Machine Snapshot (3)

base disk (5GB)

snap01 delta (1GB)

You are here.

snap02 delta (2GB)

Page 60: Managing Virtual Machines

7-60

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Deleting All Virtual Machine Snapshots

You are here.

base disk (5GB)

snap01 delta (1GB)

snap02 delta (2GB)

base disk (5GB) +

snap01/02 data

Page 61: Managing Virtual Machines

7-61

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

What is snapshot consolidation?

A method used to commit a chain of snapshots to the original virtual machine when the Snapshot Manager shows that no snapshots exist, but the delta files still remain on the datastore

Snapshot consolidation is intended to resolve known issues with

snapshot management:

The snapshot descriptor file is committed correctly, but the Snapshot Manager incorrectly shows that all the snapshots are deleted.

The snapshot files (-delta.vmdk) are still part of the virtual machine.

Snapshot files continue to expand until the virtual machine runs out of datastore space.

Snapshot Consolidation

Page 62: Managing Virtual Machines

7-62

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

The Snapshot Manager displays no snapshots. But a warning on the

Summary tab of the virtual machine notifies the user that a

consolidation is required.

Discovering When to Consolidate

Page 63: Managing Virtual Machines

7-63

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Select Consolidate to reconcile snapshots.

Any snapshots found are committed to the virtual machine.

Performing Snapshot Consolidation

Page 64: Managing Virtual Machines

7-64

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Two ways to remove a virtual machine:

Remove a virtual machine from the inventory:

• This type of removal registers the virtual machine.

• The virtual machine’s files remain on the disk.

• The virtual machine can later be registered (added) to the inventory.

Delete a virtual machine from disk.

• The virtual machine is removed from the inventory, and its files are permanently deleted from the disk.

Removing a Virtual Machine

Page 65: Managing Virtual Machines

7-65

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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 button in Snapshot Manager.

Lab 12

Page 66: Managing Virtual Machines

7-66

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

You should be able to do the following:

Take a snapshot of a virtual machine and manage multiple snapshots.

Delete virtual machine snapshots.

Consolidate snapshots.

Review of Learner Objectives

Page 67: Managing Virtual Machines

7-67

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

Lesson 5:

Creating a vApp and Removing a Virtual

Machine

Page 68: Managing Virtual Machines

7-68

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

After this lesson, you should be able to do the following:

Describe a vSphere vApp.

Build a vApp.

Use a vApp to manage virtual machines.

Remove a virtual machine from the vCenter Server inventory.

Remove a virtual machine completely from disk.

Learner Objectives

Page 69: Managing Virtual Machines

7-69

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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

Managing Virtual Machines with a vApp

Page 70: Managing Virtual Machines

7-70

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

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.

vApp Characteristics

Page 71: Managing Virtual Machines

7-71

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

In this lab, you will perform vApp management tasks.

1. Create a vApp.

2. Power on a vApp.

3. Remove a vApp.

Lab 13

Page 72: Managing Virtual Machines

7-72

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

You should be able to do the following:

Describe a vApp.

Build a vApp.

Use a vApp to manage virtual machines.

Remove a virtual machine from the vCenter Server inventory.

Remove a virtual machine completely from disk.

Review of Learner Objectives

Page 73: Managing Virtual Machines

7-73

© 2012 VMware Inc. All rights reserved

VMware vSphere: Install, Configure, and Manage – Revision A

vCenter Server provides useful features for provisioning virtual machines, such as templates and cloning.

Deploying virtual machines from a template enables you to create many virtual machines easily and quickly.

vMotion can be used to move virtual machines while they are powered on.

Storage vMotion can be used to move virtual machines from one datastore to another.

Enhanced vMotion enables live virtual machine migration when shared storage is not available.

Virtual machine snapshots enable you to preserve the state of the virtual machine so that you can return to the same state repeatedly.

A vApp is a container for one or more virtual machines. The vApp can be used to package and manage related applications.

Key Points