Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Tudor Damian
IT Solutions Specialist
Virtual Machine MVP
tudy.tel
Agenda
Private Cloud i IaaS - introducere
Arhitecturi de virtualizare
Soluii existente
Type 1 (bare-metal)
Full / paravirtualized (VMWare, Hyper-V, Xen)
Type 2 (hosted)
OS-assisted (KVM, VirtualBox, Virtuozzo/OpenVZ)
IT CAPACITY
Under-supply
of capacities
Barrier for
innovations
Allocated
IT-capacities
Load
Forecast
Waste of
capacities
Actual Load
TIME
Source: Microsoft Cloud Continuum
Load
Forecast
IT CAPACITY
No under-supply
Reduction
of initial
investments
Reduction of
over-supply
Possible
reduction of
IT-capacities
in case of
reduced load
Actual Load
Time
Source: Microsoft Cloud Continuum
Compute
On and Off
Inactivity
Period
Average Usage
Usage
Average
Time
Time
Predictable Bursting
Compute
Compute
Unpredictable Bursting
Average Usage
Average Usage
Time
Time
Applications
Applications
Runtimes
Runtimes
Security
Security
Security
Databases
Databases
Databases
Servers
Servers
Servers
Virtualization
Virtualization
Server HW
Server HW
Storage
Storage
Networking
Networking
Security
Runtimes
You manage
Runtimes
Applications
You manage
Applications
Managed by vendor
Virtualization
Server HW
Databases
Servers
Virtualization
Server HW
Storage
Storage
Networking
Networking
Managed by vendor
(as a Service)
(as a Service)
Managed by vendor
(as a Service)
(On-Premise)
You manage
Software
Platform
Infrastructure
Off Premises
Infrastructure
Business model
Ownership
Management
Homogeneous
OpEx
Lease/Rent
Third Party
Application Programming
Elasticity
Automated
Service
Management
High
Availability
MultiTenancy
Fundamentals
Fundamentals
Self
Location
Choices
Choices
On Premises
Compute
Network
Storage
3rd
party extensions
Pooled Resources
Virtualization
Elasticity
Management
Scalability
Continuous Availability
Predictability
Virtualization
Usage-Based
Multi-Tenancy
Security
Automation
Service management
Compute
Network
Storage
Source: Microsoft Cloud Continuum
c. ce vreau s ofer?
SLA, compliance (PCI, ISO)
1. buget
cost per kWh, pre per U, costuri legate de
band/conectivitate, personalul tehnic, etc.
2. arhitectur
structur, scalabilitate, fiabilitate, redundan,
securitate, flexibilitate
3. hardware
server (MIPS/MOPS), storage (I/O-OPS),
network (1Gbps, 10Gbps, infiniband, fiber)
4. virtualization layer
5. management / monitorizare
6. procese interne
politici de securitate/incident-response,
uurina de a detecta/repara problemele,
disaster recovery, high availability i timpul
necesar aducerii unui nod online
7. oameni
echipa tehnic, mentenan post-implementare
Buget
Arhitectur
Hardware
Virtualizare
Management i monitorizare
Procese interne
Oameni
Buget
Arhitectur
Hardware
Virtualizare
Management i monitorizare
Procese interne
Oameni
ARHITECTURI DE VIRTUALIZARE
virtualizare
main virtual
hypervisor
paravirtualizare
microkernel
kernel monolitic
synthetic device drivers
parent partition
binary translation
un pic de istorie
virtualizarea e veche
chiar i cu VM/370,
costurile erau nc ridicate
1977, Macintosh
Apple II
1988, Connectix
Virtual PC (pentru Macintosh)
ambele se bazau pe
existena unui SO gazd (host)
posibilitatea de a rula VM pe
hardware nespecializat
tendine
real-time failover
(HA Clustering)
procesoarele cu virtual-assist
sunt un bun exemplu
tipuri de atacuri
migration attacks
virtual / physical
network service attacks
encryption attacks
2007
Microsoft Virtual PC & Microsoft Virtual Server
vulnerabilitate care permitea unui guest s
ruleze cod pe host sau pe alt guest
cteva link-uri...
http://searchsecurity.bitpipe.com/detail/RES/1213273947_134.html
http://www.foolmoon.net/cgi-bin/blog/index.cgi?mode=viewone&blog=1185593255
http://www.securityfocus.com/bid/29183/info
http://secunia.com/advisories/29129/
http://seclists.org/fulldisclosure/2007/Sep/0355.html
http://lists.vmware.com/pipermail/security-announce/2009/000055.html
http://www.immunityinc.com/documentation/cloudburst-vista.html
http://taviso.decsystem.org/virtsec.pdf
http://www.eecs.umich.edu/techreports/cse/2007/CSE-TR-539-07.pdf
http://www.stanford.edu/~talg/papers/HOTOS05/virtual-harder-hotos05.pdf
de la soluiile de virtualizare,
toat lumea ateapt automat la:
izolare eficient
securitate
performan
uurin n administrare
paravirtualizare
guest modificat pentru a elimina
nevoia de binary translation
ofer avantaje de performan n
anumite circumstane, ns e nevoie
de o versiune modificat de kernel
instalat pe guest
Tipuri de virtualizare
OS virtualization
Virtuozzo / OpenVZ
Arhitectura Hyper-V
Arhitectura Hyper-V
Xen
la VMWare,
lucrurile stau puin diferit
ESX
ESXi
KVM / Qemu
QEMU
QEMU
QEMU
Hypervisor:
Kernel
module
Guest OS:
User space
process
(QEMU for
x86
emulation)
Are nevoie
de HW
virtualization
extension
Virtuozzo / OpenVZ
consolidare hardware
high availability
testing
disaster recovery
sandboxing
http://en.wikipedia.org/wiki/Sandbox_(computer_security)
forensic analysis
honeypots / honeynets
http://en.wikipedia.org/wiki/Honeypot_(computing)
HYPER-V 2008 R2
Live Migration
Live Migration
Blue = Storage
Orange = Networking
Quick Migration
Live Migration
Save state
a)
b)
2.
1.
b)
2.
b)
Host 1
b)
Host 2
3.
VM State/Memory Transfer
a)
3.
Host 1
Host 2
Utilizatorii, memoria i
virtualizarea
Nimeni nu tie ct memorie s aloce pentru un VM
Cum va afecta RAM-ul alocat performana unui VM?
Memoria e un bottleneck
Unul din factorii cheie din punct de vedere al costurilor
Fr emulare hardware
Lightweight, instant
Eliminare
Iniial s-a dorit eliminarea memoriei (-> probleme)
Testele au artat c memory ballooning e mai eficient
Afecteaz Task Manager n Guest OS
Memory buffer
Memoria alocat unui VM pentru necesiti imediate
Scopul principal e de a preveni utilizarea file cache
Dynamic Memory - UI
Dynamic Memory - UI
Available
Memory
Available
Memory
Root
Reserve
Hyper-V Host
Ideal Memory
Available
Memory
Root
Reserve
Hyper-V Host
Buffer
Memory
Demand
VM1
Ideal Memory
Ideal Memory
Buffer
Buffer
Root
Reserve
Hyper-V Host
Memory
Demand
VM1
Memory
Demand
VM2
Ideal Memory
Ideal Memory
Buffer
Buffer
Root
Reserve
Hyper-V Host
Memory
Demand
VM1
Low Priority
Memory
Demand
VM2
Medium Priority
Ideal Memory
Ideal Memory
Buffer
Buffer
Root
Reserve
Hyper-V Host
Memory
Demand
VM1
Low Priority
Ideal Memory
Buffer
Memory
Demand
VM2
Medium Priority
Memory
Demand
VM3
High Priority
Ideal Memory
Ideal Memory
Priority
Buffer
Penalty
Root
Reserve
Hyper-V Host
Memory
Demand
VM1
Low Priority
Priority
Penalty
Buffer
Buffer
Memory
Demand
VM2
Medium Priority
Ideal Memory
Priority Penalty
Buffer
Buffer
Memory
Demand
VM3
High Priority
Ideal Memory
Ideal Memory
Ideal Memory
Buffer
Buffer
Root
Reserve
Hyper-V Host
Memory
Demand
VM1
Low Priority
Memory
Demand
VM2
Medium Priority
Memory
Demand
VM3
High Priority
Compatibilitatea aplicaiilor
Probleme
Aplicaii cu static memory allocation (Exchange)
Setri suplimentare
Aplicaii cu cache / memory management intern (SQL, Apache,
Java, Oracle, ...)
Aplicaii care pornesc cu mult memorie prealocat (?)
Infrastructur
Grafic
Crete complexitatea graficii: Media, 3D UI, Video, Animations,
Flash, Silverlight
Crete fragmentarea stack-urilor n procesarea grafic
Silverlight i Flash portabil emit flat bitmaps
HYPER-V 2012
Performance improvements
vSphere 5.0
160
160
2TB
2TB
8000
3000
64
32
32
32
1TB
1TB
64TB (VHDX)
2TB
Unlimited
128/datastore
Unlimited
8/datastore, 2/host
Disaster recovery
Hyper-V Replica
Disaster Recovery Scenarios:
Planned, Unplanned and Test Failover
Pre-configuration for IP settings for primary/remote location
Key Features:
RPO/RTO in minutes
Seamless integration with Hyper-V and Clustering
Automatically handles all VM mobility scenarios (e.g. Live
Migration)
Supports heterogonous storage between primary and recovery
Storage improvements
VHDX
Virtual Fiber Channel in the Guest (MPIO)
NFS Storage (SMB 2.2) with SMB2 direct (RDMA) support
Offloaded Date Transfer (ODX)
Native data deduplication
4k Native Disk Support
iSCSI Target
NTFS online scan/repair
VHDX
Data Deduplication
High optimization savings
State of the art chunking and compression
VHD Library
Software Deployment Share
General File Share
User Home Folder (MyDocs)
0%
20%
40%
60%
80%
100%
Hyper-V
Virtual Machine
No downtime
servicing
VHD Stack
Leverages
Hyper-V
Offloaded Data
Transfer (ODX)
VHD
Source Device
VHD
Destination Device
Network improvements
NIC Teaming
Extensible Virtual Switch
Multi-tenant deployments
Bandwidth QoS
Dynamic Virtual Machine Queue (DVMQ)
Single Root I/O Virtualization (SR-IOV)
Receive Side Scaling (RSS)
Receive Side Coalescing (RSC)
IPSec Task Offload
Address Virtualization
Generic Routed Encapsulation (GRE)
Address Rewrite
Bandwidth QoS
Root Partition
Host NIC
Hyper-V Switch
Capture Extensions
WFP Extensions
Filtering Extensions
Forwarding Extension
Physical NIC
Virtual
Machine
VM NIC
Multiple Customers on
Shared Infrastructure
Contoso Bank
Woodgrove Bank
Woodgrove Bank
Blue 10.1.0.0/16
Contoso Bank
Red 10.1.0.0/16
Blue
Red1
Red2
10.1.1.31
10.1.1.21
10.1.1.11
10.1.1.12
Hyper-V
Switch
Isolated
Isolated
Community
Community
Win 8 Host
Isolation Scenario
To Internet
(10.1.1.1)
Hoster wants to isolate all VMs from each other and allow internet connectivity
#1 Customer Ask from hosters
Community Scenario
Hoster wants tenant VMs to interact with each other but not with other tenant VMs
Requires a VLAN id for each community (limited scalability, only 4095 VLAN IDs)
Woodgrove VM
Woodgrove network
Contoso VM
Physical
network
Physical
server
Hyper-V Machine
Virtualization
Contoso network
192.168.2.22192.168.5.55
192.168.2.22192.168.5.55
192.168.2.22
192.168.5.55
1:N
10.1.1.11
10.1.1.1110.1.1.12
10.1.1.11
10.1.1.1110.1.1.12
10.1.1.12
10.1.1.1110.1.1.12
10.1.1.12
10.1.1.1110.1.1.12
Address Rewrite
Each VM IP (CA) is mapped to a unique Provider Address (PA)
Regular TCP/IP packets on the wire
192.168.2.22192.168.5.55
192.168.2.23192.168.5.56
192.168.2.22
192.168.2.23
192.168.5.55
10.1.1.11
10.1.1.1110.1.1.12
192.168.5.56
10.1.1.11
10.1.1.1110.1.1.12
10.1.1.12
10.1.1.1110.1.1.12
10.1.1.12
10.1.1.1110.1.1.12
IP Rewrite
Deeper Multi-Tenancy
Integration
Performance and
Compatibility
VDI improvements
RemoteFX for WAN (rich desktop over various networks)
RemoteFX adaptive graphics (remoting of experiences adapting to
network types)
RemoteFX media remoting (high performance media remoting)
RemoteFX multi-touch (consistent touch interface, even when
remoting to RDS)
RemoteFX USB redirection
Metro-style Remote Desktop App
Choice of software or physical GPU
No requirement for hardware GPU
In-box metering
Instrumente de management
System Center
SCVMM 2012
SCVMM 2012
Network
Define Logical Networks using VLANs and Subnets per datacenter location
Address management for Static IPs, Load Balancer VIPs and MAC addresses
Storage
Enhanced Placement
Applications
Built-in support for Web deploy, Server App-V, SQL DAC
Custom command execution for other application packages
Image-based
OS separated from apps
Composed during deployment
Servicing
Change the template and then apply that change to deployed
instances
Upgrade domains ensures application availability during
servicing
INTEROPERABILITATE
DIMs interact with the Linux Kernel like any other driver
Theres also a VSC core based on each existing VSP
Enlightened drivers
July 2009 Microsoft contributes with over 20.000 lines of code in the Linux kernel
December 2009 The drivers (in staging) are included in the 2.6.32 Kernel
http://technet.microsoft.com/en-us/library/cc794868(WS.10).aspx
The clock inside the virtual machine will remain synchronized with the clock on the host
Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine
Allows the host to detect whether the guest is running and responsive
A pluggable clock source module is included to provide a more accurate time source to the guest.
Information about the running Linux VM can be obtained by using the Key Value Pair exchange functionality on the host (FQDN,
Linux IS version, IP addresses, OS version/distro/kernel, CPU architecture x86/x64)
The cursor is no longer bound to the VMConnect window when used with the Linux Graphical User Interface
Linux virtual machines can undergo live migration for load balancing purposes
Linux virtual machines can be configured to use Ethernet frames with more than 1500 bytes of payload
Comparing to IS on Windows
Synthetic Drivers
IDE driver
SCSI driver
Network Drive
Mouse Integration
Video
Integration Services
Operating System Shutdown
Time Synchronization
Heartbeat
Data Exchange
Backup (VSS)
IS on Windows
IS on Windows
LINUX IN AZURE
VM Depot
http://msopentech.com/blog/project-categories/virtual-machine-depot/
VHD tool
http://code.msdn.microsoft.com/vhdtool
Soluii de scripting
POWERSHELL
Powershell v1.0
Suport pentru:
Windows Server, Exchange, SQL, SCOM, SCVMM, SCDPM,
Compute Cluster, OpenXML, IBM WebSphere MQ, Active
Directory, Lotus Domino, VMWare Infrastructure, Windows 7,
WDK, NetApp Data ONTAP
ACUM
GUI
MMC
GUI-uri bazate
pe PowerShell
Shell interactiv
CMD
PowerShell
Scripting
BAT n CMD
PowerShell
COM
WMI (VBScript)
PowerShell
Securitate n PowerShell
Secure by design & by default
Fisierele script sunt asociate cu Notepad
Scripturile nu vor rula
PowerShell v2.0
Background Jobs
Operaii tranzacionale
Eventing
Network File Transfer
API-uri noi
PowerShell v3.0
New commandlets
$Pv3 = Get-Command *
$Pv3.count
PowerShell ISE
Updatable Help
Update-Help
Thanks!
www.itspark.ro
www.codecamp.ro
www.itcamp.ro
www.vimeo.com/channels/itcamp