70-740, Teil 2.1.4. Einrichten virtueller Festplatten

70-740, Teil 2.1.4.

Einrichten virtueller Festplatten

Ideen für die Recherche im Web:

virtuelle festplatte erstellen server 2019

Zum Nachschlagen:

https://msdn.microsoft.com/de-de/library/windows/hardware/dn898535(v=vs.85).aspx

https://it-learner.de/windows-virtuelle-festplatte-erstellen/

https://it-learner.de/mit-der-windows-powershell-eine-virtuelle-festplatte-im-server-2016-anlegen/

https://it-learner.de/eine-neue-virtuelle-festplatte-unter-windows-server-2016-im-hyper-v-manager-erstellen/

https://www.windowspro.de/wolfgang-sommergut/convert-windowsimage-windows-automatisch-einer-vhdx-installieren

https://www.assistanz.com/steps-create-bootable-vhd-hyper-v/

https://msdn.microsoft.com/de-de/library/windows/hardware/mt450468(v=vs.85).aspx

Übungen:

Get-Command *VHD*
Get-WindowsFeature Hyper-V
Get-Help New-VHD -detailed
New-VHD -Path C:\ISOs\VHD1.vhdx -Dynamic -SizeBytes 1TB -PhysicalSectorSizeBytes 4096

###

diskmgmt.msc
#[System.Windows.Forms.SendKeys]::SendWait(‘%t’)
#Start-Sleep 1

###

Start-Process diskpart
help create vdisk
diskpart create vdisk file=C:\ISOs\C2.vhdx maximum=32000 type=FIXED
#create vdisk file=C:\ISOs\C2-1.vhdx maximum=1000000000 type=expandable
select vdisk file=C:\ISOs\C2.vhd
attach vdisk
create partition primary
assign letter=V
ACTIVE
format quick FS=NTFS Label=C2
exit
dir D:\
ls D:\sources\install.wim
dism /Get-WimInfo /wimfile:d:\sources\install.wim
dism /apply-image /imagefile:d:\sources\install.wim /index:4 /applydir:v:\
V:\windows\system32\bcdboot V:\windows /s V:
bcdedit
Start-Process diskpart
select vdisk file=C:\ISOs\C2.vhd
detach vdisk
exit

Get-WindowsFeature Hyper-V
#Install-WindowsFeature Hyper-v -IncludeAllSubFeature -IncludeManagementTools -Restart
$var_VMSwitch1 = Get-VMSwitch
New-VM -VHDPath C:\ISOs\C2.vhd -ComputerName . -Generation 1 -MemoryStartupBytes 4GB -Name C2 -SwitchName $var_VMSwitch1.Name
Set-VM -VMName C2 –AutomaticStartAction Nothing
Start-VM C2
Get-VM