Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second...

33
June 12, 2008 Utilizing KVM in production KVM Gets Down to Real Business Qumranet Desktop Virtualization Solutions by Dor Laor

Transcript of Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second...

Page 1: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

June 12, 2008

Utilizing KVM in productionKVM Gets Down to Real Business

Qumranet Desktop Virtualization Solutions by Dor Laor

Page 2: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved.

Agenda

SolidIce Quick viewMotivation – challenge - solution

Product components & featuresKVM hostsManagementSpice – Remote desktop protocolStorage

KVM usage in detailedProblems solvedProblems to be solvedStable branch & testing

Performance & Conclusions

Page 3: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 3

At a glance

SolidIce is desktop virtualization solutionUses KVM hypervisorUses Linux

Strives to preserve the user experienceUses home grown remote desktop protocol - Spice

Various deployment optionsServer Based ComputingClient Based ComputingBranch offices

Page 4: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 4

Motivation For Desktop Virtualization

Provisioning new machinesSupporting new hardware

Desk-side visitsPatches and updates

Desktop backupsFailures (HD, PS, fans etc) Disaster Recovery

Enforcing security policies Compliance and audit trails

PROVISIONING

SUPPORT AND MAINTENANCE

FAILURES

SECURITY AND COMPLIANCE

POWER Increasing power costs

• Total cost of maintaining and managing a PC environment is $3,000 - $5,000 +*

• Complexity increases with multiple sites and lack of trained desktop personnel.

* Gartner 2007

Page 5: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 5

The Challenge – End User Experience

Terminal Services

Terminal Services Drawbacks

• Not enough isolation

• Apps need to be multi-user enabled

• Complex to roll out new applications

“VDI”

VDI Drawbacks

• End-user experience is not sufficient

• System cost is prohibitive

• Not built/ready for desktops

Ease of Management

En

d-u

ser

exp

erie

nce

PC

Approaches to solve desktop delivery challenges

Solid ICE

Page 6: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 6

Solid Ice: Conceptual Overview

Virtual Desktop Server (VDS)

Cluster

Virtual Desktop Controller

(VDC)

Storage

Thin Client or repurposed PC

Directory Services

1 23

• User’s desktop runs inside a KVM Virtual Machine in the data center

• User connects to virtual desktop using SPICE

SPICE Remote rendering

technology

Virtual Desktops

Page 7: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

7

User powers on the power-client, and sees the log-in screen

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 8: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

8

User logs in with AD username and password

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 9: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

9

VDC authenticates the user against AD

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 10: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

10

VDC presents the user with a list of virtual desktops he/she is allowed to log into (in case of multiple)

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 11: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

11

User selects the desktop that he/she wants to log into (if they have multiple desktops)

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 12: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

12

VDC provides the power-client with relevant information and credentials

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 13: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

13

The power-client streams/runs the image from central storage

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 14: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

How Stateless Solid Ice works

Copyright © 2008 Qumranet, Inc. All rights reserved. STRICTLY CONFIDENTIAL

14

The power-client launches the virtual desktop with a local spice session

USER VIEW SYSTEM FUNCTIONING

VDC

Storage

AD

Power-client

Page 15: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 15

Solid Ice: Virtual Desktop Server

Leverages KVM & LinuxNetworking, bridging, tapsPrioritiesMemory - Page-sharing, ballooning, swappingEncryption for controller connection & remote clientsUses NFSUnix sockets for monitor & vmchannel

High Density of Virtual Machines/Desktops Shared pages, ballooning and swappingSpice with hw acceleration2-5x other solutions (workload dependent)

High Availability: Operates in clustered modelController can kill (fense) a server and re-run VMs on another

Easy to UseAutomatic installation of packagesSingle Sign On

Linux

Desktop Optimization

KVM

Virtual Desktops

Virtual Desktop Server (VDS) Cluster

Page 16: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 16

Image Manager

Connection Broker

Provisioning Manager

HA Manager

Event Manager

Solid Ice: Virtual Desktop Controller

Built from the ground-up for desktops. 90% reduction in storage Load balance highly utilized serverAD/LDAP integration, multiple domainsIntegrates with desktop build process HA Monitoring of VDSs. Audit trails, reports and more

Manage every aspect of the virtual desktop infrastructure from one central location

Search driven User Interface Cross-correlate information instantly (virtual desktops, servers, users etc)

Power-shell based scripting API

VDC Application

Windows 2003 Server

Virtual Desktop Controller (VDC)

Page 17: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 17

Spice – Remote Desktop Protocol

User-experience indistinguishable from physical PC

30+ frames per second video Native color, full resolutionBi-directional audio and video for video-conferencing/VoIPMulti-monitor support (4+ monitors) USB 1.1 and 2.0 support

SPICE is an adaptive remote rendering solution Utilizes graphics processing capabilities wherever they exist

Offloads graphics processing/rendering to client (if powerful) and/or server

Improves desktop density on the serverMinimizes rendering on the server side (adaptive)

SPICE Driver

SPICE Device

SPICE Client

Virtual Desktop

VDS/ Host

Thin client/ browser

Page 18: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved.

Storage: NFS & Multiple Mount points

Guest1 Guest2

NFS

Mount

Server1(2)

NFS

FS1

Guest3 Guest4

NFS

Mount

Guest5 Guest6

NFS

Mount

Server2

NFS

FS3

Storage

Domain1

Storage

Domain2

NFS

Mount

NFS

Mount3

NFS

Mount2

Server2(1)

NFS

FS2

NFS

Mount2

Page 19: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 19

Cool Features

IntegratedClient-VM-Server-Active directory

Super denseEnhanced remote desktop experience

Video / Multiple monitors / Audio / USB redirection

