70-740, Teil 5.1.2. Livemigration implementieren

70-740, Teil 5.1.2.

Livemigration implementieren

Ideen für die Recherche im Web:

docs.microsoft.de live migration

Zum Nachschlagen:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/live-migration-overview

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/deploy/set-up-hosts-for-live-migration-without-failover-clustering

Übungen:

$var_PSSession_PM_1=New-PSSession -ComputerName PM -Credential multi\administrator
Invoke-Command -Session $var_PSSession_PM_1 -ScriptBlock {
Get-WindowsFeature hyper-v;
Get-VM wd-* | ft Name, State;
Get-ComputerInfo | ft CsDomain
}
Get-WindowsFeature hyper-v
Get-ComputerInfo | select *domain*
Get-ComputerInfo | ft CsDomain

Get-ADComputer -Filter ‘Name -like “WD” -or Name -like “PM”‘| ft Name

Get-VMHost -ComputerName WD, PM | ft Name, VirtualMachineMigrationEnabled

Enable-VMMigration -ComputerName WD, PM

Get-VMHost -ComputerName WD, PM | ft Name, VirtualMachineMigrationEnabled, MaximumVirtualMachineMigrations, UseAnyNetworkForMigration

Get-VMMigrationNetwork

Set-VMMigrationNetwork 10.3.3.1

Invoke-Command -Session $var_PSSession_PM_1 -ScriptBlock {Set-VMMigrationNetwork 10.10.3.1}

Set-VMHost -UseAnyNetworkForMigration $false -VirtualMachineMigrationAuthenticationType Kerberos

Get-ADComputer -Identity WD | Set-ADAccountControl -TrustedForDelegation:$true

Add-VMMigrationNetwork 10.3.3.1

Get-VMMigrationNetwork | ft

Invoke-Command -Session $var_PSSession_PM_1 -ScriptBlock {
Set-VMHost -UseAnyNetworkForMigration $false -VirtualMachineMigrationAuthenticationType Kerberos;
Get-ADComputer -Identity PM | Set-ADAccountControl -TrustedForDelegation:$true
Add-VMMigrationNetwork 10.10.3.1;
Get-VMMigrationNetwork | ft
}

Get-VMHost -ComputerName WD, PM | ft Name, VirtualMachineMigrationEnabled, MaximumVirtualMachineMigrations, UseAnyNetworkForMigration

Invoke-Command -Session $var_PSSession_PM_1 -ScriptBlock {
Get-VMIntegrationService -VMName pm-core1 | ft Name, Enabled;
Enable-VMIntegrationService -VMName pm-core1 Gastdienstschnittstelle
Get-VMIntegrationService -VMName pm-core1 | ft Name, Enabled;
Set-VMProcessor pm-core1 -CompatibilityForMigrationEnabled $true
}

Set-VMHost -UseAnyNetworkForMigration $true

Start-VM -ComputerName PM -Name pm-core1

Get-VM -ComputerName PM -Name pm-core1

Move-VM -ComputerName PM -Name pm-core1 -DestinationHost WD