$vm
=
"win1124h2"
Get
-
VMHostPartitionableGpu
Get
-
VMGpuPartitionAdapter
-
VMName $vm
Remove
-
VMGpuPartitionAdapter
-
VMName $vm
/
/
Get
-
VMHostPartitionableGpu 获取到的InstancePath
Add
-
VMGpuPartitionAdapter
-
VMName win1124h2
-
InstancePath
"\\?\PCI#VEN_8086&DEV_46A6&SUBSYS_0B711028&REV_0C#3&11583659&0&10#{064092b3-625e-43bf-9eb5-dc845897dd59}\GPUPARAV"
Get
-
VMGpuPartitionAdapter
-
VMName $vm
得到
id
=
"Microsoft:2F56A6A7-BDAE-4DF5-8D80-7B6B4832D3A9\1E7C0320-8344-4E07-89A0-F25E2D745B01"
Set
-
VMGpuPartitionAdapter
-
VMName $vm
-
AdapterId
"Microsoft:2F56A6A7-BDAE-4DF5-8D80-7B6B4832D3A9\1E7C0320-8344-4E07-89A0-F25E2D745B01"
-
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
打开沙盒复制C:\Windows\system32\HostDriverStore到虚拟机