designing virtual infrastructure

54
Designing Your Virtual Designing Your Virtual Infrastructure & Hypervisor Deep Infrastructure & Hypervisor Deep Dive Dive Don Jones Don Jones ConcentratedTech.com Pre-requisites for this presentation: 1) Strong understanding of basic virtualization concepts Level: Intermediate

Upload: concentrated-technology

Post on 05-Dec-2014

953 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Designing virtual infrastructure

Designing Your Virtual Infrastructure & Designing Your Virtual Infrastructure & Hypervisor Deep DiveHypervisor Deep DiveDon JonesDon JonesConcentratedTech.com

Pre-requisites for this presentation:

1) Strong understanding of basic virtualization concepts

Level: Intermediate

Page 2: Designing virtual infrastructure

This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it

within your own organization however you like.

For more information on our company, including information on private classes and upcoming conference appearances, please

visit our Web site, www.ConcentratedTech.com.

For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg

This work is copyright ©Concentrated Technology, LLC

Page 3: Designing virtual infrastructure

About the InstructorAbout the Instructor

Don Jones Contributing Editor,

technetmagazine.com IT author, consultant, and speaker Co-founder of Concentrated Technology Seven-time recipient of Microsoft’s Most

Valuable Professional (MVP) Award Author and Editor-in-Chief for Realtime

Publishers Trainer for www.CBTNuggets.com

Page 4: Designing virtual infrastructure

44% of Virtualization44% of VirtualizationDeployments FailDeployments Fail According to a CA announcement from 2007.

– Inability to quantify ROI– Insufficient administrator training– Expectations not aligned with results

Success =– Measure performance– Diligent inventory– Load Distribution– Thorough Investigation of Technology

Page 5: Designing virtual infrastructure

55% Experience More Problems 55% Experience More Problems than Benefits with Virtualizationthan Benefits with Virtualization According to an Interop survey in May, 2009.

– Lack of visibility– Lack of tools to troubleshoot performance problems– Insufficient education on virtual infrastructure software

Statistics:– 27% could not visualize / manage performance– 25% cite training shortfalls– 21% unable to secure the infrastructure– 50% say that implementation costs are too high

Page 6: Designing virtual infrastructure

Lifecycle of a Virtualization Lifecycle of a Virtualization ImplementationImplementation

Step -1: Hype Recognition & Education Step 0: Assessment Step 1: Purchase & Implementation Step 2: P2V Step 3: High Availability Step 4: Backups Expansion Step 5: Virtualization at the Desktop Step 6: DR Implementation

Page 7: Designing virtual infrastructure

Step 0Step 0AssessmentAssessment

7

Page 8: Designing virtual infrastructure

The Virtualization AssessmentThe Virtualization Assessment Successful rollouts need a virtualization

assessment.– You must analyze your environment before you act.

Virtualization assessment should include:– Inventory of servers– Inventory of attached peripherals– Performance characteristics of servers– Analysis of performance characteristics– Analysis of hardware needs to support virtualized

servers– Backups Analysis– Disaster Recovery Analysis (Hot vs. warm vs. cold)– Initial virtual resource assignment suggestions

Page 9: Designing virtual infrastructure

Easy Candidates for Easy Candidates for VirtualizationVirtualization Low processor utilization Low memory requirements

– We too often add too much RAM in a server. Low context switches Infrastructure servers Redundant or warm-spare servers Occasional- or limited-use servers Systems where many partially-trusted people

need console access

Page 10: Designing virtual infrastructure

NotNot Candidates for Virtualization Candidates for Virtualization High and constant processor / memory

utilization High context switches Attached peripherals

– Serial / parallel / USB / External SCSI /License Keyfobs / Scanners / Bar Code Readers

Very high network use– Gigabit networking requirements

Specialized hardware requirements– Hardware appliances / Pre-built / Unique configs

Terminal Servers!– …at least with today’s technology…

Page 11: Designing virtual infrastructure

Performance is Job OnePerformance is Job One

