70-740, Teil 3.1.8. Geschachtelte Virtualisierung implementieren

70-740, Teil 3.1.8. Geschachtelte Virtualisierung implementieren

Ideen für die Recherche im Web:

technet Geschachtelte Virtualisierung

Verschachtelte Virtualisierung

Zum Nachschlagen:

https://docs.microsoft.com/de-de/virtualization/hyper-v-on-windows/user-guide/nested-virtualization

https://docs.microsoft.com/en-us/powershell/module/dism/get-windowsoptionalfeature?view=win10-ps

https://technet.microsoft.com/de-de/library/hh848537.aspx

Übungen:

Get-VM

#Bei Bedarf
#Stop-VM -Name adN1 -Confirm -Force
#Get-VM

Get-VMProcessor -VMName * | ft VMName, ExposeVirtualizationExtensions

Set-VMProcessor -VMName adN1 -ExposeVirtualizationExtensions $true

Get-VMProcessor -VMName adN1 | ft VMName, ExposeVirtualizationExtensions

Get-VMMemory adN1 | ft VMName, DynamicMemoryEnabled

#Bei Bedarf
#Set-VMMemory adN1 -DynamicMemoryEnabled $false
#Get-VMMemory adN1 | ft VMName, DynamicMemoryEnabled

Get-VMMemory -VMName adN1 | fl VMName, Startup
#Bei Bedarf
#Mindestens 4GB
#Set-VM -name adN1 –MemoryStartupBytes 8GB

Get-VMNetworkAdapter -VMName adN1 | ft VMName, MacAddressSpoofing
#Bei Bedarf
#Get-VMNetworkAdapter -VMName adN1 | Set-VMNetworkAdapter -MacAddressSpoofing On
#Get-VMNetworkAdapter -VMName adN1 | ft VMName, MacAddressSpoofing

Start-VM -Name adN1 -Confirm

Get-VM -Name adN1

Enter-PSSession -VMName adN1

#Bei Core oder GUI
#Get-WindowsFeature *Hyper-V*
#Install-WindowsFeature -Name Hyper-V -ComputerName wd2016core.kaffee.pause -IncludeManagementTools
#Restart-Computer

#Bei Nano
#Get-WindowsOptionalFeature -Online
#Get-WindowsOptionalFeature -Online -FeatureName *Hyper-V*
#Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
#Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V | ft FeatureName, State
#Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online -All
#Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V | ft FeatureName, State
#Restart-Computer

New-VM -NewVHDPath adN1N1.vhdx -NewVHDSizeBytes 32GB -Generation 2 -MemoryStartupBytes 1GB -Name adN1N1

dir C:\

mkdir C:\ISOs

Exit-PSSession

dir C:\ISOs\Windows2016.ISO

ping adN1

net use H: \\adN1 \c$

dir H:\
#mkdir H:\ISOs

dir H:\ISOs

copy C:\ISOs\Windows2016.ISO H:\ISOs

dir H:\ISOs

Copy-VMFile -Name adN1 -SourcePath „C:\ISOs\Windows2019.ISO“ -DestinationPath „C:\ISOs\Windows2019.ISO“ -CreateFullPath -FileSource Host

Invoke-Command -ComputerName adN1 -ScriptBlock {dir C:\ISOs\}