vm mobility
DESCRIPTION
Hyper-v.nu event 16-04-2013, VM Mobility in Windows Server 2012 Hyper-V, Hans VredevoortTRANSCRIPT
![Page 1: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/1.jpg)
Windows Server 2012 Hyper-VVirtual Machine MobilityHans VredevoortHyper-V MVP
![Page 3: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/3.jpg)
Agenda• Welcome• VM Mobility in the past• VM Mobility today• VM Mobility in the future• Q&A
![Page 4: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/4.jpg)
VM Mobility in the past
![Page 5: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/5.jpg)
VM Mobility in the past
• Export/Import• Quick Migration• Quick Storage Migration• (Classic) Live Migration
![Page 6: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/6.jpg)
Live Migration in Windows Server 2008 R2
Since2008 R2
Dedicated 1Gb Link
Within Clusters
No Queueing
One at a time
No Priorities
16 nodes
PowerShell
![Page 7: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/7.jpg)
Host 1 Host 2
Config
ura
tio
n
Memory
Config
ura
tio
n
Sta
teSta
te
How Live Migration worked in R2
![Page 8: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/8.jpg)
Live Migration is not High AvailabilityHigh Availability• Cluster host dies• VM fails over to another host and boots up (minimal
downtime)• ReactiveLive Migration• Load balancing, VM relocation, host maintenance• VM is live migrated with no downtime to services• Proactive
![Page 9: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/9.jpg)
VM Mobility today
![Page 10: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/10.jpg)
Virtual Machine Import
![Page 11: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/11.jpg)
Virtual Machine Import Requests• Import without Export• Simply register a VM• Fix problems during import• Import using PowerShell
![Page 12: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/12.jpg)
Improvements to VM Import
Point to Directory
Register RestoreCopy
Fix up VM during Import
![Page 13: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/13.jpg)
Add/RemoveClustered VM Role
![Page 14: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/14.jpg)
Add/Remove VM RoleRequests• Add VM role while VM is online• Remove VM role while VM is online
![Page 15: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/15.jpg)
Improvements add/remove clustered VM roleIn WS2012• Online addition/removal high availability VM role• Via High Availability Wizard• Via PowerShell
![Page 16: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/16.jpg)
DemoOnboarding VMs in Cluster
![Page 17: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/17.jpg)
Live Migration in 2008 R2 is great!But how can we make it better?
![Page 18: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/18.jpg)
VM Mobility in Windows Server 2012Requests• Make it faster!• Support simultaneous live migration• Queue up live migrations• Allow us to set priorities• Perform as many live migrations as network and
hardware allows• Make it easier to do with in-box tools• Remove all the barriers around mobility
![Page 19: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/19.jpg)
New in WS2012• Parallel Live Migration• Live Migration queuing• Multi-select for Live Migration in Failover Cluster
Manager• Live Migration considers VM Priority• Live Migration uses network more effectively• It is now possible to saturate a 10 GbE link• Live Migration is 70% faster than it was in the past
Improvements in Live Migration
![Page 20: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/20.jpg)
• Inside a cluster with traditional shared storage• Inside a cluster with SMB storage• Between non-clustered hosts with shared SMB storage• Between non-clustered hosts with no shared storage• Between hosts in different clusters without shared
storage• Between clustered and non-clustered hosts with no
shared storage and vice versa
Live Migration directions
![Page 21: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/21.jpg)
Startup Priority
![Page 22: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/22.jpg)
Startup PriorityAvailable Priorities High, Medium, Low, No Auto Start Clustered roles with higher priority are started and are
placed on nodes before those with lower priority If cluster is short of resources: preemption kicks inHow are the VMs migrated? High and Medium Priority VMs use Live migration If cluster is out of capacity High Priority VMs are
placed and Lower Priority VMs are saved
![Page 23: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/23.jpg)
VM Priority and MoveTypeThresholdVirtual Machine Priorities
Low Priority VMs use Quick Migration! VMs with priority ≥ 2000 will be moved using live
migration VMs with priority < 2000 will be moved using quick
migration Default MoveTypeThreshold: 2000
Get-ClusterResourceType “Virtual Machine” | Set-ClusterParameter MoveTypeThreshold 1000
VM Priority
Value
High 3000
Medium 2000
Low 1000
No Autostart
0
![Page 24: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/24.jpg)
DemoWindows Server 2012 Live Migration
![Page 25: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/25.jpg)
Storage Migration
![Page 26: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/26.jpg)
Storage MigrationRequests• No downtime involved• Move any part of a running VM with no need to turn it
off• Perform storage upgrades with no downtime• Respond to I/O bottlenecks with no downtime
![Page 27: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/27.jpg)
New in WS2012• Live Storage Migration• Move the Storage of a running VM• Move storage between CSVs• Move from CSV to SMB Share or vice versa• Live Migration without Shared Storage• Great feature for “Cluster onboarding”• Possibility to move VM & storage between Clusters
Live Storage Migration
![Page 28: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/28.jpg)
1. Reads/writes go to source VHD (or VHDX)• During most of the move operation
2. Disk contents are copied to the new destination VHD• While reads/writes occur on source VHD
3. Disk writes are mirrored to both source & destination VHDs• After initial disk copy is complete• Virtual outstanding disk changes are replicated
4. VM Live Migration is initiated • After source and destination VHDs are completely synchronized• Using same process as Live Migration
5. Storage Migration completion• Once VM is running successfully on the destination server• The files on the source server are deleted
• d
Live Storage Migration procedure
![Page 29: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/29.jpg)
![Page 30: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/30.jpg)
DemoWindows Server 2012 Live Storage Migration
![Page 31: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/31.jpg)
Live Migration without shared storage
![Page 32: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/32.jpg)
Live Migration without shared storage• You can now live migrate a VM between two
standalone servers with no shared infrastructure• Entire VM moved with no perceived downtime
1. Configuration2. Storage3. Memory4. State
![Page 33: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/33.jpg)
Live MigrationSecurity Failures
![Page 34: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/34.jpg)
• Live Migration within cluster• No need to enable Live Migration in the host settings
• Live Migration between hosts or clusters• You need to enable Live Migration in the host settings
• Two authentication types• CredSSP (Credential Security Provider)
http://download.microsoft.com/download/9/5/E/95EF66AF-9026-4BB0-A41D-A4F81802D92C/%5BMS-CSSP%5D.pdf
• Quick and dirty• You can only push from the server you are logged into• Not from other server or management console
• Kerberos authentication• Allows authorized Hyper-V administrators to run LM from any domain member• Not required to log into host to push a VM
CredSSP versus Constrained Delegation
![Page 35: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/35.jpg)
• In the GUI• Enable the advanced view in ADUC• Edit the properties of the host’s computer account• Edit the Delegation tab• Add the required computer accounts• Add the required service types to delegate• Reboot the host that you just modified the computer object of
• In PowerShell
CredSSP versus Constrained Delegation
http://www.aidanfinn.com/?p=13711
![Page 36: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/36.jpg)
Kerberos Constrained Delegation with SMB 3.0 Storage
• Delegate Microsoft Virtual System Migration Service for every other possible LM host
• Delegate CIFS for every possible file share that LM VMs will be stored on.
• Use the computer account of the Scale-Out File Server (SOFS) if using SOFS, and not the node members.
![Page 37: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/37.jpg)
Kerberos Constrained Delegation for Shared Nothing Live Migration
• Microsoft Virtual Machine Migration Service for every other possible LM host
• CIFS for every other possible LM host
![Page 38: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/38.jpg)
DemoLive Migration Without Shared Storage
![Page 39: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/39.jpg)
Live Migration requirements
In common• Two or more servers running Hyper-V• Support hardware virtualization• Are using processors from same manufacturer• Belong to same AD domain or trusted domains
• VMs must be configured to use• Virtual hard disks (VHD/VDHX)• Fibre Channel disks• No physical disks
• Use of private network is recommended• For Live Migration traffic
![Page 40: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/40.jpg)
Live Migration requirements
In Cluster• Windows Failover Clustering is enabled and configured• Cluster Shared Volumes (CSV) is enabled
With SMB 3.0 storage• All files of VM are stored on SMB share• Permissions on SMB share grant access to computer
accounts of all servers running Hyper-V
With Shared Nothing Live Migration• No additional requirements
![Page 41: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/41.jpg)
• Identical to VMware Raw Device Mapping• Live Migration in Windows Server 2012 does not
support pass-through disks: http://support.microsoft.com/kb/2834898
• Why use pass-through disks when you have VHDX?• Greater flexibility• Great scalability (~64TB)• Near native disk speed
Live Migration and pass-through disks
![Page 42: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/42.jpg)
Anti Affinity using PowerShell
$AAgroups = New-Object System.Collections.Specialized.StringCollection
$AAgroups.Add("myAAgroup1") $AAgroups.Add("myAAgroup2")
(Get-ClusterGroup "MyVMName").AntiAffinityClassNames = $AAgroups
![Page 43: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/43.jpg)
VM Mobility in the future
![Page 44: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/44.jpg)
Live Migrate between datacenters
Drag & Drop between two Cities
![Page 45: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/45.jpg)
Move a VM from New Jersey to New York
Using fast, low latency networks
![Page 46: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/46.jpg)
Private Cloud Hosted Cloud
Public Cloud
![Page 47: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/47.jpg)
VMM will make sure using Hyper-V Network Virtualization, that we’ll reconfigure the underlying fabric so that the application can continue to operate seamlessly, while the underlying fabric is reconfigured
![Page 48: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/48.jpg)
VM Mobility in the near and distant future Stretch out between clouds Unified fabric Move VM between datacenters
between private and hosted cloud and back Between hosted and public cloud and back between private and public cloud and back
Live Migration using Time And Relative Dimension In Spacein Windows Server 2056
“Yesterday’s Crazy is Tomorrow’s Normal”
![Page 49: Vm mobility](https://reader033.vdocuments.site/reader033/viewer/2022052411/55763f41d8b42ac31b8b47b9/html5/thumbnails/49.jpg)
Thank you! Questions?