In the early days of virtualization, we used to say…– “Exchange Servers can’t be virtualized”– “Terminal Servers can’t be virtualized”– “You’ll never virtualize a SQL box”

Today’s common knowledge is that the decision relates entirely to performance.– Thus, before you can determine which servers to

virtualize you must understand their performance.– Measure that performance over time.– Compile results into reports and look for deviations

from nominal activity.

Page 12: Designing virtual infrastructure

Useful Performance CountersUseful Performance CountersCategory Performance

MetricExample Threshold

Disk % Disk Time > 50%Memory Available MBytes Below

BaselineMemory Pages / Sec > 20 Page File % Usage > 70%Physical Disk Current Disk Queue

Length>18

Processor % Processor Time > 40%System Processor Queue

Length> 5.4

System Context Switches / Sec

> 5000

System Threads > 2000

Page 13: Designing virtual infrastructure

Useful Performance CountersUseful Performance CountersCategory Performance

MetricExample Threshold

Disk % Disk Time > 50%Memory Available MBytes Below

BaselineMemory Pages / Sec > 20 Page File % Usage > 70%Physical Disk Current Disk Queue

Length>18

Processor % Processor Time > 40%System Processor Queue

Length> 5.4

System Context Switches / Sec

> 5000

System Threads > 2000

Page 14: Designing virtual infrastructure

The Virtualization AssessmentThe Virtualization Assessment

ServerDisk / % Disk Time

Memory / Available Mbytes

Memory / Pages/sec

Page File / % Usage

Physical Disk / Current Disk Queue Length

Processor / % Processor Time

System / Processor Queue Length

System / Context Switches/sec

System / Threads

Active Sessions (Where Applicable)

Virtualization Candidacy Index

Initial Assigned VProcs

Initial Assigned VRAM (in G)

ABCS 0 598 19 2 N/D 7 0 2435 712 Likely 1 1.5

ABCSDC0 1 553 2 2 0 1 0 372 520 Likely 1 0.5

ABCSTM 2 1525 0 0 0 1 0 302 465 Likely 1 0.5

ADS N/D 236 0 0 0 0 0 85 259 Likely 1 0.5

BDC 4 108 3 11 0 2 0 440 577 Likely 1 0.5

C3APPSVR N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 1 N/A

CTX-Surf 2 1319 1 0 0 0 0 557 528 Likely 1 1

DC1 N/D 544 20 1 0 13 5 1027 394 Likely 1 0.5

DIRECTOR N/D 84 37 14 0 7 0 2003 587 Probable 1 2

EX1 N/D 350 1 4 0 1 0 858 404 Likely 1 1

EX2K3 149 359 11 3 1 2 0 2296 927 Probable 1 2

EZTELLER 7 143 3 3 0 1 0 458 509 Likely 1 2

IFS N/D 348 0 1 0 0 0 99 311 Likely 1 0.5

IMAGE-WIN 67 469 7 1 1 18 0 5553 2540 Probable 1 2

ITIAPP02 N/D 1292 1 2 0 2 0 2300 823 Likely 1 2

ITIPrime N/D 34 4 12 0 2 0 830 468 Likely 1 1.5

License 1 140 1 39 0 2 1 417 490 Likely 1 0.5

PFS1 N/D 330 1 1 0 1 0 231 338 Likely 1 0.5

SC-MGR1R 0 255 1 N/D N/D N/D 0 1251 490 Likely 1 1

SURFCONTROL N/D 32 1 37 0 73 8 338 403 Probable 1 1

TESTLPW N/D 129 0 4 0 1 10 896 489 Probable 1 0.5

TSBANK0 0 2521 7 5 0 2 0 5050 1342 7 Probable 1 2

TSBANK1 3 1216 12 10 0 9 0 3381 1237 7 Probable 1 2

TSBANK15 0 2631 7 4 0 8 0 4386 1183 7 Probable 1 2

TSBANK17 0 2652 7 4 0 14 0 4329 1240 7 Probable 1 2

