{"id":3209,"date":"2023-04-10T23:07:35","date_gmt":"2023-04-10T15:07:35","guid":{"rendered":"https:\/\/dasmz.com\/?p=3209"},"modified":"2023-04-12T21:31:46","modified_gmt":"2023-04-12T13:31:46","slug":"intel-n5105-%e5%9b%9b%e5%8f%a3%e5%b0%8f%e4%b8%bb%e6%9c%ba-%e7%bd%91%e5%8d%a1%e7%9b%b4%e9%80%9a-2023-04-10","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=3209","title":{"rendered":"Intel N5105 \u56db\u53e3\u5c0f\u4e3b\u673a \u7f51\u5361\u76f4\u901a 2023-04-10"},"content":{"rendered":"\n<p><strong>\u4e00\u3001\u9700\u6c42\u63cf\u8ff0<\/strong><\/p>\n\n\n\n<p>Intel N5105 \u4e3b\u673a\u6709\u56db\u4e2a2.5G\u7684\u7f51\u53e3\uff0c\u9700\u8981\u628a\u5176\u4e2d2\u4e2a\u76f4\u901a\u7ed9VM\u865a\u673a\u4f7f\u7528\uff0c\u5982\u4e0b\u662f\u914d\u7f6ePCI\u7f51\u53e3\u76f4\u901a\u7684\u7b80\u5355\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n\n\n\n<p>\u4e8c\u3001<strong>\u7269\u7406\u7f51\u53e3\u76f4\u901a<\/strong><\/p>\n\n\n\n<p>\u5f00\u542fPCI\u76f4\u901a\u529f\u80fd\uff0c\u65b9\u4fbfPVE\u7684\u7269\u7406\u7f51\u53e3\u76f4\u901a<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u4f7f\u7528\u7684GRUB\u5f15\u5bfc\uff0c\u5f53\u524dN5105\uff0c\u662fIntel\u7684CPU\uff0c10nm\u5de5\u827a\uff0c4\u6838\u5fc34\u7ebf\u7a0b\uff0c2.0GHz\uff0c\u6700\u5927\u652f\u6301\u5185\u5b5816GB@2933 MHz\uff0c<\/p>\n\n\n\n<p>1\u3001\u4e3b\u677f\u7684\u865a\u62df\u5316\u529f\u80fd\u5f00\u542f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"Intel Virtualization Technology\"  -&gt; enabled\n\"Memory Remap Feature\"  -&gt; Intel VT-d \/ IOMMU  \n\/\/\/ \u770b\u4e3b\u677f\uff0c\u6709\u7684\u63cf\u8ff0\u4e0d\u4e00\u6837\uff0c\u5982\u679c\u5230\u540e\u9762\uff0c\u53d1\u73b0\u4e0d\u80fd\u76f4\u901a\uff0c\u518d\u8fd4\u56de\u68c0\u67e5\u4e3b\u677fBIOS\u91cc\uff0c\u662f\u4e0d\u662f\u67d0\u4e2aVT-d\/IOMMU\u529f\u80fd\u9009\u9879\u672a\u5f00\u542f\n\n\/\/\/ \u6211\u8fd9\u91cc\u4e70\u7684\u8fd9\u6b3e\uff0c\u4e3b\u677f\u9ed8\u8ba4\u662f\u5f00\u542f\u7684\uff0c\u4e5f\u5c31\u4e0d\u9700\u8981\u8bbe\u7f6e\u4e86<\/pre>\n\n\n\n<p>2\u3001\u5982\u679cPVE\u662f\u4f7f\u7528\u7684GRUB\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 \/etc\/default\/grub<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/\/ If you are using GRUB\nGRUB_CMDLINE_LINUX_DEFAULT=\"quiet intel_iommu=on\"\n\n\/\/\/ Then save the changes and update grub\nupdate-grub<\/pre>\n\n\n\n<p>3\u3001\u52a0\u8f7d\u5fc5\u8981\u7684\u6a21\u5757\uff0c\u4fee\u6539\uff0c\/etc\/modules<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vfio\nvfio_iommu_type1\nvfio_pci\nvfio_virqfd\n\n\/\/\/ Note that in the 5.4 based kernels some of those modules are already built into the kernel directly. 5.4\u7248\u672c\u7684\u5185\u6838\uff0c\u6709\u7684\u6a21\u5757\u5df2\u7ecf\u52a0\u8f7d\u4e86\uff0c\u4e0d\u8fc7\uff0c\u4e3a\u4e86\u4fdd\u9669\u671f\u95f4\uff0c\u8fd9\u51e0\u4e2a\u53ef\u6dfb\u52a0\u4e00\u4e0b<\/pre>\n\n\n\n<p>4\u3001\u91cd\u542f\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">reboot<\/pre>\n\n\n\n<p>5\u3001\u68c0\u67e5\u72b6\u6001<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dmesg | grep -e DMAR -e IOMMU\n\n\/\/\/ There should be a line that looks like \"DMAR: IOMMU enabled\". If there is no output, something is wrong. \u5982\u679c\u663e\u793a DMAR: IOMMU enabled\uff0c\u5219\u8868\u793a\u5f00\u542f\u6210\u529f\uff0c\u5982\u679c\u6709\u5176\u4ed6\u63d0\u793a\uff0c\u4f30\u8ba1\u5c31\u662f\u62a5\u9519\u4e86\u3002<\/pre>\n\n\n\n<p>\u53c2\u8003 PVE\u5b98\u65b9\u6307\u5bfc <a href=\"https:\/\/pve.proxmox.com\/wiki\/PCI_Passthrough\">https:\/\/pve.proxmox.com\/wiki\/PCI_Passthrough<\/a><\/p>\n\n\n\n<p>\u540e\u7eed\u5c31\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0PCI\u76f4\u901a\u7684\u65b9\u5f0f\uff0c\u5c06\u7f51\u53e3\u76f4\u901a\u7ed9\u5c0f\u4e3b\u673a\u5185\u7684VM\uff0c\u4e00\u822c\u5efa\u8bae\u5173\u673a\u72b6\u6001\u6dfb\u52a0\u76f4\u901a\uff0c\u6dfb\u52a0\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728VM\u91cclspci\u770b\u5230\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7ip \u547d\u4ee4\u5339\u914dMAC\u5730\u5740\uff0c\u627e\u5230\u5bf9\u5e94\u7684\u76f4\u901a\u7684\u53e3\u662f\u54ea\u4e00\u4e2a\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u9644\u5f551\u3001<\/strong><\/p>\n\n\n\n<p>\u535a\u5ba2\u5185\uff0c\u6240\u6709\u6559\u7a0b\u4e3a\u624b\u6253\u539f\u521b\u6559\u7a0b\uff0c\u5982\u679c\u6280\u672f\u6559\u7a0b\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u6b22\u8fce\u6253\u8d4f\u4f5c\u8005<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u535a\u5ba2\u5185\u5df2\u63d0\u53ca\u7684\u4e13\u4e1a\u77e5\u8bc6\uff0c\u5982\u679c\u9700\u8981\u6280\u672f\u6307\u5bfc\uff0c\u6b22\u8fce\u8054\u7cfb\u6211\uff0c\u4ec5\u9700\u652f\u4ed8\u5de5\u65f6\u8d39<\/p>\n\n\n\n<p>Twitter: <a href=\"https:\/\/twitter.com\/fdmove\">Dasmz<\/a><\/p>\n\n\n\n<p>Youtube: <a href=\"https:\/\/www.youtube.com\/@DasmzStudio\" data-type=\"URL\" data-id=\"https:\/\/www.youtube.com\/@DasmzStudio\">@DasmzStudio<\/a><\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"446\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2020\/12\/DONATE.jpg\" alt=\"Donate\" class=\"wp-image-18\"\/><figcaption class=\"wp-element-caption\">\u4e91\u4e5e\u8ba8<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u9700\u6c42\u63cf\u8ff0 Intel N5105 \u4e3b\u673a\u6709\u56db\u4e2a2.5G\u7684\u7f51\u53e3\uff0c\u9700\u8981\u628a\u5176\u4e2d2\u4e2a\u76f4\u901a\u7ed9VM\u865a\u673a\u4f7f\u7528\uff0c\u5982\u4e0b\u662f\u914d\u7f6eP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[73,72,74,71],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3209"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3209"}],"version-history":[{"count":2,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3209\/revisions"}],"predecessor-version":[{"id":3214,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3209\/revisions\/3214"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}