Search based management rocksNeed to manage 10^5 objects

Image managementTemplates, shrinkage, collapse-backup, sync with remote site

External hibernation, live migration, live snapshotsMany use cases

Server based / Client based / Branch officeRuns Windows*, Linux* guests

Page 20: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 20

Benefits Of Solid Ice For All Stakeholders

Full control over costs of desktops

TCO savings of >50%

IRR >100%

Improved auditing ability/ compliance

Power saving approach, green enterprise initiative

Centralized management

Fully integrated system built for virtual desktops

Open, architecture (no high-end servers, proprietary file systems etc)

Non intrusive to IT

Significantly reduced storage requirements

User experience indistinguishable from physical PC

Non-intrusive to user

Access work PC from anywhere

Computing power on demand

Enterprise IT administrators End-users

Page 21: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 21

Solid Ice Potential Use Cases

Access work PC (virtual desktop) from home, capex. Work-from-home

Significant manageability benefits, ROIPrimary Desktop

Security, provisioning time, capexConsultants & Contractors

Eliminate provisioning and re-provisioning timeIT Training Rooms

Intellectual property and data securityOutsourcing

Pool of DR desktops, or individual desktopsDisaster Recovery

Linux PC to WinXP VM, or vice-versa, on-demandDeveloper Desktops

Customer BenefitsUse-case

Page 22: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 22

KVM Best Practices in Solid Ice

Use KVM :)Use RHEL/SLES Linux for Virtual Desktop ServersWindows standard HAL performs betterTime drift fix is a must

-no-kvm-pit --> -no-irq-chip :(Migration keep breaking every qemu merge

Regression testsTpr optimization/FlexPriority is a must for windows acpiUse templates based snapshotsMonitor/vmchannel unix socketExternal hibernation – migrate into fileEvery device has a fallback

Virtionet-rtlnet, spice-vnc-rdp,networking- vmchannel, Upgrades using cdrom (change cd)Massive tests are paramount

Page 23: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 23

Developed Features

Good hypervisor to form a great community!VMDK image format support

Actually we now use it only as a migration pathTime drift fix

Rtc, pitPvnet, virtionet, virtio network drivers for windowsE1000 network driversMigration (along with Anthony Liguori)In-kernel apic (beginning)Tpr optimizationBalloon driver (+Marcello, Rusty)Vmchannel driverKSMUsb isochronous; 2.0

Task switching (Ghost)MMU notifiers

KprobesAMD support (with amd of course)> 3.75G supportZero block de-dupImage sync – dirty bits

Page 24: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 24

Still Left

Monitor shared library for Stable machine readable protocolVarious time drift fixes

RTC, Get rid of in-kernel pitMigration issues

AMD – Intel migrationChoose performance vs flexibility

Least common denominatorMasquerade the cpuid bits

Use libvirtVirtio based vmchannel, balloon (windows)Static pci slots Stabilize scsi for windowsStabilize the various Linux guests

Page 25: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 25

Versions, Stability & Tests

Our mainline features are massively tested by internal QAHow ever we do not test all types of Linux guests.If things break in mainline tree we discover it way too lateUntil May 2008 we use to branch mainline in a random point

Now we base it over community published stable branchOfficial kernel release – starting at 2.6.26Use latest 'stable' userspace – kvm-68Only apply bug fixesUntil it reaches standard distributions it can serve as community stable branch

Build open source test frameworkStabilize KVMDiscover regression fast

Page 26: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 26

Results - Office workload

Started batches of 5 Virtual Desktops (VD) at a time, every 5 minutes

Each of the VDs ran a script of office workload continuously

One VD was constantly manned by a real user doing office workload

The test stopped when the user could not do natural office work

Page 27: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 27

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

5 10 15 20 25 30 35 40 45

Adjusted Time

Mem

ory

% u

sed

(se

rver

= 1

6GB

)

Solid ICE virtual desktops limit (52)

1015

20

25

30

35 40

45

50

50

Office workload – Solid ICE Memory Usage

Page 28: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 28

-

10

20

30

40

50

60

70

80

90

100

5 10 15 20 25 30 35 40 45

Adjusted Time

CP

U %

use

d (

serv

er =

2x4

cor

es)

Solid ICE virtual desktops limit (52)

10

15 20 25

3035

40

45 50

50

Office workload – Solid ICE CPU Usage

Page 29: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 29

How we tested – Mixed Multimedia workload

Started batches of 5 Virtual Desktops (VD) at a time, every 5 minutes

4 of the VDs ran a script of office workload continuously

The 5th VD ran full screen video

One VD was constantly manned by a real user doing office workload

The test stopped when the user could not do natural office work or the video was completely unwatchable

Page 30: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 30

5 10 15 20 25 30 35 40 45

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

Adjusted Time

Mem

ory

% u

sed

(se

rver

= 1

6GB

)

Solid ICE virtual desktops limit (41)

Video workload – Solid ICE Memory Usage

Page 31: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 31

0

10

20

30

40

50

60

70

80

90

100

5 10 15 20 25 30 35 40 45

Adjusted Time

CP

U %

use

d (

serv

er =

2x4

cor

es)

Solid ICE virtual desktops limit (41)

Video workload – Solid ICE CPU Usage

Page 32: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

Copyright © 2008 Qumranet, Inc. All rights reserved. 32

Conclusions

Qumranet enjoys from KVM

KVM enjoys from Qumranet

We are the community

KVM is ready for mainline

Page 33: Utilizing KVM in production KVM Gets Down to Real Businesskdf2008_3.p… · 30+ frames per second video Native color, full resolution Bi-directional audio and video for video-conferencing/VoIP

June 12, 2008

Thank You