{"id":135649,"date":"2020-07-21T14:18:49","date_gmt":"2020-07-21T06:18:49","guid":{"rendered":"http:\/\/4563.org\/?p=135649"},"modified":"2020-07-21T14:18:49","modified_gmt":"2020-07-21T06:18:49","slug":"windows-sandbox-%e5%92%8c-hyper-v-%e7%9a%84%e4%b8%80%e4%ba%9b%e4%b8%8d%e7%90%86%e8%a7%a3%e7%9a%84%e5%9c%b0%e6%96%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=135649","title":{"rendered":"Windows sandbox \u548c hyper-v \u7684\u4e00\u4e9b\u4e0d\u7406\u89e3\u7684\u5730\u65b9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Windows sandbox \u548c hyper-v \u7684\u4e00\u4e9b\u4e0d\u7406\u89e3\u7684\u5730\u65b9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : systemcall <\/span>  <span><i><\/i> 16<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        1. Hyper-V \u7ba1\u7406\u5668\u91cc\u9762\u770b\u4e0d\u5230\u4efb\u4f55 Windows sandbox \u7684\u5f71\u5b50\uff0c\u65e0\u8bba\u6c99\u76d2\u5f00\u542f\u8fd8\u662f\u5173\u95ed\u90fd\u6ca1\u6cd5\u770b\u5230\u3002\u4f46\u662f\u7cfb\u7edf\u91cc\u9762\u4f1a\u770b\u5230 hyper-v \u7684\u865a\u62df\u7f51\u5361\u6709\u7f51\u7edc\u6d3b\u52a8\uff0c\u800c\u4e14\u4e00\u65e6 hyper-v \u65e0\u6cd5\u8fd0\u884c\uff0c\u6c99\u76d2\u5c31\u6253\u4e0d\u5f00<br \/>2. Windows sandbox \u7684 GPU \u865a\u62df\u5316\u5f88\u5947\u602a\u3002\u5e94\u7528\u7a0b\u5e8f\u4f3c\u4e4e\u53ea\u80fd\u8c03\u7528\u5230 1G \u5de6\u53f3\u7684\u663e\u5b58\uff0c\u4e5f\u4f3c\u4e4e\u53ea\u6709 directx \u53ef\u7528\uff0cGPU \u865a\u62df\u5316\u4f3c\u4e4e\u8981\u624b\u52a8\u542f\u7528\uff0c\u6709\u70b9\u7ed5\u3002GPU \u865a\u62df\u5316\u611f\u89c9\u5f88\u50cf RemoteFX\uff0c\u4f46\u662f RemoteFX \u65e9\u5c31\u662f\u5e9f\u5f03\u529f\u80fd\u4e86\u3002\u5e94\u7528\u7a0b\u5e8f\u8bc6\u522b\u5230\u7684\u4e5f\u548c\u6253\u5f00\u4e86\u589e\u5f3a\u4f1a\u8bdd\u7684\u865a\u62df\u673a\u5dee\u4e0d\u591a\uff0c\u4f46\u662f\u6709\u4e2a\u53ef\u4ee5\u5f39\u51fa\u7684 display controller\uff0c\u5f39\u51fa\u4e4b\u540e\u9f20\u6807\u6307\u9488\u65e0\u6cd5\u663e\u793a<br \/>3. \u6c99\u76d2\u7684\u753b\u9762\u662f\u538b\u7f29\u8fc7\u7684\uff0c\u53ef\u4ee5\u770b\u5230\u6bd4\u8f83\u660e\u663e\u7684\u632f\u94c3\u4e4b\u7c7b\u7684\u7455\u75b5\uff0c\u5f88\u50cf RDP<br \/>4. \u57fa\u4e8e RDP \u7684\u4e1c\u897f\uff0c\u900f\u8fc7\u526a\u8d34\u677f\u590d\u5236\u6587\u4ef6\uff0c\u901f\u5ea6\u63a5\u8fd1 USB2.0 \u901f\u5ea6\u7684\u4e0a\u9650\u3002\u800c\u4e14\u65e0\u8bba\u662f\u5426\u652f\u6301 USB \u91cd\u5b9a\u5411\uff0c\u90fd\u4f1a\u6709\u865a\u62df\u7684 USB hub \u7b49\u8bbe\u5907<br \/>5.\u6c99\u76d2\u5bf9 dxinput \u4f3c\u4e4e\u517c\u5bb9\u6709\u95ee\u9898\uff0c\u90e8\u5206\u6e38\u620f\u91cc\u9762\u79fb\u52a8\u8d77\u6765\u975e\u5e38\u5feb<br \/>6. \u6c99\u76d2\u4f3c\u4e4e\u4f1a\u4f7f\u7528\u78c1\u76d8 0\uff0c\u54ea\u6015\u78c1\u76d8 0 \u7528\u6237\u57fa\u672c\u4e0a\u4e0d\u7528\uff0c\u4e0d\u6e05\u695a\u5230\u5e95\u662f\u600e\u4e48\u5728\u8c03\u7528\u786c\u76d8\uff0c\u611f\u89c9\u771f\u7684\u5f88\u5947\u602a\uff0c\u5bbf\u4e3b\u673a\u91cc\u9762\u770b\u5230\u7684\u6587\u4ef6 IO \u4e5f\u5f88\u5947\u602a<br \/>7. \u6c99\u76d2\u4f1a\u901a\u8fc7 NAT \u8bbf\u95ee\u7f51\u7edc\uff0c\u800c\u4e14\u53ea\u6709 IPV4 \u3002\u6709\u65f6\u5019\u4f1a\u591a\u51fa\u6765\u4e00\u4e2a Hvsils\uff0c\u4f46\u662f\u57fa\u672c\u4e0a\u4e0d\u4f1a\u6709\u7f51\u7edc IO<br \/>8.\u6c99\u76d2\u7684\u7f51\u7edc IO \u6027\u80fd\u611f\u89c9\u4e0d\u592a\u597d\uff0c\u5dee\u4e0d\u591a 2-3Gbps\uff0c\u5c31\u6709\u5f88\u9ad8\u7684 CPU \u5360\u7528\u4e86<br \/>9.\u5e94\u7528\u7a0b\u5e8f\u9632\u62a4\u6a21\u5f0f\u4e0b\u7684 edge \u6ce8\u9500\u624d\u4f1a\u5012\u6c99<br \/>10. \u7535\u8111\u628a RDP USB \u91cd\u5b9a\u5411\u65b9\u9762\u7684\u529f\u80fd\u6253\u5f00\uff0c\u6c99\u76d2\u4e0a\u4f1a\u51fa\u73b0\u65e0\u6cd5\u70b9\u51fb\u7684\u76f8\u5173\u56fe\u6807\uff0c\u4f46\u662f hyper-v \u4e0d\u4f1a<br \/>\u624b\u673a\u7801\u5b57\uff0c\u6682\u65f6\u53ea\u60f3\u5230\u4e86\u8fd9\u4e9b\u3002\u660e\u5929\u8fd8\u8981\u53bb\u5de5\u5382\u6253\u5de5\uff0c\u4ee5\u540e\u60f3\u5230\u4e86\u518d\u8865\u5145      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2440120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8865\u5145\u4e00\u4e2a\uff0csnadbox \u4f1a\u65b0\u5efa\u4e00\u4e2a\u9690\u85cf\u5206\u533a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2440121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : systemcall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman \u4e0d\u662f\u4e00\u4e2a\u9690\u85cf\u5206\u533a\uff0c\u800c\u662f\u4e00\u4e2a\u53ef\u4ee5\u5728\u5c5e\u5bbf\u4e3b\u91cc\u770b\u5230\u9690\u85cf\u5206\u533a\u7684\u865a\u62df\u7684\u78c1\u76d8\u9a71\u52a8\u5668<br \/>\u5b9e\u9645\u4e0a\u786c\u76d8\u7684\u5206\u533a\u8868\u6ca1\u6709\u53d8\u5316\uff0c\u800c\u4e14\u5bb9\u91cf\u4e5f\u6ca1\u6709\u5c11\u6389 8GB \u3002\u865a\u62df\u673a\u7684\u78c1\u76d8 IO \u4e5f\u4e0d\u662f\u5168\u5728\u7cfb\u7edf\u6240\u5728\u7684\u78c1\u76d8\u4e0a\uff0c\u6211\u89c2\u5bdf\u5230\u7684\u73b0\u8c61\u662f\u4f1a\u5bf9\u78c1\u76d8 0 \u4ea7\u751f\u5b9e\u9645\u7684\u8bfb\u5199\uff0c\u4f46\u662f\u8d44\u6e90\u76d1\u89c6\u5668\u91cc\u9762\u770b\u5230\u7684\u662f\u5728%Profile Data%\u4e0b\u6709\u660e\u663e\u7684\u78c1\u76d8 IO\uff0c\u4e0d\u8fc7\u8d44\u6e90\u76d1\u89c6\u5668\u4f3c\u4e4e\u4e0d\u80fd\u6355\u83b7\u5230 Hyper-V \u81ea\u5df1\u7684\u6d3b\u52a8\u7684\u4fe1\u606f\uff0c\u5fae\u8f6f\u81ea\u5df1\u8bf4 Hyper-V \u662f\u4e00\u7c7b\u865a\u62df\u673a\uff0c\u5f00\u542f\u4e86 Hyper-V \u4e4b\u540e\u201c\u5bbf\u4e3b\u201d\u4e5f\u662f\u8dd1\u5728 Hyper-V \u4e0a\u7684\uff0c\u800c\u4e14\u6211\u89c2\u5bdf\u5230\u4e00\u4e9b\u6d89\u53ca\u786c\u4ef6\u7684\u884c\u4e3a\u786e\u5b9e\u6709\u533a\u522b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2440122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @systemcall \u6211\u7406\u89e3 hyper-v \u662f\u548c esxi \u4e4b\u7c7b\u5dee\u4e0d\u591a\u7684\u4e1c\u897f\uff0c\u63a5\u7ba1\u6574\u4e2a\u5e95\u5c42                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2440123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : systemcall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman \u4f46\u662f esxi \u91cc\u9762\u8dd1\u7684 OS\uff0c\u662f\u4e0d\u80fd\u591f\u76f4\u63a5\u63a5\u89e6\u5f88\u591a\u786c\u4ef6\u7684\uff0c\u8fd9\u4e9b\u4e1c\u897f\u88ab esxi \u63a5\u7ba1\u4e86<br \/>hyper-v \u6ca1\u8fd9\u4e2a\u95ee\u9898\uff0c\u4e5f\u8bb8\u662f\u900f\u4f20\u4e86\u76f8\u5173\u7684\u6307\u4ee4\uff0c\u4e0d\u6e05\u695a\u662f\u600e\u4e48\u505a\u5230\u7684\u3002\u4f46\u662f\u884c\u4e3a\u8fd8\u662f\u6709\u4e9b\u533a\u522b\uff0c\u800c\u4e14\u66f4\u5927\u7a0b\u5ea6\u4e0a\u662f\u548c\u6027\u80fd\u76f8\u5173\uff0c\u6bd4\u5982\u5185\u5b58\u6027\u80fd\u4f1a\u663e\u8457\u964d\u4f4e\u3002\u611f\u89c9\u6709\u70b9\u50cf\u7f29\u7259\u818f\u7684\u90a3\u4ef6\u4e8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Windows sandbox \u548c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135649"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135649"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135649\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135649"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}