#Create new virtual disks for VMFleet by running this command:
Get-ClusterNode |% { New-Volume -StoragePoolFriendlyName S2D* -FriendlyName $_ -FileSystem CSVFS_ReFS -Size 300GB}
#Create new volume for VMFleet files with friendly name Collect:
New-Volume -StoragePoolFriendlyName S2D* -FriendlyName Collect -FileSystem CSVFS_ReFS -Size 500GB
#Install VMFleet by running the following one-liner:
.\install-vmfleet.ps1 -Source C:\VMFleet\diskspd-master\diskspd-master\Frameworks\VMFleet
#Copy the DISKSPD.exe to the Tools folder:
Copy-Item c:\diskspd\diskspd.exe -Destination c:\clusterstorage\collect\control\tools
#Copy gold image (VHDX) with Windows Server 2016 Core (not sysprepped) to the Collect folder:
Copy-Item C:\ClusterStorage\Volume03_test\VMFleet-Gold\VMFleet-Gold_disk_1.vhdx -Destination C:\ClusterStorage\Collect
# Run update-csv.ps1 script to manage the placement of CSV volumes and VMs per a naming convention.
# This script also changes ownership of test CSV volumes if required.
.\update-csv.ps1 -renamecsvmounts $true
# Start creating VMs for VMfleet environment.
# In the following example, 15 VMs will be created on each host,
# adminpass represents my local administrator password used in the gold image
# connectuser and connectpass are credentials with cluster management rights:
.\create-vmfleet.ps1 -basevhd 'C:\ClusterStorage\Collect\VMFleet-Gold_disk_1.vhdx'-vms 15 `
-adminpass 'Pass123' -connectuser 'DOMAIN\USER' -connectpass "SAFEPASSWORD"
#Once VMs are created, change their configuration if required:
.\set-vmfleet.ps1 -ProcessorCount 2 -MemoryStartupBytes 4GB `
-MemoryMinimumBytes 4GB -MemoryMaximumBytes 4GB
Schreibe einen Kommentar