VDI e Projeto OSDVT

Post on 13-Jul-2015

1.639 views 25 download

Transcript of VDI e Projeto OSDVT

VDIVirtual Desktop Infrastructure

Amador PahimAnalista de Suporte, UCS

Agenda

· Contexto

· VDI

· Mercado

· Projeto OSDVT

· Demo

Contexto

Virtualização

Você ainda usa dual boot?

● Fexibilidade● Produtividade● Melhor aproveitamento dos recursos

...

Cuidado!

Virtualização

Virtualization adoption

Desktop físico

● Dados espalhados● Suporte demorado● Backup precário● Visitas de técnicos● Disponibilidade● Heterogeneidade● Imagens● Inventário O usuário tem a força!

mas...

VDI

Uso da infraestrutura de virtualização de servidores/datacenter para instalar desktops

virtuais e fornecer acesso remoto aos usuários, reproduzindo a experiência de uso local.

O que é VDI?

O que é VDI?

Por quê VDI?

● Vantagens em relação ao modelo tradicional:● Compliance (armazenamento, inventário,

eliminação de informações, ...)● Dados em segurança (storage, backup...)● Entrega ágil de desktops● Multiplos desktops● Mobilidade

Por quê VDI?

● Além disso, vantagens em relação ao serviço de multiplos terminais:● Desktops completos para os usuários● Aplicações não precisam ser adaptadas● Usuários isolados● Novas aplicações podem ser entregues com novo

S.O.

Mercado

Previsões

According to Gartner, Worldwide VDI revenue will grow from $1.5 billion in 2009 - less than 1% of the worldwide professional PC market - to $65.7 billion in 2013 - more than 40% of the worldwide

professional PC market.

Survey

Stage of VDI adoption

Deployed (at least 1 division)Pilot underwayPlanning for Q1 2010 pilotPlanning for Q2 2010 pilotPlanning for Q3 or Q4 2010 pilot

Survey

User experience Ease of deployment Cost Critical apps worked0

10

20

30

40

50

60

70

80

90

Factors of success (pilot)

The VDI war

ALPALP

ThinOSThinOS

SimpleProtocol for

Independent Computing

Environments

Simple Protocol for Independent Computing Environments

Funcionamento

Arquitetura

Guest

QEMU/KVM

Spice Server(libspice) Spice Client

Client

Host

Spice Agent

Drivers(QXL, VDIPort)

Spice protocol

Canais

● Main – Controle, configuração e migração.● Display – Comandos graficos, imagem e

streaming de vídeo.● Inputs – Teclado e mouse.● Cursor – Posição do mouse e formato do

cursor.● Playback – Recebe áudio do servidor.● Record – Captura áudio no cliente.

Features

● Graphic Commands● Processes and transmits 2D graphic commands

● Video streaming● Heuristically identifies video streams and transmits

M-JPEG video streams

● Image compression● Compression algorithms built specifically for Spice,

including QUIC (based on SFALIC), LZ, GLZ (history-based global dictionary), and “auto mode”

Features

● Live migration● Multiple monitors● Client for Linux, Windows and N900● Two way audio● Ticketing● Encryption SSL● Two mouse modes

● Server mouse● Client mouse

Future features

● In progress● Network tunneling● Off-screen surfaces● Clipboard sharing● USB sharing

● Planned● Client GUI● CD sharing● OSX client● Simultaneous clients connection

Suporte...

Fedora (Spice Team):“We are also in the process of adding spice support to

Fedora 14.”

Libvirt (Libvirt Team):“We have patches ready for spice, but we are not including them until SPICE is accepted into QEMU“

QEMU (Spice Team):“... we're trying to get the patches into upstream qemu

and hope they will land early in the qemu 0.14 release schedule.”

Uso

● Server - qemu:

$ qemu -m 512 -hda /path/to/xp.img -vga qxl -device spicevmc -device virtio-serial -spice port=5930,disable-ticketing

● Server - libvirt:<graphics type='spice' port='5903' tlsPort='5904' listen='127.0.0.1'/>

</graphics>

● Client:

$ spicec -h domain.com -p 5930

ProjetoOSDVT

Open SourceDesktop

VirtualizationTechnology

Objetivos

● Criar uma estrutura de VDI totalmente Open Source;

● Gerenciar desktops virtuais integrando com OpenLDAP;

● Implantar laboratórios de informática totalmente VDI;

● Prover uma interface amigável para usuários acessarem seus desktops virtuais;

Arquitetura

Tecnologia

● Server● Daemon Python● Manager Djando● API Qemu em Python (migração para libvirt assim

que possível)

● Client● Python GTK

● Interfaces● OpenLDAP (autenticação)● MySQL (manager)

OSDVT Server

[SSL]# Version - SSLv1, SSLv2, SSLv23 or TLSv1Version = SSLv23# Public cert file (full path)CertFile = /etc/openssl/cert.pem# Private cert file (full path)KeyFile = /etc/openssl/private/key.pem

[LDAP]# Enable SSL (LDAPS) - True or FalseSSL = True# LDAP hostHost = ldap.com.br#CA cert file (full path)CACert = /etc/openssl/cacert.pem# Bae DN seach to authenticate usersBaseDN = ou=people,dc=foo,dc=bar# Search filterFilter = uid

[Main]# Port to listen client connectionsPort = 6970# Root directory of daemon filesMainDir = /usr/local/osdvt/server

[Database]# Type – MySQL, Oracle or PostgresType = MySQL# Database serverHost = localhost# Database nameName = vdesktop# Table nameTable = vms# Database userUser = osdvtuser# Database passwordPassword = osdvtpass

osdvt-server.conf

OSDVT Server

Qemu API

OSDVT Client

Demo

Perguntas?

“... It's always more funTo share with everyone

If you've got oneHere is something you can learn

You can still shareJust by taking turns ...”

www.ucs.br/projeto/osdvtamador@pahim.org

www.pahim.org