{"id":3177,"date":"2023-08-13T17:43:43","date_gmt":"2023-08-13T09:43:43","guid":{"rendered":"https:\/\/sg2cn.tk\/?p=3177"},"modified":"2023-08-14T22:39:26","modified_gmt":"2023-08-14T14:39:26","slug":"%e5%9c%a8-pve-%e8%99%9a%e6%8b%9f%e7%8e%af%e5%a2%83%e4%b8%ad%e5%ae%89%e8%a3%85-openwrt-%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=3177","title":{"rendered":"\u5728 PVE \u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5 OpenWRT \u6d41\u7a0b"},"content":{"rendered":"\n<p>\u4f5c\u8005&nbsp;<em><a href=\"https:\/\/github.com\/Optimus-Xs\">Optimus-Xs<\/a><\/em>   \uff08\u539f\u6587\u5730\u5740\uff1a<a href=\"https:\/\/optimus-xs.github.io\/posts\/install-openwrt-in-pve\/\">https:\/\/optimus-xs.github.io\/posts\/install-openwrt-in-pve\/<\/a> \uff09<\/p>\n\n\n\n<p>\u8f6c\u53d1\u4e8e&nbsp;<em>2023\u5e748\u670813\u65e5<\/em>&nbsp;&nbsp;<em>4 \u5206\u949f<\/em>\u9605\u8bfb<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u524d\u8a00\">\u524d\u8a00<\/h1>\n\n\n\n<p>\u524d\u51e0\u5929\u6361\u5783\u573e\uffe5230\u6dd8\u5230\u4e00\u53f0\u60e0\u666e800G1 SFF \u51c6\u7cfb\u7edf\uff0c\u6b63\u597d\u5bb6\u91cc\u7f3a\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u5c31\u76f4\u63a5\u914d\u4e86\u5757G3250\uff0c\u5148\u5c1d\u8bd5\u88c5\u4e0aPVE\u5b9e\u73b0\u4e00\u6ce2AIO\u670d\u52a1\u5668\uff0c\u8fd9\u7bc7\u6587\u7ae0\u8bb0\u5f55\u4e0b\u5728 pve \u73af\u5883\u4e0b\u6298\u817e openwrt \u7684\u5fc3\u5f97\uff0c\u987a\u4fbf\u5b66\u4e60\u4e0b pve<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u5b89\u88c5-pve\">\u5b89\u88c5 PVE<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728\u5b98\u7f51\u4e2d\u4e0b\u8f7d&nbsp;<a href=\"https:\/\/www.proxmox.com\/en\/downloads\/category\/iso-images-pve\">ISO \u955c\u50cf<\/a><\/li>\n\n\n\n<li>\u70e7\u5f55\u5230 U \u76d8\u4e2d<\/li>\n\n\n\n<li>\u4f7f\u7528U\u76d8\u542f\u52a8<\/li>\n\n\n\n<li>\u5b89\u88c5\uff0c\u5177\u4f53\u53ef\u53c2\u8003<a href=\"https:\/\/www.cxthhhhh.com\/2020\/09\/21\/pure-installation-the-whole-installation-process-of-the-original-proxmox-ve-iso.html\">\u3010\u7eaf\u51c0\u5b89\u88c5\u3011Proxmox-VE ISO\u539f\u7248<\/a>&nbsp;\u5b89\u88c5 \u5168\u8fc7\u7a0b<\/li>\n\n\n\n<li>\u767b\u5f55PVE\u540e\u53f0\uff0c\u5730\u5740\u4e3a https:\/\/IP:8006\uff0c\u91cd\u70b9\uff1ahttps\uff0c\u4f7f\u7528 chrome \u767b\u5f55\u65f6\u56e0\u4e3a\u8bc1\u4e66\u4e0d\u5b89\u5168\u7684\u539f\u56e0\u4f1a\u88ab\u62e6\u622a\uff0c\u9009\u62e9\u4fe1\u4efb<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u4e0b\u8f7d-openwrt-\u955c\u50cf\">\u4e0b\u8f7d OPENWRT \u955c\u50cf<\/h1>\n\n\n\n<p>\u6211\u73b0\u5728\u4f7f\u7528\u7684\u662f\u7528<a href=\"https:\/\/github.com\/coolsnowwolf\/lede\">Lean\u5927\u4ed3\u5e93<\/a>\u6e90\u7801\u624b\u52a8\u7f16\u8bd1\u7684\u7248\u672c\uff0c\u7f16\u8bd1\u8f93\u51fa gz \u683c\u5f0f\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u9700\u8981\u89e3\u538b\u4e3a img \u683c\u5f0f\u7684\u955c\u50cf\u6587\u4ef6<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u5206\u914d\u7f51\u5361\">\u5206\u914d\u7f51\u5361<\/h1>\n\n\n\n<p>\u8def\u7531\u5668\u6700\u91cd\u8981\u7684\u5c31\u662f\u5c06\u7aef\u53e3\u7684\u7f51\u5361\u5206\u914d\u6210 WAN \u53e3\u548c LAN \u53e3\uff0c\u8fd9\u6837\u624d\u80fd\u5f62\u6210\u4e00\u4e2a\u7f51\u7edc\u62d3\u6251\u7ed3\u6784\u3002\u56e0\u4e3a\u6211\u662f\u5728 PVE \u4e2d\u5b89\u88c5\u865a\u62df\u673a\u7684\u65b9\u5f0f\u4f7f\u7528 OPENWRT\uff0c\u6240\u4ee5\u9700\u8981\u5148\u5728 PVE \u4e2d\u5c06\u7f51\u5361\u6620\u5c04\u5230\u865a\u62df\u673a\u4e2d\uff0c\u8def\u7531\u5668\u624d\u80fd\u6b63\u786e\u5206\u914d\u7aef\u53e3\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5b89\u88c5 PVE \u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u5c06 eth0 \u53e3(\u4e5f\u5c31\u662f\u56fe\u4e0a\u7684 enp1s0) \u865a\u62df\u6210\u4e86 vmbr0&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/20210206155524.png\"><\/li>\n\n\n\n<li>\u56e0\u4e3a\u6211\u7684\u670d\u52a1\u5668\u603b\u5171\u67094\u4e2a\u7f51\u5361\uff0c\u6240\u4ee5\u6211\u8fd8\u9700\u8981\u865a\u62df3\u4e2a\u7f51\u5361\u51fa\u6765\uff0c\u548c\u786c\u4ef6\u53e3\u4e00\u4e00\u5bf9\u5e94\uff0c\u6bd4\u5982\u5c06 en2s0 \u865a\u62df\u6210 vmbr1\uff0c\u4ee5\u6b64\u7c7b\u63a8&nbsp;\uff08\u56e0\u4e3a\u6211\u7684\u670d\u52a1\u5668\u67095\u4e2a\u7f51\u53e3\uff0c\u5176\u4e2den1so\u662f\u7ba1\u7406\u53e3\uff0c\u6240\u4ee5\u6211\u7684en2s0\u76f8\u5f53\u4e8e\u662f\u6587\u4e2d\u7684en1s0,\u800c\u6211\u7684en3s0\u76f8\u5f53\u4e8e\u6587\u4e2d\u7684en2s0,\u6240\u4ee5\u6211\u7684en*s0\u6570\u5b57\u6bd4vmbr*\u7684\u6570\u5b57\u5927\u201d2\u201c)<img decoding=\"async\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/telegram-cloud-photo-size-5-6123167585387260669-y.jpg\" alt=\"\">&nbsp;\u6700\u7ec8\u6548\u679c\uff1a&nbsp;<img decoding=\"async\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-02-45.png\" alt=\"\">\u6700\u7ec8\u6548\u679c\uff08<mark style=\"background-color:rgba(0, 0, 0, 0);color:#f33301\" class=\"has-inline-color\">\u6211\u7684<\/mark>\uff09\uff1a<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"196\" class=\"wp-image-3183\" style=\"width: 800px;\" src=\"https:\/\/sg2cn.tk\/wp-content\/uploads\/2023\/08\/\u622a\u5c4f2023-08-13-\u4e0b\u53485.56.32.png\" alt=\"\" srcset=\"https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2023\/08\/\u622a\u5c4f2023-08-13-\u4e0b\u53485.56.32.png 892w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2023\/08\/\u622a\u5c4f2023-08-13-\u4e0b\u53485.56.32-480x117.png 480w, https:\/\/blog.zengqq.com.cn\/wp-content\/uploads\/2023\/08\/\u622a\u5c4f2023-08-13-\u4e0b\u53485.56.32-768x188.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>\u5e94\u7528\u914d\u7f6e&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-04-34.png\">&nbsp;\u5982\u679c\u9047\u5230\u4e86\u8fd9\u4e2a\u9519\u8bef\uff0c\u662f\u56e0\u4e3a\u6ca1\u6709 ifupdown2\uff0c\u9700\u8981\u5728 shell \u4e2d\u6267\u884c<code><\/code>1 apt install -y ifupdown2 <a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-05-23.jpg\"><\/a><\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u521b\u5efaopenwrt\u865a\u62df\u673a\">\u521b\u5efaOPENWRT\u865a\u62df\u673a<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u70b9\u51fb\u53f3\u4e0a\u89d2&nbsp;<code>\u521b\u5efa\u865a\u62df\u673a<\/code><\/li>\n\n\n\n<li>\u4e00\u822c\uff1a\u8f93\u5165\u540d\u79f0\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65 \u6211\u4f7f\u7528\u7684 openwrt\uff0c\u6ce8\u610f VM ID\uff0c\u8fd9\u662f\u4ee5\u540e\u5728 PVE \u4e2d\u64cd\u4f5c\u865a\u62df\u673a\u7684\u5173\u952e&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-07-58.png\"><\/li>\n\n\n\n<li>\u64cd\u4f5c\u7cfb\u7edf\uff1a\u9009\u62e9\u4e0d\u4f7f\u7528\u4efb\u4f55\u4ecb\u8d28\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65<br>\u7a0d\u540e\u518d\u4e0a\u4f20\u955c\u50cf\u6587\u4ef6\uff0c\u56e0\u4e3a\u9700\u8981\u5bf9\u78c1\u76d8\u8fdb\u884c\u4e00\u4e9b\u64cd&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-09-07.png\"><\/li>\n\n\n\n<li>\u7cfb\u7edf\uff1a\u5168\u90e8\u9ed8\u8ba4\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65<\/li>\n\n\n\n<li>\u786c\u76d8\uff1a\u5168\u90e8\u9ed8\u8ba4\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65<\/li>\n\n\n\n<li>CPU\uff1a\u9009\u62e9\u5206\u914d\u7ed9\u865a\u62df\u673a\u7684CPU\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65<br>\u6309\u4e2a\u4eba\u559c\u597d\u5206\u914d CPU \u4e2a\u6570\uff0c\u6211\u5206\u914d\u7684 4 \u4e2a\uff0cCPU \u6743\u91cd\u662f\u5728\u591a\u4e2a\u865a\u62df\u673a\u4e2d\u7ade\u4e89 CPU \u65f6\uff0c\u865a\u62df\u673a\u7684\u4f18\u5148\u7ea7\uff0c\u9ed8\u8ba4\u662f 1024\uff0c\u53ef\u4ee5\u589e\u52a0 OPENWET \u7684\u6743\u91cd\u4fdd\u8bc1\u7f51\u7edc\u901a\u7545&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-16-55.png\"><\/li>\n\n\n\n<li>\u5185\u5b58\uff1a\u6309\u7167\u4e2a\u4eba\u559c\u597d\u5206\u914d\uff0c\u5982\u679c\u53ea\u662f\u5355\u7eaf\u4e0a\u7f51\uff0c1G\u8db3\u77e3<\/li>\n\n\n\n<li>\u7f51\u7edc\uff1a\u6a21\u578b\u9009\u62e9 VirtIO<br>\u6865\u63a5\u7f51\u5361\u968f\u4fbf\u9009\uff0c\u540e\u9762\u4f1a\u5c06\u5168\u90e8\u7f51\u5361\u6dfb\u52a0\u8fdb\u6765&nbsp;<img decoding=\"async\" alt=\"\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-21-07.png\"><\/li>\n\n\n\n<li>\u786e\u8ba4<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u914d\u7f6e\u865a\u62df\u673a\">\u914d\u7f6e\u865a\u62df\u673a<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5206\u79bb\u521b\u5efa\u65f6\u9009\u62e9\u7684\u786c\u76d8&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-24-12.png\"><\/a><\/li>\n\n\n\n<li>\u5220\u9664\u672a\u4f7f\u7528\u7684\u78c1\u76d80\u548cCD\/DVD\u9a71\u52a8\u5668(ide2)&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-25-38.png\"><\/a><\/li>\n\n\n\n<li>\u4e0a\u4f20\u4e4b\u524d\u4e0b\u8f7d\u7684 OPENWRT img \u6587\u4ef6&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-29-01.png\"><\/a><\/li>\n\n\n\n<li>\u62f7\u8d1d\u955c\u50cf\u4e0a\u4f20\u5730\u5740&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-31-56.png\"><\/a><\/li>\n\n\n\n<li>\u5c06 OPENWET \u955c\u50cf\u5bfc\u5165\u78c1\u76d8 \u5728 shell \u4e2d\u6267\u884c \uff1a<code><\/code>1 qm importdisk 100 \/var\/lib\/vz\/template\/iso\/openwrt-buddha-v2_2021_-x86-64-generic-squashfs-uefi.img local-lvm \u56fe\u4e2d\u7b2c\u4e00\u4e2a\u7eff\u6846\u4e2d\u7684 100 \u4e3a\u865a\u62df\u673a\u7684 VM ID\uff0c\u7b2c\u4e8c\u4e2a\u7eff\u6846\u4e3a\u521a\u521a\u4e0a\u4f20\u7684\u955c\u50cf\u5730\u5740<br><a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-34-18.png\"><\/a><\/li>\n\n\n\n<li>\u8bbe\u7f6e\u78c1\u76d8&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-37-42.png\"><\/a><\/li>\n\n\n\n<li>\u8c03\u6574\u5f15\u5bfc\u987a\u5e8f\uff0c\u5c06 sata0 \u78c1\u76d8\u542f\u7528\u5e76\u8c03\u6574\u5230\u7b2c\u4e00\u4f4d&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-42-15.png\"><\/a><\/li>\n\n\n\n<li>\u6dfb\u52a0\u865a\u62df\u7f51\u5361\uff0c\u5c06\u4e4b\u524d\u865a\u62df\u51fa\u6765\u7684\u7f51\u5361\u90fd\u4f9d\u6b21\u6dfb\u52a0\u8fdb\u53bb\uff0c\u8fd8\u662f\u4f7f\u7528 VirtIO \u6a21\u578b&nbsp;<a href=\"https:\/\/cdn.jsdelivr.net\/gh\/jiz4oh\/backups@master\/img\/2021-02-06-16-40-30.png\"><\/a><\/li>\n\n\n\n<li>\u542f\u52a8\u865a\u62df\u673a<\/li>\n<\/ol>\n\n\n\n<p>\u73b0\u5728\u5c31\u53ef\u4ee5\u8fdb\u5165 OPENWRT \u4e86<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u53c2\u8003\">\u53c2\u8003<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.cxthhhhh.com\/2020\/09\/21\/pure-installation-the-whole-installation-process-of-the-original-proxmox-ve-iso.html\">\u3010\u7eaf\u51c0\u5b89\u88c5\u3011Proxmox-VE ISO\u539f\u7248 \u5b89\u88c5 \u5168\u8fc7\u7a0b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.10bests.com\/install-openwrt-lede-on-pve\/\">PVE\u5b89\u88c5Openwrt\/LEDE\u8f6f\u8def\u7531\u4fdd\u59c6\u7ea7\u56fe\u6587\u6559\u7a0b<\/a><\/li>\n<\/ul>\n\n\n\n<p>&nbsp;<a href=\"https:\/\/optimus-xs.github.io\/categories\/tech-projects\/\">Tech Projects<\/a><\/p>\n\n\n\n<p>&nbsp;<a href=\"https:\/\/optimus-xs.github.io\/tags\/openwrt\/\">OpenWRT<\/a>&nbsp;<a href=\"https:\/\/optimus-xs.github.io\/tags\/geekdairy\/\">GeekDairy<\/a>&nbsp;<a href=\"https:\/\/optimus-xs.github.io\/tags\/pve\/\">PVE<\/a><\/p>\n\n\n\n<p>\u672c\u6587\u7531\u4f5c\u8005\u6309\u7167&nbsp;<a href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY 4.0&nbsp;<\/a>\u8fdb\u884c\u6388\u6743<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005&nbsp;Optimus-Xs \uff08\u539f\u6587\u5730\u5740\uff1a [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"class_list":["post-3177","post","type-post","status-publish","format-standard","hentry","category-live"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3177"}],"version-history":[{"count":6,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3177\/revisions"}],"predecessor-version":[{"id":3190,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3177\/revisions\/3190"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}