{"id":2736,"date":"2024-01-20T17:19:50","date_gmt":"2024-01-20T09:19:50","guid":{"rendered":"https:\/\/divis.cn\/?p=2736"},"modified":"2026-02-08T11:33:27","modified_gmt":"2026-02-08T03:33:27","slug":"%e5%ae%9e%e9%aa%8c%e5%ae%a4gpu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%85%b1%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/www.divis.cn\/index.php\/2024\/01\/20\/%e5%ae%9e%e9%aa%8c%e5%ae%a4gpu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%85%b1%e4%ba%ab\/","title":{"rendered":"\u5b9e\u9a8c\u5ba4GPU\u670d\u52a1\u5668\u7684\u5171\u4eab"},"content":{"rendered":"<h1>\u6211\u4eec\u7684\u9700\u6c42<\/h1>\n<p>\u5728\u8d2d\u4e70\u4e86\u4e00\u53f0\u53554090\u9876\u914d\u6e38\u620f\u673a\u540e\uff0c\u63a5\u4e0b\u6765\u7684\u95ee\u9898\u662f\u5982\u4f55\u5c06\u8fd9\u4e00\u53f0\u7535\u8111\u5206\u914d\u7ed9\u591a\u4e2a\u5b66\u751f\u4f7f\u7528\u3002\u6211\u7684\u5fae\u578b\u56e2\u961f\u6df1\u5ea6\u5b66\u4e60\u624d\u521a\u521a\u5165\u95e8\uff0c\u5b66\u751f\u5927\u591a\u6570\u65f6\u95f4\u90fd\u82b1\u5728\u914d\u73af\u5883\u8c03\u4ee3\u7801\u9636\u6bb5\u3002\u867d\u7136\u5982\u6b64\uff0c\u914d\u73af\u5883\u8c03\u4ee3\u7801\u4e5f\u662f\u6781\u5176\u8017\u8d39\u65f6\u95f4\u7684\uff0c\u4e0d\u53ef\u80fd\u8ba9\u5b66\u751f\u4e00\u4e2a\u4e00\u4e2a\u8f6e\u6d41\u5750\u5230\u7535\u8111\u524d\u64cd\u4f5c\u3002\u56e0\u6b64\uff0c\u9700\u8981\u7ed9\u6bcf\u4e2a\u5b66\u5206\u914d\u72ec\u7acb\u7684\u5f00\u53d1\u73af\u5883\u5e76\u4e14\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95eeCPU\u8d44\u6e90\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6bcf\u4e2a\u5b66\u751f\u7684\u5b9e\u9645\u4f7f\u7528\u4f53\u9a8c\u7c7b\u4f3c\u4e8e\u7f51\u4e0a\u79df\u7528GPU\u4e91\u4e3b\u673a\u3002\u5177\u4f53\u800c\u8a00\uff0c\u6211\u4eec\u7684\u9700\u6c42\u53ef\u4ee5\u6982\u62ec\u4e3a\u4ee5\u4e0b5\u70b9\uff1a<\/p>\n<ol>\n<li>\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u5355\u72ec\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4e92\u4e0d\u5f71\u54cd<\/li>\n<li>\u6bcf\u4e2a\u7528\u6237\u53ef\u4ee5\u53ef\u76f4\u63a5\u8c03\u7528GPU<\/li>\n<li>\u7528\u6237\u5bf9\u81ea\u5df1\u7684\u73af\u5883\u62e5\u6709\u6700\u9ad8\u6743\u9650<\/li>\n<li>\u7528\u6237\u7684\u5f00\u53d1\u73af\u5883\u914d\u7f6e\u51fa\u4e86\u95ee\u9898\u5220\u6389\u4e0d\u5fc3\u75bc\uff0c\u53ef\u4ee5\u968f\u65f6\u590d\u5236\u65b0\u73af\u5883<\/li>\n<li>\u8fdc\u7a0b\u767b\u5f55\u8bbf\u95ee\u8db3\u591f\u65b9\u4fbf<\/li>\n<\/ol>\n<h1>\u65b9\u6848\u9009\u578b<\/h1>\n<p>\u90a3\u4e48\u5177\u4f53\u600e\u4e48\u505a\u624d\u80fd\u505a\u5230\u8fd9\u6837\u7684\u5206\u914d\u5462\uff1f\u5927\u81f4\u6709\u4e09\u79cd\u65b9\u6848\uff1a<\/p>\n<ol>\n<li>linux\u7cfb\u7edf\u7684\u539f\u751f\u591a\u7528\u6237\u73af\u5883<\/li>\n<li>linux\u7cfb\u7edf\u4e0bvmware\u865a\u62df\u673a<\/li>\n<li>linux\u7cfb\u7edf\u4e0bLXD\u865a\u62df\u673a<\/li>\n<\/ol>\n<p>\u5176\u4e2d\uff0c\u6d59\u5927\u65f6\u7528\u76848\u53613090\u670d\u52a1\u5668\u5c31\u662f\u91c7\u7528\u65b9\u68481\u8fdb\u884c\u7ba1\u7406\u7684\u3002\u5177\u4f53\u7684\u8bf4\uff0c\u662f\u5148\u88c5\u4e00\u4e2alinux server\u65e0\u684c\u9762\u7248\uff0c\u7136\u540e\u6309\u7167linux\u7684\u4e00\u822c\u65b9\u5f0f\u8bbe\u7f6e\u5404\u79cd\u7528\u6237\u548c\u6743\u9650\u3002\u7528\u6237\u672c\u8eab\u7684\u73af\u5883\u662f\u4e92\u76f8\u72ec\u7acb\u7684\uff0c\u4f46\u662f\u6709\u5171\u4eab\u6587\u4ef6\u5939\u3002\u670d\u52a1\u5668\u672c\u8eab\u7684\u663e\u5361\u9a71\u52a8\u662f\u7edf\u4e00\u5b89\u88c5\u7684\uff0c\u666e\u901a\u7528\u6237\u4e0d\u80fd\u66f4\u65b0\u3002\u4f7f\u7528SSH\u8fdc\u7a0b\u767b\u5f55\u8fdb\u884c\u63a7\u5236\u3002\u8fd9\u79cd\u65b9\u6848\u7684\u597d\u5904\u662f\u914d\u7f6e\u6bd4\u8f83\u7b80\u5355\uff1b\u574f\u5904\u4e00\u662fanaconda\u7248\u672c\u6709\u9650\u5236\uff0ccuda driver\u7248\u672c\u4e0d\u80fd\u968f\u4fbf\u66f4\u65b0\u3002\u4e8c\u662f\u6bcf\u4e2a\u666e\u901a\u7528\u6237\u6743\u9650\u6bd4\u8f83\u4f4e\uff0c\u4e0d\u80fd\u8fd0\u884capt, sudo\u4e4b\u7c7b\u7684\u547d\u4ee4\u3002\u5f53\u7136\u8fd9\u4e5f\u662f\u4e00\u79cd\u4fdd\u62a4\u63aa\u65bd\uff0c\u4f46\u662f\u9047\u5230\u4e00\u4e9b\u4e0d\u592a\u597d\u914d\u7684\u73af\u5883\uff0c\u5bf9\u4e8e\u83dc\u9e1f\u800c\u8a00\u5c31\u4e0d\u597d\u529e\u4e86\u3002\u603b\u4e4b\u5bf9\u4e8e\u6211\u4eec\u7684\u4e94\u70b9\u8bc9\u6c42\uff0c\u5176\u4e0d\u80fd\u5b8c\u5168\u6ee1\u8db3\u3002<\/p>\n<table style=\"box-sizing: inherit; border-spacing: 0px; border-collapse: collapse; margin-top: 1.5em; margin-bottom: 1.5em; width: 613px; border: none; table-layout: auto; color: #202020; font-family: Raleway, Arial, Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-size: 12px; height: 121px;\" data-startcell=\"1:0\">\n<tbody style=\"box-sizing: inherit;\">\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">1<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u5355\u72ec\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4e92\u4e0d\u5f71\u54cd<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">2<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u53ef\u4ee5\u53ef\u76f4\u63a5\u8c03\u7528GPU<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">3<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u5bf9\u81ea\u5df1\u7684\u73af\u5883\u62e5\u6709\u6700\u9ad8\u6743\u9650<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">X<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">4<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u7684\u5f00\u53d1\u73af\u5883\u914d\u7f6e\u51fa\u4e86\u95ee\u9898\u5220\u6389\u4e0d\u5fc3\u75bc\uff0c\u53ef\u4ee5\u968f\u65f6\u590d\u5236\u65b0\u73af\u5883<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">X<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">5<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u8fdc\u7a0b\u767b\u5f55\u8bbf\u95ee\u8db3\u591f\u65b9\u4fbf<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c\u4e8c\u4e2a\u65b9\u6848\u662f\u4f7f\u7528\u7ecf\u5178\u7684VMware\u865a\u62df\u673a\u8f6f\u4ef6\u5206\u914d\u865a\u62df\u673a\uff0c\u8fd9\u662f\u6211\u8bfb\u7814\u7a76\u751f\u535a\u58eb\u7684\u65f6\u5019\u5e38\u7528\u65b9\u6cd5\u3002\u597d\u5904\u662f\u6bcf\u4e2a\u865a\u62df\u673a\u7684\u7528\u6237\u90fd\u6709\u5b8c\u6574\u6743\u9650\u5e76\u4e14\u76f8\u4e92\u9694\u79bb\uff0c\u5c31\u7b97\u641e\u5d29\u4e86\u4e5f\u4e0d\u5f71\u54cd\u522b\u4eba\u3002\u4f46\u662f\uff0c\u6d88\u8d39\u7ea7NVIDIA\u663e\u5361\u5e76\u4e0d\u80fd\u76f4\u63a5\u5728vmware\u865a\u62df\u673a\u4e2d\u8fd0\u884c\u3002\u865a\u62df\u673a\u60f3\u7528\u663e\u5361\u6709\u4e24\u79cd\u529e\u6cd5\uff1a\u4e00\u79cd\u662f\u865a\u62df\u663e\u5361\uff0c\u597d\u914d\u7f6e\u4f46\u65e0\u6cd5\u542f\u7528cuda\uff0c\u7b49\u4e8e\u6ca1\u7528\uff1b\u53e6\u4e00\u79cd\u662f\u76f4\u901a\u578b\u663e\u5361\uff0c\u9690\u85cf\u865a\u62df\u673a\u5c5e\u6027\u7136\u540e\u8ba9\u865a\u62df\u673a\u4f7f\u7528\u663e\u5361\u3002\u4f46\u662f\u8fd9\u6837\u64cd\u4f5c\u5bbf\u4e3b\u673a\u5fc5\u987b\u5b89\u88c5vmware EXSI\u7248\u672c\uff0c\u666e\u901a\u7248\u672c\u7684vmware workstation\u90fd\u4e0d\u884c\uff0c\u5177\u4f53\u914d\u7f6e<a href=\"https:\/\/juejin.cn\/post\/7080874302723063816\">\u8be6\u89c1\u6b64\u6587\u6863\u3002<\/a>\u800c\u4e14\u591a\u4e2a\u865a\u62df\u673a\u4e4b\u95f4\u8fd8\u9700\u8981\u624b\u52a8\u8c03\u6362GPU\u4f7f\u7528\u6743\u3002\u603b\u4e4b\uff0c\u4f7f\u7528vmware\u865a\u62df\u673a\u505aGPU\u5171\u4eab\uff0c\u6211\u4eec\u5c1d\u8bd5\u540e\u53d1\u73b0\u9650\u5236\u7279\u522b\u591a\uff0c\u53ea\u80fd\u653e\u5f03\u3002<\/p>\n<table style=\"box-sizing: inherit; border-spacing: 0px; border-collapse: collapse; margin-top: 1.5em; margin-bottom: 1.5em; width: 613px; border: none; table-layout: auto; color: #202020; font-family: Raleway, Arial, Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-size: 12px; height: 121px;\" data-startcell=\"1:0\">\n<tbody style=\"box-sizing: inherit;\">\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">1<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u5355\u72ec\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4e92\u4e0d\u5f71\u54cd<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">2<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u53ef\u4ee5\u53ef\u76f4\u63a5\u8c03\u7528GPU<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u9ebb\u70e6<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">3<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u5bf9\u81ea\u5df1\u7684\u73af\u5883\u62e5\u6709\u6700\u9ad8\u6743\u9650<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">4<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u7684\u5f00\u53d1\u73af\u5883\u914d\u7f6e\u51fa\u4e86\u95ee\u9898\u5220\u6389\u4e0d\u5fc3\u75bc\uff0c\u53ef\u4ee5\u968f\u65f6\u590d\u5236\u65b0\u73af\u5883<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">5<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u8fdc\u7a0b\u767b\u5f55\u8bbf\u95ee\u8db3\u591f\u65b9\u4fbf<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c\u4e09\u4e2a\u65b9\u6848\u662f\u4f7f\u7528LXD\uff08Linux Container Daemon\uff09\u3002LXD\u662fLinux\u64cd\u4f5c\u7cfb\u7edf\u5bb9\u5668\u7684\u7ba1\u7406\u5de5\u5177\uff0c\u662f\u4ecb\u4e8evmware\u865a\u62df\u673a\u548cdocker\u5bb9\u5668\u4e4b\u95f4\u7684\u4e00\u79cd\u5bb9\u5668\u3002\u4ece\u5386\u53f2\u4e0a\u770b\uff0cLXD \u7684\u524d\u8eabLXC\u4e5f\u662f\u6d41\u884c\u7684\u865a\u62df\u5316\u6280\u672fDocker\u7684\u57fa\u7840\u3002LXD\u548cDocker\u7684\u4e3b\u8981\u533a\u522b\u662fDocker\u662f\u5e94\u7528\u7a0b\u5e8f\u5bb9\u5668\uff0c\u800cLXD\u5305\u62ec\u5b8c\u6574\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u6240\u4ee5\u4f7f\u7528LXD\u53ef\u4ee5\u50cfvmware\u865a\u62df\u673a\u90a3\u6837\u62e5\u6709\u5b8c\u6574\u6743\u9650\u5730\u64cd\u4f5c\uff0c\u540c\u65f6\u5c31\u7b97\u73af\u5883\u914d\u7f6e\u5931\u8d25\u4e5f\u53ef\u4ee5\u65e0\u538b\u529b\u5730\u5220\u9664\u4ee5\u540e\u518d\u88c5\u4e00\u4e2a\u3002\u6700\u540eLXD\u5b8c\u5168\u4f9d\u8d56\u4e8elinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5bf9\u663e\u5361\u7684\u652f\u6301\u8fdc\u6bd4vmware\u6765\u7684\u597d\u3002\u56e0\u6b64\u6700\u540e\u6211\u9009\u62e9\u4e86\u8fd9\u4e2a\u65b9\u6848\u3002<\/p>\n<table style=\"box-sizing: inherit; border-spacing: 0px; border-collapse: collapse; margin-top: 1.5em; margin-bottom: 1.5em; width: 613px; border: none; table-layout: auto; color: #202020; font-family: Raleway, Arial, Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; font-size: 12px; height: 121px;\" data-startcell=\"1:0\">\n<tbody style=\"box-sizing: inherit;\">\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">1<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u5355\u72ec\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4e92\u4e0d\u5f71\u54cd<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">2<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u6bcf\u4e2a\u7528\u6237\u53ef\u4ee5\u53ef\u76f4\u63a5\u8c03\u7528GPU<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">3<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u5bf9\u81ea\u5df1\u7684\u73af\u5883\u62e5\u6709\u6700\u9ad8\u6743\u9650<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">4<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u7528\u6237\u7684\u5f00\u53d1\u73af\u5883\u914d\u7f6e\u51fa\u4e86\u95ee\u9898\u5220\u6389\u4e0d\u5fc3\u75bc\uff0c\u53ef\u4ee5\u968f\u65f6\u590d\u5236\u65b0\u73af\u5883<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<tr style=\"box-sizing: inherit; height: 24px;\">\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">5<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u8fdc\u7a0b\u767b\u5f55\u8bbf\u95ee\u8db3\u591f\u65b9\u4fbf<\/td>\n<td style=\"box-sizing: inherit; padding: 0.3em 0.6em; border-image: initial; border: 1px solid var(--light-border-color);\">\u221a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"https:\/\/img.divis.cn\/2024\/01\/image.png\" width=\"1156\" height=\"652\" \/><\/p>\n<h1>LXD\u5177\u4f53\u5b89\u88c5\u548c\u4f7f\u7528<\/h1>\n<p>\u6211\u4eec\u662f\u53c2\u8003\u4ee5\u4e0b\u6587\u6863\u5b89\u88c5\u90e8\u7f72\uff1a<\/p>\n<div class=\"lake-content\">\n<p id=\"ufc1e5d20\" class=\"ne-p\" style=\"margin: 0; padding: 0; min-height: 24px;\"><a class=\"ne-link\" href=\"https:\/\/www.shenxiaohai.me\/gpu-server-lab\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/www.shenxiaohai.me\/gpu-server-lab\/\"><span class=\"ne-text\">https:\/\/www.shenxiaohai.me\/gpu-server-lab\/<\/span><\/a><\/p>\n<p id=\"u40a8060c\" class=\"ne-p\" style=\"margin: 0; padding: 0; min-height: 24px;\"><a class=\"ne-link\" href=\"https:\/\/xungejiang.com\/2022\/07\/14\/lxd-new\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/xungejiang.com\/2022\/07\/14\/lxd-new\/\"><span class=\"ne-text\">https:\/\/xungejiang.com\/2022\/07\/14\/lxd-new\/<\/span><\/a><\/p>\n<p>\u6211\u4eec\u7684\u5177\u4f53\u5b89\u88c5\u90e8\u7f72\u6d41\u7a0b\uff1a<\/p>\n<div class=\"lake-content\">\n<p id=\"u913572f3\" class=\"ne-p\" style=\"margin: 0; padding: 0; min-height: 24px;\"><span class=\"ne-text\" style=\"font-size: 16px;\">\u6211\u4eec\u9009\u53d6\u7684\u65b9\u6848\uff1a\u91c7\u7528\u6240\u6709\u786c\u76d8\u4f5c\u4e3a\u5bbf\u4e3b\u673a\u786c\u76d8<\/span><\/p>\n<\/div>\n<p id=\"the-pasted-async\">\u6211\u4eec\u9700\u8981\u5b89\u88c5 LXD \u5b9e\u73b0\u865a\u62df\u5bb9\u5668\uff0cZFS \u4f5c\u4e3a LXD \u7684\u5b58\u50a8\u7ba1\u7406\u5de5\u5177\uff0cbridge-utils \u7528\u4e8e\u642d\u5efa\u7f51\u6865\u3002\u7531\u4e8e apt \u5b89\u88c5\u7684 LXD \u4e0d\u662f\u6700\u65b0\u7248\u672c\uff0c\u8fd9\u91cc\u4f7f\u7528 snap \u5b89\u88c5\u5de5\u5177\u5b89\u88c5 LXD\u3002<\/p>\n<p>sudo snap install lxd<br \/>\nsudo apt install zfsutils-linux bridge-utils<\/p>\n<p>\u5982\u679c\u8981\u5220\u9664LXD\uff1a<br \/>\nsudo snap remove &#8211;purge lxd<br \/>\nsudo rm -rf \/var\/lib\/lxd<\/p>\n<\/div>\n<div>\u5b89\u88c5\u65f6\u6709\u4e00\u4e9b\u9009\u9879\u8981\u914d\u7f6e\uff1a<\/div>\n<blockquote>\n<div>Would you like to use LXD clustering? (yes\/no) [default=no]:<br \/>\nDo you want to configure a new storage pool? (yes\/no) [default=yes]:<br \/>\nName of the new storage pool [default=default]: lxd_pool<br \/>\nName of the storage backend to use (ceph, dir, lvm, zfs, btrfs) [default=zfs]:<br \/>\nCreate a new ZFS pool? (yes\/no) [default=yes]:<br \/>\nWould you like to use an existing empty block device (e.g. a disk or partition)? (yes\/no) [default=no]:<br \/>\nSize in GiB of the new loop device (1GiB minimum) [default=30GiB]: 600<br \/>\nWould you like to connect to a MAAS server? (yes\/no) [default=no]:<br \/>\nWould you like to create a new local network bridge? (yes\/no) [default=yes]:<br \/>\nWhat should the new bridge be called? [default=lxdbr0]:<br \/>\nWhat IPv4 address should be used? (CIDR subnet notation, \u201cauto\u201d or \u201cnone\u201d) [default=auto]:<br \/>\nWhat IPv6 address should be used? (CIDR subnet notation, \u201cauto\u201d or \u201cnone\u201d) [default=auto]:<br \/>\nWould you like the LXD server to be available over the network? (yes\/no) [default=no]:<br \/>\nWould you like stale cached images to be updated automatically? (yes\/no) [default=yes]:<br \/>\nWould you like a YAML &#8220;lxd init&#8221; preseed to be printed? (yes\/no) [default=no]:<\/div>\n<\/blockquote>\n<div><\/div>\n<div>\u5177\u4f53\u4fee\u6539\u70b9\u6709\u4ee5\u4e0b\u4e09\u5904<br \/>\nCreate a new ZFS pool? (yes\/no) [default=yes]: yes<br \/>\nWould you like to use an existing block device? no<br \/>\nWould you like to create a new local network bridge? (yes\/no) [default=yes]: yes<\/div>\n<div>\n<p id=\"the-pasted-async\">\u6211\u4eec\u9009\u53d6\u7684\u65b9\u6848\uff1a\u91c7\u7528\u6240\u6709\u786c\u76d8\u4f5c\u4e3a\u5bbf\u4e3b\u673a\u786c\u76d8<\/p>\n<p id=\"the-pasted-async\">\u521b\u5efa\u5bb9\u5668\u6a21\u677f\uff08Ubuntu22.04\uff09<\/p>\n<p id=\"the-pasted-async\">\u5305\u62ec\u914d\u7f6e\uff1a\u7f51\u7edc\u3001GPU \u9a71\u52a8\u3001\u5171\u4eab\u76ee\u5f55\u3001SSH \u767b\u5f55\u3002<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u7684\u9700\u6c42 \u5728\u8d2d\u4e70\u4e86\u4e00\u53f0\u53554090\u9876\u914d\u6e38<\/p>\n","protected":false},"author":1,"featured_media":2987,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[],"class_list":["post-2736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","category-myteam"],"_links":{"self":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/2736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2736"}],"version-history":[{"count":1,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/2736\/revisions"}],"predecessor-version":[{"id":3099,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/2736\/revisions\/3099"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/media\/2987"}],"wp:attachment":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}