TSBANK2 1 1272 11 12 0 22 0 3314 1168 7 Probable 1 2

TSBANK3 4 1310 5 3 0 38 2 2589 887 4 Probable 1 2

TSBANK4 4 1297 4 3 0 16 2 2702 883 4 Probable 1 2

TSBANK6 7 1191 9 9 0 7 2 3271 1216 7 Probable 1 2

TSWIN1 3 1292 5 2 0 5 1 1689 884 4 Likely 1 2

TSWIN2 4 1272 4 2 N/D 7 1 1677 848 4 Likely 1 2

VIEMCAPP 5 2111 0 1 N/D 0 0 456 541 Likely 1 2

Total RAM Count: 40

Page 15: Designing virtual infrastructure

The Virtualization AssessmentThe Virtualization Assessment

ServerDisk / % Disk Time

Memory / Available Mbytes

Memory / Pages/sec

Page File / % Usage

Physical Disk / Current Disk Queue Length

Processor / % Processor Time

System / Processor Queue Length

System / Context Switches/sec

System / Threads

Active Sessions (Where Applicable)

Virtualization Candidacy Index

Initial Assigned VProcs

Initial Assigned VRAM (in G)

ABCS 0 598 19 2 N/D 7 0 2435 712 Likely 1 1.5

ABCSDC0 1 553 2 2 0 1 0 372 520 Likely 1 0.5

ABCSTM 2 1525 0 0 0 1 0 302 465 Likely 1 0.5

ADS N/D 236 0 0 0 0 0 85 259 Likely 1 0.5

BDC 4 108 3 11 0 2 0 440 577 Likely 1 0.5

C3APPSVR N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 1 N/A

CTX-Surf 2 1319 1 0 0 0 0 557 528 Likely 1 1

DC1 N/D 544 20 1 0 13 5 1027 394 Likely 1 0.5

DIRECTOR N/D 84 37 14 0 7 0 2003 587 Probable 1 2

EX1 N/D 350 1 4 0 1 0 858 404 Likely 1 1

EX2K3 149 359 11 3 1 2 0 2296 927 Probable 1 2

EZTELLER 7 143 3 3 0 1 0 458 509 Likely 1 2

IFS N/D 348 0 1 0 0 0 99 311 Likely 1 0.5

IMAGE-WIN 67 469 7 1 1 18 0 5553 2540 Probable 1 2

ITIAPP02 N/D 1292 1 2 0 2 0 2300 823 Likely 1 2

ITIPrime N/D 34 4 12 0 2 0 830 468 Likely 1 1.5

License 1 140 1 39 0 2 1 417 490 Likely 1 0.5

PFS1 N/D 330 1 1 0 1 0 231 338 Likely 1 0.5

SC-MGR1R 0 255 1 N/D N/D N/D 0 1251 490 Likely 1 1

SURFCONTROL N/D 32 1 37 0 73 8 338 403 Probable 1 1

TESTLPW N/D 129 0 4 0 1 10 896 489 Probable 1 0.5

TSBANK0 0 2521 7 5 0 2 0 5050 1342 7 Probable 1 2

TSBANK1 3 1216 12 10 0 9 0 3381 1237 7 Probable 1 2

TSBANK15 0 2631 7 4 0 8 0 4386 1183 7 Probable 1 2

TSBANK17 0 2652 7 4 0 14 0 4329 1240 7 Probable 1 2

TSBANK2 1 1272 11 12 0 22 0 3314 1168 7 Probable 1 2

TSBANK3 4 1310 5 3 0 38 2 2589 887 4 Probable 1 2

TSBANK4 4 1297 4 3 0 16 2 2702 883 4 Probable 1 2

TSBANK6 7 1191 9 9 0 7 2 3271 1216 7 Probable 1 2

TSWIN1 3 1292 5 2 0 5 1 1689 884 4 Likely 1 2

TSWIN2 4 1272 4 2 N/D 7 1 1677 848 4 Likely 1 2

