{"id":345,"date":"2024-09-16T12:17:42","date_gmt":"2024-09-16T04:17:42","guid":{"rendered":"http:\/\/www.daimuya.cn:3389\/?p=345"},"modified":"2024-09-16T12:17:42","modified_gmt":"2024-09-16T04:17:42","slug":"hyperv%e7%9b%b4%e9%80%9agpu%e5%88%b0windows","status":"publish","type":"post","link":"http:\/\/www.daimuya.cn:3389\/index.php\/2024\/09\/16\/hyperv%e7%9b%b4%e9%80%9agpu%e5%88%b0windows\/","title":{"rendered":"hyperv\u76f4\u901agpu\u5230windows"},"content":{"rendered":"<p>windows server2022\u4e3a\u4f8b<\/p>\n<p>\u7ba1\u7406\u5458\u8fd0\u884cwindows PoerShell<\/p>\n<p>$vm = &#8220;\u865a\u62df\u673a\u7684\u540d\u5b57&#8221;<\/p>\n<p>Add-VMGpuPartitionAdapter -VMName $vm<\/p>\n<p>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<\/p>\n<p>Set-VM -GuestControlledCacheTypes $true -VMName $vm<\/p>\n<p>Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm<\/p>\n<p>Set-VM -HighMemoryMappedIoSpace 32GB -VMName $vm<\/p>\n<p>\u62f7\u8d1d\u9a71\u52a8\u6587\u4ef6<br \/>\n\u2460\u5bbf\u4e3b\u673a\u9a71\u52a8\u8def\u5f84\uff1aC:\\Windows\\System32\\DriverStore\\FileRepository\\<br \/>\n\u2460\u865a\u62df\u673a\u62f7\u8d1d\u8def\u5f84\uff1aC:\\Windows\\System32\\HostDriverStore\\FileRepository\\<\/p>\n<p>\u5728\u5bbf\u4e3b\u673a\u4e0a\u6253\u5f00\u8bbe\u5907\u7ba1\u7406\uff0c\u627e\u5230\u663e\u793a\u9002\u914d\u5668\u770b\u5230\u663e\u5361\u53f3\u952e\u9a71\u52a8\u7a0b\u5e8f\u8be6\u7ec6\u4fe1\u606f<br \/>\n\u627e\u5230nv_dispswi.inf\u5f00\u5934\u7684\u6587\u4ef6\uff0c<br \/>\n\u6bcf\u4e2a\u4eba\u7684\u7535\u8111\u4e0a\u7684\u5168\u540d\u4e0d\u4e00\u6837<br \/>\n\u6211\u672c\u4eba\u7684\u662fnv_dispswi.inf_amd64_cf3b4fc4e48c2d20<\/p>\n<p>\u7136\u540e\u6253\u5f00\u5bbf\u4e3b\u673a\u9a71\u52a8\u8def\u5f84\uff0c\u5728\u91cc\u9762\u627e\u5230\u547d\u540d\u4e3anv_dispswi.inf_amd64_cf3b4fc4e48c2d20\u7684\u6587\u4ef6\u5939\uff0c\u590d\u5236\u6587\u4ef6\u5939\u5230\u684c\u9762\u4e0a<\/p>\n<p>\u542f\u52a8\u865a\u62df\u673a\uff0c\u5982\u679c\u542f\u52a8\u4e0d\u4e86\u7684\u8bdd\u8bf7\u505a\u4e0b\u9762\u7684\u6b65\u9aa4\uff0c\u5982\u679c\u80fd\u542f\u52a8\uff0c\u5ffd\u7565\u8fd9\u4e2a\u90e8\u5206\uff0c\u5f80\u4e0b\u62c9<\/p>\n<p>\u542f\u52a8\u4e0d\u4e86\u6b65\u9aa4<br \/>\nwin+r \u8f93\u5165regedit\uff0c\u6253\u5f00\u6ce8\u518c\u8868\u7ba1\u7406\u5668<br \/>\n\u6253\u5f00\u4ee5\u4e0b\u76ee\u5f55<br \/>\n\u8ba1\u7b97\u673a\\HKEY LOCAL MACHINE\\SOFTWARE\\Policies\\Microsoft\\indows\\HyperV\u5982\u679c\u5de6\u8fb9\u6ca1\u6709HyperV\uff0c\u5c31\u5728\u5de6\u8fb9Windows\u4f4d\u7f6e\u70b9\u53f3\u952e-\u65b0\u5efa-\u9879\uff0c\u8f93\u5165HyperV<br \/>\n\u53f3\u952e-\u65b0\u5efa-DWord\u9879(32\u4f4d)\u4e24\u4e2a<br \/>\n\u5206\u522b\u8f93\u5165\u6ce8\u610f\u5927\u5c0f\u5199:<br \/>\nRequireSecureDeviceAssignment<br \/>\nRequireSupportedDeviceAssignment<br \/>\n\u53cc\u51fb\u540d\u5b57\uff0c\u770b\u5230\u6570\u503c\u6570\u636e\uff0c\u503c\u90fd\u8bbe\u7f6e\u4e3a0<br \/>\n\u542f\u52a8\u865a\u62df\u673a\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b\u300b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>windows server2022\u4e3a\u4f8b \u7ba1\u7406\u5458\u8fd0\u884cwindows PoerSh &hellip; <a href=\"http:\/\/www.daimuya.cn:3389\/index.php\/2024\/09\/16\/hyperv%e7%9b%b4%e9%80%9agpu%e5%88%b0windows\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":1,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":346,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions\/346"}],"wp:attachment":[{"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daimuya.cn:3389\/index.php\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}