Created
January 27, 2025 05:08
-
-
Save 0d129/ccdebbe9d986eb0c0c1a1dfd1c4cff29 to your computer and use it in GitHub Desktop.
Revisions
-
0d129 created this gist
Jan 27, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ enable vm gpu passthrouogh.ps1 ``` powershell $vm = "New Virtual Machine" Add-VMGpuPartitionAdapter -VMName $vm Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 80000000 -MaxPartitionVRAM 100000000 -OptimalPartitionVRAM 100000000 -MinPartitionEncode 80000000 -MaxPartitionEncode 100000000 -OptimalPartitionEncode 100000000 -MinPartitionDecode 80000000 -MaxPartitionDecode 100000000 -OptimalPartitionDecode 100000000 -MinPartitionCompute 80000000 -MaxPartitionCompute 100000000 -OptimalPartitionCompute 100000000 Set-VM -GuestControlledCacheTypes $true -VMName $vm Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm Set-VM -HighMemoryMappedIoSpace 32GB -VMName $vm ``` disable vm gpu passthrouogh.ps1 ``` powershell $vm = "New Virtual Machine" Get-VMGpuPartitionAdapter $vm Remove-VMGpuPartitionAdapter -VMName $vm ```