VIEMCAPP 5 2111 0 1 N/D 0 0 456 541 Likely 1 2

Total RAM Count: 40

Relatively Low Relatively Low Processor Use,Processor Use,

but…but…

Page 16: Designing virtual infrastructure

The Virtualization AssessmentThe Virtualization Assessment

ServerDisk / % Disk Time

Memory / Available Mbytes

Memory / Pages/sec

Page File / % Usage

Physical Disk / Current Disk Queue Length

Processor / % Processor Time

System / Processor Queue Length

System / Context Switches/sec

System / Threads

Active Sessions (Where Applicable)

Virtualization Candidacy Index

Initial Assigned VProcs

Initial Assigned VRAM (in G)

ABCS 0 598 19 2 N/D 7 0 2435 712 Likely 1 1.5

ABCSDC0 1 553 2 2 0 1 0 372 520 Likely 1 0.5

ABCSTM 2 1525 0 0 0 1 0 302 465 Likely 1 0.5

ADS N/D 236 0 0 0 0 0 85 259 Likely 1 0.5

BDC 4 108 3 11 0 2 0 440 577 Likely 1 0.5

C3APPSVR N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 1 N/A

CTX-Surf 2 1319 1 0 0 0 0 557 528 Likely 1 1

DC1 N/D 544 20 1 0 13 5 1027 394 Likely 1 0.5

DIRECTOR N/D 84 37 14 0 7 0 2003 587 Probable 1 2

EX1 N/D 350 1 4 0 1 0 858 404 Likely 1 1

EX2K3 149 359 11 3 1 2 0 2296 927 Probable 1 2

EZTELLER 7 143 3 3 0 1 0 458 509 Likely 1 2

IFS N/D 348 0 1 0 0 0 99 311 Likely 1 0.5

IMAGE-WIN 67 469 7 1 1 18 0 5553 2540 Probable 1 2

ITIAPP02 N/D 1292 1 2 0 2 0 2300 823 Likely 1 2

ITIPrime N/D 34 4 12 0 2 0 830 468 Likely 1 1.5

License 1 140 1 39 0 2 1 417 490 Likely 1 0.5

PFS1 N/D 330 1 1 0 1 0 231 338 Likely 1 0.5

SC-MGR1R 0 255 1 N/D N/D N/D 0 1251 490 Likely 1 1

SURFCONTROL N/D 32 1 37 0 73 8 338 403 Probable 1 1

TESTLPW N/D 129 0 4 0 1 10 896 489 Probable 1 0.5

TSBANK0 0 2521 7 5 0 2 0 5050 1342 7 Probable 1 2

TSBANK1 3 1216 12 10 0 9 0 3381 1237 7 Probable 1 2

TSBANK15 0 2631 7 4 0 8 0 4386 1183 7 Probable 1 2

TSBANK17 0 2652 7 4 0 14 0 4329 1240 7 Probable 1 2

TSBANK2 1 1272 11 12 0 22 0 3314 1168 7 Probable 1 2

TSBANK3 4 1310 5 3 0 38 2 2589 887 4 Probable 1 2

TSBANK4 4 1297 4 3 0 16 2 2702 883 4 Probable 1 2

TSBANK6 7 1191 9 9 0 7 2 3271 1216 7 Probable 1 2

TSWIN1 3 1292 5 2 0 5 1 1689 884 4 Likely 1 2

TSWIN2 4 1272 4 2 N/D 7 1 1677 848 4 Likely 1 2

VIEMCAPP 5 2111 0 1 N/D 0 0 456 541 Likely 1 2

Total RAM Count: 40

High Memory High Memory Pages/secPages/sec

RidiculousRidiculous% Disk Time% Disk Time

Crazy High Crazy High Context Context

Switches & Switches & ThreadsThreads

Page 17: Designing virtual infrastructure

Assessing the Right vRAMAssessing the Right vRAM

We put too much RAM into our physical servers!– Initial RAM is cheap– Adding RAM can be costly

