Download presentation
Presentation is loading. Please wait.
Published byClinton Alexander Modified over 6 years ago
1
Ben Armstrong Senior Program Manager Lead Microsoft Corporation
9/12/ :52 PM VIR304 Building Flexible Hyper-V Environments Windows Server 2012 Hyper-V Live Migration and Live Storage Migration Ben Armstrong Senior Program Manager Lead Microsoft Corporation © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
Mobility Core to Private Cloud
Virtualization is the basis of a Microsoft private cloud Virtual machine mobility is key an efficient and responsive private cloud deployment
3
Agenda Live Migration
4
Live Migration without Infrastructure
You can even live migrate virtual machines between two Hyper-V servers with no shared infrastructure Need to be in the same domain Entire virtual machine moved (VHDs + running state) with no downtime
5
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
Negotiation Virtual Machine Virtual Hard Disks
6
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Virtual Hard Disks
7
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Virtual Hard Disks Storage Migration
8
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Virtual Hard Disks Virtual Hard Disks Storage Mirror
9
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Live Migration Virtual Hard Disks Virtual Hard Disks Storage Mirror
10
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Live Migration Virtual Hard Disks Virtual Hard Disks Storage Mirror
11
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Virtual Hard Disks Virtual Hard Disks
12
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine
LM Connection Virtual Machine Virtual Hard Disks
13
Hyper-V Server 1 Hyper-V Server 2 VMMS VMMS Virtual Machine Virtual Hard Disks
14
Demo Live Migration TechReady 14 9/12/2018 10:52 PM
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
15
PowerShell Move-VM "File Server 1" "benarm-zeta" `
-IncludeStorage –DestinationStoragePath ` "J:\Virtual Machines\File Server 1"
16
Live Migration using SMB
Agenda Live Migration using SMB
17
Live Migration with SMB
Storage is not moved, just the running virtual machine Like live migration in a cluster, without high availability Requires SMB 3.0 VIR306: Hyper-V over SMB2: Remote File Storage Support in Windows Server 2012 Hyper-V
18
Setting up SMB for Live Migration
There are a couple of steps involved in getting this right Both users and computers need access to the share
19
Setting up the share – Share Permissions
20
Setting up the share – Share Permissions
21
Setting up the share – Share Permissions
22
Setting up the share – File Permissions
23
Setting up the share – File Permissions
24
Setting up the share
25
Setting up the share
26
PowerShell MD X:\VMS ICACLS.EXE X:\VMS --% /Grant NTDEV\benarm:(CI)(OI)F ICACLS.EXE X:\VMS --% /Grant NTDEV\benarm-epsilon$:(CI)(OI)F ICACLS.EXE X:\VMS --% /Grant NTDEV\benarm-zeta$:(CI)(OI)F ICACLS.EXE X:\VMS /Inheritance:R New-SmbShare -Name VMS -Path X:\VMS –FullAccess ` NTDEV\benarm, NTDEV\benarm-epsilon$, NTDEV\benarm-zeta$
27
Demo Live Migration - SMB TechReady 14 9/12/2018 10:52 PM
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
28
PowerShell Move-VM "File Server 2" "benarm-zeta"
29
Live Migration and Clusters
Agenda Live Migration and Clusters
30
Live Migration Improvements
Live Migration in Windows Server 2008 R2 is great but how to make it better?
31
Live Migration Improvements
Live Migration in Windows Server 2008 R2 is great but how to make it better? Faster Concurrent live migration Deeper integration into clustering Etc… WSV324: Building a Highly Available Failover Cluster Solution with Windows Server 2012 from the Ground UP
32
Live Migration between clusters
You can move a virtual machine between two clusters Follow these steps: Remove the virtual machine from the source cluster Use Hyper-V Manager to live migrate the virtual machine to a node in the destination cluster Join the virtual machine to the destination cluster Virtual machine never needs to be turned off However, it is not protected from hardware failure during the course of the migration.
33
Live Migration between Clusters
TechReady 14 9/12/ :52 PM Demo Live Migration between Clusters © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
34
Live Migration Security
Agenda Live Migration Security
35
Configuring Live Migration
36
Ensure Live Migration Networks are Secure
Physically Secure IPSec / other encryption options
37
Managing security and authentication
This gets very complicated once more than two computers are involved And sometimes even when there are only two computers involved
38
Understanding credential security
39
Understanding credential security
40
Understanding credential security
41
How this affects Hyper-V
Live Migrate
42
How this affects Hyper-V
Live Migrate Live Migrate
43
How this affects Hyper-V
Live Migrate a VM to me Live Migrate
44
How to make this work? Two options:
Allow user credentials to be shared between the Hyper-V servers – just for the purposes of live migration Enable “Constrained Delegation” in Active Directory Make it look like we are actually logged into the Hyper-V server that starts the live migration PowerShell Remoting Remote Desktop
45
Enabling Constrained Delegation
On the domain controller, open Active Directory Users and Computers. In the console tree, under DomainName, click Computers. Right-click the computer running Hyper-V, and then click Properties. On the Delegation tab, click Trust this computer for delegation to specified services only. Click either Use any authentication protocol or Use Kerberos only. Click Add, and then click Users and Computers. Type the name of the other computer running Hyper-V, and then click OK. From the list of available services, select Microsoft Virtual System Migration Service and CIFS and then click OK.
51
More Resources Taylor Brown’s Blog: Official Documentation:
Official Documentation:
52
PowerShell Remoting with CredSSP
On the server: Enable-WSManCredSSP Server On the client Enable-WSManCredSSP Client –DelegateComputer <FQDN of the server> Establish the session: New-PSSession <FQDN of the Server> -Authentication CredSSP -Credential <User> | Enter-PSSession Or just run a command: ICM <FQDN of the Server> {<command to run>} -Authentication CredSSP -Credential <User>
53
Remote Desktop Hopefully I do not need to tell you how to use this
54
Agenda Storage Migration
55
Storage Migration Move any part of a running virtual machine with no need to turn it off VHDs Config files Snapshots Etc… Perform storage upgrades with no downtime Respond to I/O bottlenecks with no downtime
56
Storage Migration Architecture
9/12/ :52 PM Storage Migration Architecture Hyper-V Virtual Machine VHD Software VHD Source Device Destination Device ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
57
Storage Migration Architecture
9/12/ :52 PM Storage Migration Architecture Hyper-V Virtual Machine Source Device Destination Device VHD VHD Software ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
58
Storage Migration Architecture
9/12/ :52 PM Storage Migration Architecture Hyper-V Virtual Machine Source Device Destination Device VHD VHD Software ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
59
Storage Migration Architecture
9/12/ :52 PM Storage Migration Architecture Hyper-V Virtual Machine Source Device Destination Device VHD VHD Software ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
60
Storage Migration Architecture
9/12/ :52 PM Storage Migration Architecture Hyper-V Virtual Machine VHD Software Source Device Destination Device VHD ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
61
Demo Storage Migration TechReady 14 9/12/2018 10:52 PM
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
62
PowerShell Move-VMStorage "File Server 3" ` -DestinationStoragePath `
"K:\Virtual Machines\File Server 3"
63
Storage Migration – Performance
Data is moved with an un-buffered file copy operation XCOPY /J Causes a lot of I/O churn
64
Configuring Storage Migration
65
Importing virtual machines
Agenda Importing virtual machines
66
Improvements to VM Import
Basic building block of mobility Improvements: Allow you to import a raw XML file Provide ability to “fix up” virtual machine during import
67
Demo Importing a VM TechReady 14 9/12/2018 10:52 PM
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
68
PowerShell PS C:\> Import-VM "C:\Users\benarm\Desktop\Import\76F5DA E75-83ED-FB2F65B56C8F.xml" -Copy -VhdSourcePath "C:\Users\benarm\Desktop\Import" Import-VM : Unable to import virtual machine due to configuration errors. Please use Compare-VM to repair the virtual machine. At line:1 char:1 + import-vm "C:\Users\benarm\Desktop\Import\76F5DA E75-83ED-FB2F65B56C8F.x ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Import-VM], VirtualizationOperationFailedException + FullyQualifiedErrorId : Microsoft.HyperV.PowerShell.Commands.ImportVMCommand
69
PowerShell PS C:\> $VMCompatReport = Compare-vm "C:\Users\benarm\Desktop\Import\76F5DA E75-83ED-FB2F65B56C8F.xml" -Copy -VhdSourcePath "C:\Users\benarm\Desktop\Import" PS C:\> $VMCompatReport VM : Microsoft.HyperV.PowerShell.VirtualMachine OperationType : ImportVirtualMachine Destination : BENARM-EPSILON Path : C:\Users\benarm\Desktop\Import\76F5DA E75-83ED-FB2F65B56C8F.xml SnapshotPath : VhdDestinationPath : C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks VhdSourcePath : C:\Users\benarm\Desktop\Import Incompatibilities : {33012, 14420}
70
PowerShell PS C:\> $VMCompatReport.Incompatibilities | ft message Message Could not find Ethernet switch 'Public'. Cannot assign the specified number of processors for virtual machine 'A random virtual machine' is out of range. The range is 1 through 12. (Virtual machine ID 76F5DA E75-83ED-FB2F65B56C8F)
71
PowerShell PS C:\> Set-VMProcessor -VM $VMCompatReport.VM -count 2 PS C:\> get-vmnetworkadapter -VM $VMCompatReport.VM | disconnect-vmnetworkadapter PS C:\> import-vm $VMCompatReport Name State CPUUsage(%) MemoryAssigned(M) A random virtual machine Off 0 0
72
Comparing Technologies
Agenda Comparing Technologies
73
J L K Live Migration Storage Migration Import / Export Clustering
Zero Downtime Protects against hardware failure Protects against site failure Protects against data corruption Automatic response to failure Workgroup compatible Live Migration J L Storage Migration Import / Export Clustering K Hyper-V Replica Backup
74
Agenda Q & A
75
SIA, WSV, and VIR Track Resources
#TEVIR304 Talk to our Experts at the TLC Hands-On Labs DOWNLOAD Windows Server 2012 Release Candidate microsoft.com/windowsserver DOWNLOAD Microsoft System Center 2012 Evaluation microsoft.com/systemcenter
76
Resources Learning TechNet http://europe.msteched.com
Connect. Share. Discuss. Microsoft Certification & Training Resources TechNet Resources for IT Professionals Resources for Developers
77
Submit your evals online
9/12/ :52 PM Evaluations Submit your evals online © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
78
9/12/ :52 PM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
79
9/12/ :52 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.