As a consequence, we’re accustomed to effectively unlimited RAM supply– OS & applications rarely RAM-bound

Who has 4G of RAM in your DCs?Who has 4G of RAM in your DCs?And NEED it??And NEED it??

Be honest!Be honest!

Page 18: Designing virtual infrastructure

Assessing the Right vRAMAssessing the Right vRAM

Not so with virtual machines!– RAM conservation critical to consolidation ratio– Excess RAM in one VM means no RAM for another

This is particularly an issue with Hyper-V– No page table sharing– Assigned VM RAM = Reserved physical RAM

So, how do you measure the right level of RAM?– Basically, you subtract.

Page 19: Designing virtual infrastructure

Assessing the Right vRAMAssessing the Right vRAM

ServerDisk / % Disk Time

Memory / Available Mbytes

Memory / Pages/sec

Page File / % Usage

Physical Disk / Current Disk Queue Length

Processor / % Processor Time

System / Processor Queue Length

System / Context Switches/sec

System / Threads

Active Sessions (Where Applicable)

Virtualization Candidacy Index

Initial Assigned VProcs

Initial Assigned VRAM (in G)

ABCS 0 598 19 2 N/D 7 0 2435 712 Likely 1 1.5

ABCSDC0 1 553 2 2 0 1 0 372 520 Likely 1 0.5

ABCSTM 2 1525 0 0 0 1 0 302 465 Likely 1 0.5

ADS N/D 236 0 0 0 0 0 85 259 Likely 1 0.5

BDC 4 108 3 11 0 2 0 440 577 Likely 1 0.5

C3APPSVR N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A 1 N/A

CTX-Surf 2 1319 1 0 0 0 0 557 528 Likely 1 1

DC1 N/D 544 20 1 0 13 5 1027 394 Likely 1 0.5

DIRECTOR N/D 84 37 14 0 7 0 2003 587 Probable 1 2

EX1 N/D 350 1 4 0 1 0 858 404 Likely 1 1

EX2K3 149 359 11 3 1 2 0 2296 927 Probable 1 2

EZTELLER 7 143 3 3 0 1 0 458 509 Likely 1 2

IFS N/D 348 0 1 0 0 0 99 311 Likely 1 0.5

IMAGE-WIN 67 469 7 1 1 18 0 5553 2540 Probable 1 2

ITIAPP02 N/D 1292 1 2 0 2 0 2300 823 Likely 1 2

ITIPrime N/D 34 4 12 0 2 0 830 468 Likely 1 1.5

License 1 140 1 39 0 2 1 417 490 Likely 1 0.5

PFS1 N/D 330 1 1 0 1 0 231 338 Likely 1 0.5

SC-MGR1R 0 255 1 N/D N/D N/D 0 1251 490 Likely 1 1

SURFCONTROL N/D 32 1 37 0 73 8 338 403 Probable 1 1

TESTLPW N/D 129 0 4 0 1 10 896 489 Probable 1 0.5

TSBANK0 0 2521 7 5 0 2 0 5050 1342 7 Probable 1 2

TSBANK1 3 1216 12 10 0 9 0 3381 1237 7 Probable 1 2

TSBANK15 0 2631 7 4 0 8 0 4386 1183 7 Probable 1 2

TSBANK17 0 2652 7 4 0 14 0 4329 1240 7 Probable 1 2

TSBANK2 1 1272 11 12 0 22 0 3314 1168 7 Probable 1 2

TSBANK3 4 1310 5 3 0 38 2 2589 887 4 Probable 1 2

TSBANK4 4 1297 4 3 0 16 2 2702 883 4 Probable 1 2

TSBANK6 7 1191 9 9 0 7 2 3271 1216 7 Probable 1 2

TSWIN1 3 1292 5 2 0 5 1 1689 884 4 Likely 1 2

TSWIN2 4 1272 4 2 N/D 7 1 1677 848 4 Likely 1 2

VIEMCAPP 5 2111 0 1 N/D 0 0 456 541 Likely 1 2

Total RAM Count: 40

2G of on-board 2G of on-board RAMRAM

……minus…minus….5G of available .5G of available

RAMRAM

LetLet’’s consider a physical machine with s consider a physical machine with 2G of on-board RAM2G of on-board RAM

……equals…equals…Initial Initial

assignment of assignment of 1.5G of vRAM1.5G of vRAM

Page 20: Designing virtual infrastructure

Gathering PerformanceGathering Performance

PerfMon is the only mechanism that can gather these statistics from servers.– But PerfMon is ridiculously challenging to use.

Other products assist...– Microsoft Assessment & Planning Solution Accelerator– VMware Consolidation & Capacity Planner– Platespin PowerRecon– CiRBA

Page 21: Designing virtual infrastructure

Step 1Step 1Purchase & ImplementationPurchase & Implementation

21

Page 22: Designing virtual infrastructure

8:115:120:1

Small Server $6,000 1:1 $6,000 per Server

Large Server $15,000

Virtualization $5,000$20,000

Large MarginalCost Increases perAdditional Server

$2,500 per Server

Smaller Marginal Cost Increases

+ Power+ Cooling

+ Provisioning Labor

$1,333$1,000

Consolidation = Cost SavingsConsolidation = Cost Savings

Page 23: Designing virtual infrastructure

Three Types of VirtualizationThree Types of Virtualization Entire System Virtualization

– VMware– Microsoft Virtual Server

OS Virtualization– Parallels Virtuozzo

Paravirtualization– Microsoft Hyper-V– Xen / Citrix XenSource

Virtual O/S is entire system.No awareness

of underlying host system.

OS instances are “deltas”of the host configuration.

Similar to HardwareVirtualization, but Virtual O/S

is “aware” it is virtualized.

Page 24: Designing virtual infrastructure

Hardware VirtualizationHardware Virtualization

ESX / vSphere– Hybrid hypervisor and host OS– Device drivers in the hypervisor– Emulation (translation from emulated driver to real

driver)– High cost, high availability, high performance

Page 25: Designing virtual infrastructure

ParavirtualizationParavirtualization

Hyper-V, Citrix XenSource– Host OS becomes primary partition above hypervisor.– Device drivers in the primary partition– Paravirtualization (no emulation for “enlightened” VMs)– Low cost, moderate-to-high availability, high

performance

Page 26: Designing virtual infrastructure

Hardware VirtualizationHardware Virtualization

Microsoft Virtual Server– Hypervisor above host OS. Installed to host OS.– Device drivers in hypervisor– Emulation (translation from emulated driver to real

driver)– Low cost, low availability, low performance

Page 27: Designing virtual infrastructure

OS VirtualizationOS Virtualization

Parallels Virtuozzo– Each VM is comprised of the host config + deltas.– No traditional hypervisor. V-layer processes requests.– All real device drivers hosted on host OS– Moderate cost, moderate availability, very high perf.

Page 28: Designing virtual infrastructure

CAUTION!CAUTION!

Differences between major hypervisors (vSphere, Hyper-V, Xen) are vastly overrated

Everything one vendor says is an “advantage” is what the competitors trash as “bad design.”

Either (a) get all the facts or (b) buy mainly on price

This is no place for a religious jihad – focus on business needs, not technical minutae

Page 29: Designing virtual infrastructure

ExampleExample

VMWare’s constant harping on “smaller footprint” – which is flawed and frankly ridiculous. Is anyone hurting for OS disk space out there?

Also, numerous myths and overstatements about specific hypervisor implementations, etc.

Most of these products are basically the same in terms of business-level performance and features. Main difference is cost.

Page 30: Designing virtual infrastructure

Step 2Step 2P2VP2V

30

Page 31: Designing virtual infrastructure

P2V IsnP2V Isn’’t Sexy Any Moret Sexy Any More After environment stand-up, P2V process

converts physical machines to virtual ones.– A “ghost” + a “driver injection”

Numerous applications can do this in one step.– SCVMM, Converter, 3rd Parties

These days, P2V process is commodity.– Everyone has their own version.– Some are faster. Some much

slower.Paid options == faster.

31

Page 32: Designing virtual infrastructure

P2V, P2V-DRP2V, P2V-DR P2V

– Physical 2 Virtual machine conversion– A tool as well as a process– SCVMM, VMware VI/Converter, Acronis, Leostream, others.

P2V-DR– Similar to P2V, but with interim step of image

creation/storage.– “Poor-man’s DR”

32

Page 33: Designing virtual infrastructure

P2V-DR UsesP2V-DR Uses

P2V-DR can be leveraged for medium-term storage of server images– Useful when DR site does not have hot backup

capability or requirements– Regularly create images of physical servers, but only

store those images rather than load to virtual environment

– Cheaper-to-maintain DR environmentNot fast.Not easy.Not completely reliable.…but essentially cost-free.

33

Page 34: Designing virtual infrastructure

Step 3Step 3High AvailabilityHigh Availability

34

Page 35: Designing virtual infrastructure

Costs vs. BenefitsCosts vs. Benefits

High-availability adds dramatically greater uptime for virtual machines.– Protection against host failures– Protection against resource overuse– Protection against scheduled/unscheduled downtime

High-availability also adds much greater cost…– Shared storage between hosts– Connectivity– Higher (and more expensive) software editions

Not every environment needs HA!

35

Page 36: Designing virtual infrastructure

What Really is Live Migration?What Really is Live Migration?

36

Part 1: Protection from Host Failures

Page 37: Designing virtual infrastructure

What Really is Live Migration?What Really is Live Migration?

37

OverloadedVirtual Host

Shared Storage

UnderloadedVirtual Host

Network

Live Migration to New Host

Part 2: Load Balancing of VM/host Resources

Page 38: Designing virtual infrastructure

Comparing Quick Migration w/ Live MigrationComparing Quick Migration w/ Live Migration Simply put: Migration speed is the difference.

– In Hyper-V’s original release, a Hyper-V virtual machine could be relocated with “a minimum” of downtime.

– This downtime was directly related to..…the amount of memory assigned to the virtual

machine…the connection speed between virtual hosts and

shared storage.

– Virtual machines with greater levels of assigned virtual memory and slow networks would take longer to complete a migration from one host to another.

– Those with less could complete the migration in a smaller amount of time.

With QM, a VM with 2G of vRAM could take 32 seconds or longer to migrate! Downtime ensues…

38

Page 39: Designing virtual infrastructure

Comparing Quick Migration w/ Live MigrationComparing Quick Migration w/ Live Migration Down/dirty details…

– During a Quick Migration, the virtual machine is immediately put into a “Saved” state.

– This state is not a power down, nor is it the same as the Paused state.

– In the saved state – and unlike pausing – the virtual machine releases its memory reservation on the host machine and stores the contents of its memory pages to disk.

– Once this has completed, the target host can take over the ownership of the virtual machine and bring it back to operations.

39

Page 40: Designing virtual infrastructure

Comparing Quick Migration w/ Live MigrationComparing Quick Migration w/ Live Migration Down/dirty details…

– This saving of virtual machine state consumes most of the time involved with a Quick Migration.

– Needed to reduce this time delay was a mechanism to pre-copy the virtual machine’s memory from source to target host.

– At the same moment the pre-copy would to log changes to memory pages that occur during the period of the copy.

These changes tend to be relatively small in quantity, making the delta copy significantly smaller and faster than the original copy.

– Once the initial copy has completed, Live Migration then……pauses the virtual machine…copies the memory deltas…transfers ownership to the target host.

Much faster. Effectively “zero” downtime.40

Page 41: Designing virtual infrastructure

Common Features in High-End Common Features in High-End PlatformsPlatforms Live migration enables running virtual machines to

be moved to an alternate host before a host failure. Automated relocation to new hardware and restart

of virtual machines immediately upon a host failure. Load balancing calculations that manually or

automatically re-balance running virtual machines across hosts to prevent resource contention.

Disk storage migration that enables the zero-impact relocation of virtual machine disk files to alternate storage.

Automated replication features that copy backed up virtual machines to alternate locations for disaster recovery purposes.

41

Page 42: Designing virtual infrastructure

Step 4Step 4Backups ExpansionBackups Expansion

42

Page 43: Designing virtual infrastructure

Backup TerminologyBackup Terminology

File-Level Backup– Backup Agent in the Virtual Machine

Block-Level Backup– Backup Agent on the Virtual Host

Quiescing– Quieting the file system to prep for a backup

O/S Crash Consistency– Capability for post-restore O/S functionality

Application Crash Consistency– Capability for post-restore application functionality

43

Page 44: Designing virtual infrastructure

Four Types of BackupsFour Types of Backups Backing up the host system

– May be necessary to maintain host configuration– But often, not completely necessary– The fastest fix for a broken host is often a complete rebuild

Backing up Virtual Disk Files– Fast and can be done from a single host-based backup

client– Challenging to do file-level restore

Backing up VMs from inside the VM– Slower and requires backup clients in every VM.– Resource intensive on host– Capable of doing file-level restores

Back up VMs from the storage perspective.– Leverage storage frame utilities to complete the backup.44

Page 45: Designing virtual infrastructure

Three Types of BackupsThree Types of Backups

45

Page 46: Designing virtual infrastructure

The Problem with Transactional DatabasesThe Problem with Transactional Databases

O/S Crash Consistency is easy to obtain.– Just quiesce the file system before beginning the backup.

Application Crash Consistency much harder.– Transactional databases like AD, Exchange, SQL don’t

quiesce when the file system does.– Need to stop these databases before quiescing.– Or, need an agent in the VM that handles DB quiescing.

Restoration without crash consistency will lose data. DB restores into “inconsistent” state.

46

Page 47: Designing virtual infrastructure

The Problem with Transactional DatabasesThe Problem with Transactional Databases

For VMs, must consider file-level backups and block-level backups.– “Top-down” vs. “Bottom-up”– File-level backups provide individual file restorability– File-level backups provide transactional database crash

consistency.– Block-level backups provide whole-server restorability.– Not all block-level backups provide app crash

consistency. Windows VSS can quiesce apps prior to

snapping a backup.– Advantage: Hyper-V!

47

Page 48: Designing virtual infrastructure

Step 5Step 5Virtualization at the DesktopVirtualization at the Desktop

48

Page 49: Designing virtual infrastructure

Desktop Virtualization = VDI = Hosted Desktop Virtualization = VDI = Hosted DesktopsDesktops Once you fully embrace virtualization for your

servers, desktop are a next common focus. VDI is all about the apps. HOWEVER, BEWARE VDI!

– VDI is a much more complex beast than Terminal Services, Citrix XenApp, or other presentation virtualization platforms.

– It is also dramatically more expensive.

VDI’s Use Cases (and there are only two)– Applications that simply don’t work atop TS/Citrix– High-utilization apps that require remote access

49

Page 50: Designing virtual infrastructure

Step 6Step 6DR ImplementationDR Implementation

50

Page 51: Designing virtual infrastructure

Disaster RecoveryDisaster Recovery

Don’t forget that your DR infrastructure will have to change drastically

Big, complex topic – suitable for a whole session all by itself!

51

Page 52: Designing virtual infrastructure

Thank You!Thank You!

Please feel free to pick up a card if you’d like copies of my session materials

I’ll be happy to take any last questions while I pack up

Please complete and submit an evaluation form for this and every session you attend!

Page 53: Designing virtual infrastructure
Page 54: Designing virtual infrastructure

This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it

within your own organization however you like.

For more information on our company, including information on private classes and upcoming conference appearances, please

visit our Web site, www.ConcentratedTech.com.

For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg

This work is copyright ©Concentrated Technology, LLC