{"id":28594,"date":"2025-04-20T01:26:24","date_gmt":"2025-04-19T17:26:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/28594.html"},"modified":"2025-04-20T01:26:24","modified_gmt":"2025-04-19T17:26:24","slug":"lxd%e5%ae%b9%e5%99%a8%e5%ae%9e%e7%8e%b0%e8%bf%9b%e7%a8%8b%e7%ba%a7%e5%85%b1%e4%ba%ab%e6%9c%8d%e5%8a%a1%e5%99%a8gpu%e8%b5%84%e6%ba%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/28594.html","title":{"rendered":"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90"},"content":{"rendered":"<h2 id=\"z4ABo\">LXD\u4ecb\u7ecd<\/h2>\n<p id=\"ucf5eafd7\">LXD\u662f\u4e00\u4e2a\u73b0\u4ee3\u3001\u5b89\u5168\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u7cfb\u7edf\u5bb9\u5668\u548c\u865a\u62df\u673a\u7ba1\u7406\u5668\u3002\u5b83\u4e3a\u5728\u5bb9\u5668\u6216\u865a\u62df\u673a\u4e2d\u8fd0\u884c\u548c\u7ba1\u7406\u5b8c\u6574\u7684 Linux \u7cfb\u7edf\u63d0\u4f9b\u4e86\u7edf\u4e00\u7684\u4f53\u9a8c\u3002LXD \u652f\u6301\u5927\u91cf Linux \u53d1\u884c\u7248\u7684\u6620\u50cf&#xff08;\u5b98\u65b9 Ubuntu \u6620\u50cf\u548c\u793e\u533a\u63d0\u4f9b\u7684\u6620\u50cf&#xff09;&#xff0c;\u5e76\u4e14\u56f4\u7ed5\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u4f46\u975e\u5e38\u7b80\u5355\u7684 REST API \u6784\u5efa\u3002LXD \u4ece\u5355\u53f0\u8ba1\u7b97\u673a\u4e0a\u7684\u4e00\u4e2a\u5b9e\u4f8b\u6269\u5c55\u5230\u6574\u4e2a\u6570\u636e\u4e2d\u5fc3\u673a\u67b6\u4e2d\u7684\u96c6\u7fa4&#xff0c;\u4f7f\u5176\u9002\u5408\u5728\u5f00\u53d1\u548c\u751f\u4ea7\u4e2d\u8fd0\u884c\u5de5\u4f5c\u8d1f\u8f7d\u3002LXD \u5141\u8bb8\u60a8\u8f7b\u677e\u8bbe\u7f6e\u4e00\u4e2a\u611f\u89c9\u50cf\u5c0f\u578b\u79c1\u6709\u4e91\u7684\u7cfb\u7edf\u3002\u60a8\u53ef\u4ee5\u4ee5\u9ad8\u6548\u7684\u65b9\u5f0f\u8fd0\u884c\u4efb\u4f55\u7c7b\u578b\u7684\u5de5\u4f5c\u8d1f\u8f7d&#xff0c;\u540c\u65f6\u4fdd\u6301\u8d44\u6e90\u4f18\u5316\u3002\u5982\u679c\u60a8\u60f3\u5bb9\u5668\u5316\u4e0d\u540c\u7684\u73af\u5883\u6216\u8fd0\u884c\u865a\u62df\u673a&#xff0c;\u6216\u8005\u901a\u5e38\u4ee5\u7ecf\u6d4e\u9ad8\u6548\u7684\u65b9\u5f0f\u8fd0\u884c\u548c\u7ba1\u7406\u60a8\u7684\u57fa\u7840\u8bbe\u65bd&#xff0c;\u60a8\u5e94\u8be5\u8003\u8651\u4f7f\u7528 LXD\u3002<\/p>\n<p id=\"u3f55d553\">\u5728LXD\u73af\u5883\u4e0b&#xff0c;\u5bbf\u4e3b\u673a\u5bf9\u5bb9\u5668\u5177\u6709\u63a7\u5236\u6743&#xff0c;\u5bbf\u4e3b\u673a\u53ef\u4ee5\u76f4\u63a5\u8fdb\u5165\u7ec8\u7aef\u63a7\u5236\u5bb9\u5668&#xff0c;\u5e76\u63a7\u5236\u5bb9\u5668\u7684\u8d44\u6e90&#xff0c;\u5bb9\u5668\u4e4b\u95f4\u65e2\u53ef\u4ee5\u5171\u4eab\u8d44\u6e90\u4e5f\u53ef\u4ee5\u72ec\u7acb\u62e5\u6709\u8d44\u6e90&#xff0c;LXD\u6700\u4e3b\u8981\u7684\u76ee\u6807\u5c31\u662f\u4f7f\u7528 Linux \u5bb9\u5668\u800c\u4e0d\u662f\u786c\u4ef6\u865a\u62df\u5316\u5411\u7528\u6237\u63d0\u4f9b\u4e00\u79cd\u63a5\u8fd1\u865a\u62df\u673a\u7684\u4f7f\u7528\u4f53\u9a8c\u3002LXD\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u89c6\u5316Web\u754c\u9762&#xff0c;\u4f7f\u5f97\u7ba1\u7406\u5bb9\u5668\u65b9\u4fbf\u4e86\u8bb8\u591a\u3002\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u9700\u8981\u5171\u4eab\u7b97\u529b\u7ed9\u4ed6\u4eba&#xff0c;\u9700\u8981\u521b\u5efa\u76f8\u5bf9\u9694\u79bb\u7684\u73af\u5883&#xff0c;\u540c\u65f6\u53c8\u9700\u8981\u65b9\u4fbf\u7075\u6d3b\u5730\u7ba1\u7406\u5404\u4e2a\u73af\u5883&#xff0c;\u4fdd\u8bc1\u5bbf\u4e3b\u673a\u5bf9\u73af\u5883\u7684\u638c\u63a7\u6743\u3002\u90a3\u4e48LXD\u6216\u8bb8\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<p id=\"u81ec5e42\">LXD \u805a\u7126\u4e8e\u7cfb\u7edf\u5bb9\u5668&#xff0c;\u901a\u5e38\u4e5f\u88ab\u79f0\u4e3a\u67b6\u6784\u5bb9\u5668\u3002\u8fd9\u5c31\u662f\u8bf4 LXD \u5bb9\u5668\u5b9e\u9645\u4e0a\u5982\u5728\u88f8\u673a\u6216\u865a\u62df\u673a\u4e0a\u8fd0\u884c\u4e00\u822c\u8fd0\u884c\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684 Linux \u64cd\u4f5c\u7cfb\u7edf\u3002\u8fd9\u4e9b\u5bb9\u5668\u4e00\u822c\u57fa\u4e8e\u4e00\u4e2a\u5e72\u51c0\u7684\u53d1\u5e03\u955c\u50cf\u5e76\u4f1a\u957f\u65f6\u95f4\u8fd0\u884c\u3002\u4f20\u7edf\u7684\u914d\u7f6e\u7ba1\u7406\u5de5\u5177\u548c\u90e8\u7f72\u5de5\u5177\u53ef\u4ee5\u5982\u5728\u865a\u62df\u673a\u3001\u4e91\u5b9e\u4f8b\u548c\u7269\u7406\u673a\u5668\u4e0a\u4e00\u6837\u4e0e LXD \u4e00\u8d77\u4f7f\u7528\u3002\u76f8\u5bf9\u7684&#xff0c;Docker \u5173\u6ce8\u4e8e\u77ed\u671f\u7684\u3001\u65e0\u72b6\u6001\u7684\u3001\u6700\u5c0f\u5316\u7684\u5bb9\u5668&#xff0c;\u8fd9\u4e9b\u5bb9\u5668\u901a\u5e38\u5e76\u4e0d\u4f1a\u5347\u7ea7\u6216\u8005\u91cd\u65b0\u914d\u7f6e&#xff0c;\u800c\u662f\u4f5c\u4e3a\u4e00\u4e2a\u6574\u4f53\u88ab\u66ff\u6362\u6389\u3002\u8fd9\u5c31\u4f7f\u5f97 Docker \u53ca\u7c7b\u4f3c\u9879\u76ee\u66f4\u50cf\u662f\u4e00\u79cd\u8f6f\u4ef6\u53d1\u5e03\u673a\u5236&#xff0c;\u800c\u4e0d\u662f\u4e00\u4e2a\u673a\u5668\u7ba1\u7406\u5de5\u5177\u3002\u8fd9\u4e24\u79cd\u6a21\u578b\u5e76\u4e0d\u662f\u5b8c\u5168\u4e92\u65a5\u7684\u3002\u4f60\u5b8c\u5168\u53ef\u4ee5\u4f7f\u7528 LXD \u4e3a\u4f60\u7684\u7528\u6237\u63d0\u4f9b\u4e00\u4e2a\u5b8c\u6574\u7684 Linux \u7cfb\u7edf&#xff0c;\u7136\u540e\u4ed6\u4eec\u53ef\u4ee5\u5728 LXD \u5185\u5b89\u88c5 Docker \u6765\u8fd0\u884c\u4ed6\u4eec\u60f3\u8981\u7684\u8f6f\u4ef6\u3002<\/p>\n<p id=\"u2ac5b19d\">LXD\u88abIncus\u9879\u76ee\u7ee7\u627f&#xff0c;\u672c\u6587\u5185\u5bb9\u662f\u57fa\u4e8eLXD\u800c\u4e0d\u662fIncus\u3002<\/p>\n<p id=\"ube85df06\">\u5b98\u65b9\u6587\u6863&#xff1a;LXD \u7cfb\u5217 (ubuntu.com)<\/p>\n<p id=\"uec1cd4d5\">\u5b98\u65b9\u7f51\u7ad9&#xff1a;Canonical LXD<\/p>\n<p id=\"u53090187\">\u6211\u4eec\u91c7\u7528LXD\u6709\u4ee5\u4e0b\u76f4\u63a5\u539f\u56e0&#xff1a;<\/p>\n<li id=\"u566ca273\">\u6bcf\u4e2a\u5bb9\u5668\u53ef\u4ee5\u62e5\u6709\u72ec\u7acbip\u6216\u7aef\u53e3\u8f6c\u53d1SSH&#xff0c;\u53ef\u4ee5\u5b9e\u73b0\u5bb9\u5668\u8fdb\u5165\u5c40\u57df\u7f51&#xff0c;\u7528\u6237\u8bbf\u95eeSSH\u5bb9\u5668\u5f88\u65b9\u4fbf\u3002<\/li>\n<li id=\"u05054505\">\u7528\u6237\u4e0d\u80fd\u76f4\u63a5\u64cd\u4f5c\u5bbf\u4e3b\u673a\u3002<\/li>\n<li id=\"u35f8c78c\">\u6240\u6709\u7528\u6237\u90fd\u53ef\u4ee5\u4f7f\u7528\u6240\u6709\u8d44\u6e90&#xff0c;\u5bbf\u4e3b\u673a\u4e5f\u53ef\u4ee5\u63a7\u5236\u7528\u6237\u5bf9\u8d44\u6e90\u7684\u8bbf\u95ee\u6743\u9650&#xff0c;\u865a\u62df\u673a\u5219\u4e0d\u80fd\u5171\u4eab\u3002<\/li>\n<li id=\"ub3a9270b\">\u53ef\u4ee5\u521b\u5efa\u5171\u4eab\u6587\u4ef6\u5939&#xff0c;\u907f\u514d\u6d6a\u8d39\u786c\u76d8\u3002<\/li>\n<li id=\"u2cf1b3fe\">\u53ef\u4ee5\u5b89\u88c5LXD UI\u56fe\u5f62\u5316\u754c\u9762\u65b9\u4fbf\u7ba1\u7406\u3002<\/li>\n<p id=\"ub3e8246d\">\u4f46LXD\u5b58\u5728\u5982\u4e0b\u7f3a\u70b9&#xff1a;<\/p>\n<li id=\"ubabb50bd\">\u663e\u5361\u9a71\u52a8\u4e0d\u65b9\u4fbf\u66f4\u65b0&#xff0c;\u5bb9\u5668\u5185\u5916\u5fc5\u987b\u4e00\u81f4\u3002<\/li>\n<li id=\"u4cac0e20\">\u5bb9\u5668\u5185\u6838\u4e0e\u5bbf\u4e3b\u673a\u5171\u7528&#xff0c;\u5185\u6838\u51fa\u9519\u4f1a\u5bfc\u81f4\u5168\u90e8\u5bb9\u5668\u51fa\u9519\u3002<\/li>\n<h2 id=\"ivqme\">\u51c6\u5907\u5de5\u4f5c<\/h2>\n<p id=\"u734b35a9\">1.\u5728\u4f60\u7684\u672c\u5730\u51c6\u5907\u4e00\u4e2aubuntu\u6216\u5176\u4ed6Linux\u7cfb\u7edf\u955c\u50cf&#xff0c;\u7528\u4e8e\u91cd\u88c5\u7cfb\u7edf\u6216\u5f00\u865a\u62df\u673a\u3002<\/p>\n<p id=\"u4c9888ef\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"35\" id=\"u31165fcb\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172616-6803dcb8dea04.png\" width=\"920\" \/><\/p>\n<p id=\"u6466bb3a\">2.\u786e\u4fdd\u670d\u52a1\u5668\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u5e76\u63a5\u5165\u5c40\u57df\u7f51\u3002<\/p>\n<h2 id=\"NqcEb\">\u5b89\u88c5\u6b65\u9aa4<\/h2>\n<h3 id=\"HRd6F\">\u4e00\u3001\u5728\u670d\u52a1\u5668\u4e0a\u91cd\u88c5\u7cfb\u7edf&#xff08;\u53ef\u9009&#xff09;<\/h3>\n<p id=\"ucbc05a5c\">\u91cd\u88c5\u7cfb\u7edf\u662f\u4e3a\u4e86\u53bb\u6389\u865a\u62df\u5316\u4ee5\u63d0\u5347\u6027\u80fd&#xff0c;\u5982\u679c\u4f60\u6ca1\u6709\u8fd9\u4e2a\u9700\u6c42&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u7528\u865a\u62df\u673a\u4f5c\u4e3a\u5bbf\u4e3b\u673a\u3002<\/p>\n<p id=\"ue9c39fdb\">\u8fdb\u5165iDRAC9Web\u670d\u52a1\u754c\u9762\u540e&#xff0c;\u786e\u4fdd\u670d\u52a1\u5668\u5df2\u7ecf\u5f00\u673a&#xff0c;\u8fdb\u5165\u865a\u62df\u63a7\u5236\u53f0\u3002<\/p>\n<p id=\"u26544e4d\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1285\" id=\"u6b627861\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172617-6803dcb90ac04.png\" width=\"2550\" \/><\/p>\n<p id=\"ud2a9dcce\">\u865a\u62df\u63a7\u5236\u53f0\u754c\u9762\u5982\u56fe\u6240\u793a&#xff0c;\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u865a\u62df\u4ecb\u8d28\u3002<\/p>\n<p id=\"uee3f96bb\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"865\" id=\"u78eee757\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172618-6803dcba5c70b.png\" width=\"1575\" \/><\/p>\n<p id=\"u4d81cb97\">\u6309\u5982\u56fe\u64cd\u4f5c\u987a\u5e8f&#xff0c;\u6307\u5b9a\u865a\u62df\u4ecb\u8d28\u3002<\/p>\n<p id=\"u803a8e53\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"898\" id=\"u0cac7054\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172619-6803dcbb003ee.png\" width=\"996\" \/><\/p>\n<p id=\"u02aae52a\">\u6307\u5b9a\u4e0b\u6b21\u5f00\u673a\u7684\u4f4d\u7f6e&#xff0c;\u9009\u62e9\u865a\u62dfCD\/DVD\/ISO\u3002<\/p>\n<p id=\"u3711dd64\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"679\" id=\"u0485cce6\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172619-6803dcbb4da17.png\" width=\"1600\" \/><\/p>\n<p id=\"u16c59c18\">\u4e4b\u540e\u91cd\u542f\u670d\u52a1\u5668&#xff0c;\u670d\u52a1\u5668\u5c06\u8bfb\u53d6\u955c\u50cf\u6587\u4ef6\u91cd\u88c5\u7cfb\u7edf&#xff0c;\u5feb\u6162\u53d6\u51b3\u4e8e\u6587\u4ef6\u4f20\u8f93\u901f\u7387&#xff0c;\u9700\u8010\u5fc3\u7b49\u5f85&#xff0c;\u53ef\u4ee5\u4ece\u865a\u62df\u4ecb\u8d28\u9009\u9879\u4e2d\u7684\u865a\u62df\u4ecb\u8d28\u7edf\u8ba1\u4fe1\u606f\u6765\u76d1\u63a7\u4f20\u8f93\u8fc7\u7a0b\u3002<\/p>\n<p id=\"uec7df095\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"396\" id=\"u988a0a34\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172619-6803dcbbdd02f.png\" width=\"959\" \/><\/p>\n<p id=\"u7b86fb21\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"347\" id=\"u673e167f\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172620-6803dcbc1c574.png\" width=\"992\" \/><\/p>\n<p id=\"uf8a1f1b9\">\u5f85\u955c\u50cf\u52a0\u8f7d\u597d\u540e&#xff0c;\u6839\u636e\u6307\u5f15\u88c5\u597dubuntu\u7cfb\u7edf&#xff0c;\u5176\u4e2d\u5305\u542b\u662f\u5426\u5b89\u88c5nvidia\u663e\u5361\u9a71\u52a8\u7684\u9009\u9879&#xff0c;\u6b64\u65f6\u9009\u88c5\u6216\u4e0d\u88c5\u90fd\u53ef\u3002<\/p>\n<h3 id=\"ecbJC\">\u4e8c\u3001\u914d\u7f6e\u5bbf\u4e3b\u673a<\/h3>\n<p id=\"ud84afda1\">\u914d\u7f6e\u597dLXD\u5bb9\u5668\u6709\u4e24\u4e2a\u5173\u952e\u6b65\u9aa4&#xff1a;\u4e00\u662f\u786e\u4fdd\u5bb9\u5668\u5185\u5916\u7684nvidia\u663e\u5361\u9a71\u52a8\u3001CUDA\u7248\u672c\u4e00\u81f4&#xff0c;\u82e5\u4e0d\u4e00\u81f4\u4f1a\u5bfc\u81f4\u6240\u6709LXD\u5bb9\u5668\u548c\u5bb9\u5668\u5916\u9a71\u52a8\u4e0d\u53ef\u7528&#xff0c;\u4e8c\u662f\u914d\u7f6e\u5bb9\u5668SSH\u670d\u52a1\u7684\u7aef\u53e3\u8f6c\u53d1&#xff0c;\u5b9e\u73b0\u591a\u7528\u6237\u57fa\u4e8eLXD\u5171\u4eab\u8d44\u6e90\u3002<\/p>\n<h4 id=\"CZ4rk\">1. \u57fa\u672c\u914d\u7f6e\u548cSSH\u670d\u52a1\u914d\u7f6e<\/h4>\n<p id=\"u0e500bc1\">\u9996\u5148\u6253\u5f00\u7f51\u7edc\u914d\u7f6e\u9759\u6001IP&#xff0c;\u8fd9\u91cc\u6309\u7167\u5b9e\u9645\u9700\u8981\u914d\u7f6e\u5373\u53ef&#xff0c;\u914d\u7f6e\u5b8c\u540e\u53ef\u4ee5\u901a\u8fc7ping www.baidu.com\u6307\u4ee4\u6765\u6d4b\u8bd5\u7f51\u7edc\u662f\u5426\u8054\u901a\u3002<\/p>\n<p id=\"u4c38efa0\">\u8e29\u5751&#xff1a;\u670d\u52a1\u5668\u4ea4\u6362\u673a\u7aef\u53e3\u6a21\u5f0f\u9700\u8981\u914d\u7f6e\u4e3aaccess&#xff0c;ubuntu\u4e0d\u652f\u6301truck\u3002<\/p>\n<p id=\"u4b8967aa\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1018\" id=\"u5c6c1b0b\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172620-6803dcbc4d32f.png\" width=\"1248\" \/><\/p>\n<p id=\"u452b44aa\">\u4fee\u6539\u7cfb\u7edf\u5bc6\u7801<\/p>\n<p>sudo passwd root <\/p>\n<p id=\"udc64c109\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"185\" id=\"u24f8af5d\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172620-6803dcbcc91c9.png\" width=\"747\" \/><\/p>\n<p id=\"ub9808aeb\">\u5b89\u88c5ssh\u670d\u52a1<\/p>\n<p>apt-get update<\/p>\n<p>sudo apt-get install ssh <\/p>\n<p id=\"ua0fdea36\">\u68c0\u67e5\u670d\u52a1\u662f\u5426\u6253\u5f00<\/p>\n<p>systemctl status ssh <\/p>\n<p id=\"u54275630\">\u82e5\u663e\u793a\u5982\u4e0b&#xff0c;\u5219\u670d\u52a1\u672a\u5f00\u542f&#xff0c;\u9700\u8981\u624b\u52a8\u6253\u5f00\u3002<\/p>\n<p>systemctl start ssh <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"200\" id=\"ua369ac18\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172620-6803dcbcedbbf.png\" width=\"1096\" \/><\/p>\n<p id=\"u0d266073\">\u6253\u5f00\u540e\u518d\u6b21\u68c0\u67e5\u663e\u793a\u5982\u4e0b\u3002<\/p>\n<p id=\"u1971bec9\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"562\" id=\"u8ab4ede7\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172621-6803dcbd31820.png\" width=\"1274\" \/><\/p>\n<p id=\"u44722101\">\u6b64\u65f6\u6211\u4eec\u5c31\u53ef\u4ee5\u7528MobaXtrem\u7b49\u5de5\u5177\u8fdb\u884c\u66f4\u65b9\u4fbf\u7684\u64cd\u4f5c\u4e86\u3002<\/p>\n<p id=\"udf86209b\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"680\" id=\"ud4ead4fc\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172621-6803dcbd8a296.png\" width=\"1010\" \/><\/p>\n<p id=\"u44a197a9\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"757\" id=\"u7c49ae7b\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172621-6803dcbdccc04.png\" width=\"817\" \/><\/p>\n<h4 id=\"KfZB4\">2. \u5b89\u88c5nvidia\u663e\u5361\u9a71\u52a8\u3001CUDA\u3001cuDNN<\/h4>\n<p id=\"u86447157\">\u5176\u4e2d\u663e\u5361\u9a71\u52a8\u3001CUDA\u662f\u4f7f\u7528GPU\u52a0\u901f\u8ba1\u7b97\u7684\u5fc5\u8981\u6761\u4ef6&#xff0c;cuDNN\u901a\u5e38\u90fd\u4f1a\u7528\u5230\u3002<\/p>\n<p id=\"u898b44f9\">\u8fd9\u53ef\u80fd\u4f1a\u662f\u4e00\u4e2a\u590d\u6742\u7684\u8fc7\u7a0b\u3002<\/p>\n<p id=\"u6ee9d46e\">\u7b2c\u4e00&#xff1a;nvidia\u9a71\u52a8\u3001CUDA\u3001cuDNN\u4e09\u8005\u7684\u7248\u672c\u5fc5\u987b\u548c\u670d\u52a1\u5668\u7684\u663e\u5361\u517c\u5bb9\u3002<\/p>\n<p id=\"u638be457\">\u7b2c\u4e8c&#xff1a;nvidia\u9a71\u52a8\u3001CUDA\u3001cuDNN\u7684\u7248\u672c\u5fc5\u987b\u76f8\u4e92\u4e4b\u95f4\u517c\u5bb9\u3002<\/p>\n<p id=\"udd62a461\">\u7b2c\u4e09&#xff1a;\u5bbf\u4e3b\u673a\u548cLXD\u5bb9\u5668\u5185\u90e8\u7684nvidia\u9a71\u52a8\u3001CUDA\u3001cudnn\u5fc5\u987b\u7248\u672c\u4e00\u81f4<\/p>\n<p id=\"u8574985c\">\u7b2c\u56db&#xff1a;\u4e0e\u540e\u7eed\u8ba1\u7b97\u6240\u6d89\u53ca\u7684\u4e1c\u897f&#xff08;\u5305\u62ec\u4ee3\u7801\u5e93&#xff0c;\u8fd0\u7b97\u5e93\u7b49&#xff09;\u517c\u5bb9&#xff0c;\u4e0d\u8fc7\u8fd9\u4e9b\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5\u53d1\u751f\u7684\u53ef\u80fd\u6027\u8f83\u5c0f\u3002<\/p>\n<p id=\"ub5725828\">\u4e00\u3001\u4e8c\u7684\u89e3\u51b3\u53ef\u4ee5\u901a\u8fc7\u5728\u4e92\u8054\u7f51\u4e0a\u67e5\u8d44\u6599\u89e3\u51b3&#xff0c;\u627e\u5230\u5408\u9002\u7684\u7248\u672c\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p id=\"ua8d017d3\">\u4e09\u5bf9\u4e8eLXD\u5bb9\u5668\u53ef\u80fd\u662f\u4e00\u4e2a\u81f4\u547d\u7684\u7f3a\u9677&#xff0c;\u56e0\u4e3a\u5bb9\u5668\u548c\u5bbf\u4e3b\u673a\u7684nvidia\u9a71\u52a8\u3001CUDA\u3001cudnn\u5fc5\u987b\u4e00\u81f4&#xff0c;\u5426\u5219\u4f1a\u5bfc\u81f4\u6240\u6709\u673a\u5668\u4e0d\u80fd\u4f7f\u7528\u663e\u5361&#xff0c;\u5982\u6b64\u7528\u6237\u4fbf\u4e0d\u80fd\u81ea\u7531\u9009\u62e9\u663e\u5361\u9a71\u52a8\u7684\u7248\u672c\u3002<\/p>\n<p id=\"u8f5614b6\">\u63a5\u4e0b\u6765\u6211\u7ed9\u51fa\u7684\u662f\u4e00\u4e2a\u5728ubuntu\u4e0b\u6bd4\u8f83\u901a\u7528\u7b80\u5355\u7684\u8fc7\u7a0b&#xff0c;\u5728\u4f60\u7684\u673a\u5668\u4e0a\u4e0d\u4e00\u5b9a\u80fd\u76f4\u63a5\u8dd1\u901a&#xff0c;\u8bf7\u901a\u8fc7\u67e5\u8d44\u6599\u81ea\u884c\u89e3\u51b3&#xff0c;\u5e76\u4e14\u8bf7\u8bb0\u5f55\u4f60\u7684\u5b89\u88c5\u6d41\u7a0b&#xff0c;\u56e0\u4e3aLXD\u5bb9\u5668\u5185\u9700\u8981\u8fdb\u884c\u4e00\u6b21\u540c\u6837\u7684\u64cd\u4f5c\u3002<\/p>\n<h5 id=\"pPDsB\">nvidia\u9a71\u52a8\u5b89\u88c5<\/h5>\n<p id=\"u4632be20\">\u9996\u5148\u5728\u5bbf\u4e3b\u673a\u4f7f\u7528\u6307\u4ee4<\/p>\n<p>nvidia-smi <\/p>\n<p id=\"u4632be20\">\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u663e\u5361\u9a71\u52a8\u3002<\/p>\n<p id=\"ud8e67bb6\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"525\" id=\"u51811bb3\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172622-6803dcbe208d1.png\" width=\"917\" \/><\/p>\n<p id=\"ub0f28435\">\u5982\u679c\u51fa\u73b0\u4e0a\u56fe\u754c\u9762\u5219\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86&#xff08;ubuntu\u88c5\u7cfb\u7edf\u65f6\u63d0\u4f9b\u88c5\u9a71\u52a8\u7684\u9009\u9879&#xff09;&#xff0c;\u82e5\u4e0d\u662f\u5c31\u8bf4\u660e\u6ca1\u88c5\u597d\u3002<\/p>\n<p id=\"u5804ba1c\">\u5982\u679c\u5df2\u7ecf\u88c5\u597d\u4e86&#xff0c;\u4f60\u8981\u8003\u8651\u662f\u5426\u91c7\u7528\u8fd9\u4e2a\u7248\u672c\u7684\u9a71\u52a8&#xff0c;\u5982\u679c\u4e0d\u91c7\u7528\u5219\u9700\u8981\u91cd\u88c5&#xff0c;\u91c7\u7528\u5c31\u8df3\u5230\u88c5CUDA\u90a3\u4e00\u6b65\u3002<\/p>\n<p id=\"ue5cc181d\">\u8fdb\u5165\u6743\u9650\u7528\u6237&#xff1a;<\/p>\n<p id=\"uea5b9409\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"67\" id=\"ua76f1268\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172622-6803dcbe5f5c2.png\" width=\"324\" \/><\/p>\n<p id=\"ua0e808b3\">\u5148<\/p>\n<p>apt-get update <\/p>\n<p id=\"ubf7a516b\">\u4f7f\u7528\u6307\u4ee4<\/p>\n<p>ubuntu-drivers devices <\/p>\n<p id=\"ubf7a516b\">\u67e5\u8be2\u4f7f\u7528\u7684\u663e\u5361\u7248\u672c<\/p>\n<p id=\"u14e25c01\">\u82e5\u4e0d\u5b58\u5728\u6b64\u6307\u4ee4&#xff0c;\u5148\u5b89\u88c5<\/p>\n<p>apt install ubuntu-drivers-common <\/p>\n<p id=\"u14e25c01\">\u540e\u67e5\u8be2\u3002<\/p>\n<p id=\"uda3d6359\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"372\" id=\"u3fefee23\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172622-6803dcbe856f8.png\" width=\"661\" \/><\/p>\n<p id=\"u7384464d\">\u8fd9\u91cc\u663e\u793a\u4e86\u63a8\u8350\u7684\u7248\u672c&#xff0c;\u4e00\u822c\u6765\u8bf4\u5b89\u88c5recommended\u7684\u7248\u672c\u5b89\u88c5\u5c31\u884c\u3002<\/p>\n<p>apt install nvidia-driver-550 <\/p>\n<p id=\"u96b0f4d2\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"96\" id=\"u11fc41ec\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172622-6803dcbeb5401.png\" width=\"796\" \/><\/p>\n<p id=\"u697f57cc\">\u6216<\/p>\n<p>ubuntu-drivers autoinstall <\/p>\n<p id=\"u697f57cc\">\u81ea\u52a8\u5b89\u88c5\u63a8\u8350\u7248\u672c\u3002<\/p>\n<p id=\"u77d50da3\">\u5b89\u88c5\u597d\u4e4b\u540e\u91cd\u542freboot&#xff0c;\u4f7f\u7528nvidia-smi\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u5b8c\u6bd5\u3002<\/p>\n<p id=\"u73e220d8\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"484\" id=\"u83f9311a\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172622-6803dcbed97fc.png\" width=\"922\" \/><\/p>\n<p id=\"uc34381da\">\u5982\u679c\u4e0d\u884c\u7684\u8bdd\u5c31\u53bb\u67e5\u8d44\u6599\u3002 \u9700\u8981\u7981\u6b62nvidia\u9a71\u52a8\u81ea\u52a8\u66f4\u65b0&#xff0c;\u89c1&#xff1a;\u5982\u4f55\u5728Ubuntu\u4e0a\u5b89\u88c5NVIDIA\u663e\u5361\u9a71\u52a8\u5e76\u7981\u6b62\u81ea\u52a8\u66f4\u65b0_ubuntu \u7981\u7528\u663e\u5361\u9a71\u52a8\u66f4\u65b0-CSDN\u535a\u5ba2<\/p>\n<p id=\"ue30c4533\">\u7981\u7528ubuntu\u5185\u6838\u66f4\u65b0&#xff0c;\u89c1&#xff1a;Ubuntu\u7981\u6b62\u5185\u6838\u81ea\u52a8\u66f4\u65b0-\u963f\u91cc\u4e91\u5f00\u53d1\u8005\u793e\u533a<\/p>\n<h5 id=\"sxd7U\">\u5b89\u88c5CUDA<\/h5>\n<p id=\"u6f0dd2fa\">\u4f60\u53ef\u4ee5\u6839\u636e\u4e00\u4e9b\u7f51\u4e0a\u7684\u6559\u7a0b&#xff0c;\u770bnivida-smi\u53f3\u4e0a\u89d2\u663e\u793a\u7684\u6700\u9ad8\u652f\u6301\u7248\u672c\u4ecenvidia\u5b98\u7f51\u4e0b\u8f7dcuda\u5305\u6765\u5b89\u88c5\u7279\u5b9a\u7684CUDA\u7248\u672c\u3002CUDA Toolkit Archive | NVIDIA Developer<\/p>\n<p id=\"u220e98a3\">\u4e5f\u53ef\u4ee5\u8bd5\u8bd5\u50cf\u6211\u4e00\u6837&#xff0c;\u76f4\u63a5\u4f7f\u7528<\/p>\n<p>apt install nvidia-cuda-toolkit <\/p>\n<p id=\"u220e98a3\">\u5b89\u88c5&#xff0c;CUDA\u5305\u6bd4\u8f83\u5927&#xff0c;\u5982\u679c\u7f51\u901f\u6162&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u6362\u6e90\u6216\u8005\u8df3\u5230\u540e\u9762\u5148\u914d\u7f6eLXD\u5bb9\u5668\u3002<\/p>\n<p id=\"uce60e56f\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"32\" id=\"u026a6b34\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172623-6803dcbf1e54d.png\" width=\"635\" \/><\/p>\n<p id=\"u24100d6b\">\u7b49\u5f85\u5b89\u88c5\u597d\u4e4b\u540e&#xff0c;\u4f7f\u7528\u6307\u4ee4nvcc -V\u6765\u68c0\u67e5\u662f\u5426\u6210\u529f\u3002<\/p>\n<p id=\"ud29840d8\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"122\" id=\"uaecb48a0\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172623-6803dcbf3e183.png\" width=\"489\" \/><\/p>\n<p id=\"u5f2e8d53\">\u4e0a\u56fe\u8bf4\u660e\u6210\u529f\u4e86&#xff0c;\u8fd9\u91cc\u7684\u7248\u672c\u5c0f\u4e8e\u7b49\u4e8e12.4\u8bf4\u660e\u548c\u6211\u7684\u663e\u5361\u9a71\u52a8\u662f\u517c\u5bb9\u7684\u3002<\/p>\n<p id=\"u6dabfa9c\">\u5982\u679c\u4e0d\u884c\u7684\u8bdd\u5c31\u53bb\u67e5\u8d44\u6599\u3002<\/p>\n<h5 id=\"Yzgmj\">\u5b89\u88c5cuDNN<\/h5>\n<p id=\"u1d443a40\">\u8fd9\u91cc\u6211\u4ececuDNN\u7684\u5b98\u7f51\u6559\u7a0b\u9009\u62e9\u4e86\u5408\u9002\u7684\u7248\u672c&#xff0c;\u7136\u540e\u6309\u7167\u6307\u5f15\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p id=\"u5d5bb16e\">\u9644\u94fe\u63a5&#xff1a;cuDNN 9.4.0 Downloads | NVIDIA Developer<\/p>\n<p id=\"uda268fa8\">\u5982\u679c\u94fe\u63a5\u8fc7\u671f\u4e86\u5c31\u53bb\u627e\u3002<\/p>\n<p id=\"uf2430dc9\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1172\" id=\"u08a8992d\" src=\"2025-04-201wchcj43fzj.png\" width=\"1120\" \/><\/p>\n<p>wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2404\/x86_64\/cuda-keyring_1.1-1_all.deb<br \/>\nsudo dpkg -i cuda-keyring_1.1-1_all.deb<br \/>\nsudo apt-get update<br \/>\nsudo apt-get -y install cudnn <\/p>\n<p id=\"uc5dce186\">\u5b89\u88c5\u597dcuDNN\u540e&#xff0c;\u6211\u7684\u68c0\u67e5\u65b9\u5f0f\u662f\u8c03\u7528python\u7684pytorch\u5305&#xff0c;\u7531\u4e8e\u4e0d\u4e00\u5b9a\u5fc5\u8981\u5728\u5bbf\u4e3b\u673a\u4e0a\u5b89\u88c5\u4ee3\u7801\u73af\u5883&#xff0c;\u540e\u9762\u914d\u7f6eLXD\u5bb9\u5668\u5185\u90e8\u65f6\u518d\u63d0\u53ca\u3002<\/p>\n<h4 id=\"T2Awm\">3. \u5bbf\u4e3b\u673a\u5b89\u88c5\u5e76\u914d\u7f6eLXD\u5bb9\u5668\u5916\u90e8<\/h4>\n<h5 id=\"tNyFG\">\u5b89\u88c5LXD<\/h5>\n<p id=\"u8a47d0de\">\u9996\u5148\u786e\u4fdd\u8fdb\u5165\u6743\u9650\u7528\u6237&#xff0c;\u6216\u4f7f\u7528sudo\u3002<\/p>\n<p id=\"u172352ab\">\u6211\u4f7f\u7528\u6307\u4ee4apt install lxc\u548capt install lxd-installer\u5b89\u88c5LXD\u3002<\/p>\n<p id=\"ua3cbe64a\">\u5efa\u8bae\u4f7f\u7528\u5b98\u65b9\u6587\u6863\u91c7\u7528\u7528snap\u5b89\u88c5&#xff1a;<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt install snapd<br \/>\nsudo snap install lxd <\/p>\n<p id=\"u99226301\">\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4f7f\u7528\u6307\u4ee4<\/p>\n<p>lxd init <\/p>\n<p id=\"u99226301\">\u521d\u59cb\u5316lxd\u3002<\/p>\n<p id=\"u22b47d41\">\u8fd9\u91cc\u6211\u4fee\u6539\u4e86\u8fd9\u4e00\u9879&#xff0c;\u5176\u4ed6\u90fd\u662f\u9ed8\u8ba4\u914d\u7f6e&#xff0c;\u6309\u7167\u5177\u4f53\u9700\u8981\u5373\u53ef\u3002<\/p>\n<p id=\"u1e268f69\">Size in GiB of the new loop device (1GiB minimum) [default&#061;30GiB]: 200<\/p>\n<h5 id=\"szZzi\">\u542f\u52a8\u5e76\u4e3aLXD\u5bb9\u5668\u6dfb\u52a0\u8bbe\u5907<\/h5>\n<p id=\"u19e0ba7c\">\u8fd9\u91cc\u7684\u955c\u50cf\u7248\u672c\u5c3d\u91cf\u91c7\u7528\u548c\u5bbf\u4e3b\u673a\u4e00\u6837\u7684\u7248\u672c\u3002<\/p>\n<p>lxc launch ubuntu:24.04 <\/p>\n<p id=\"u7f1da1f1\">\u8fd9\u91cc\u4f1a\u5bf9\u5bb9\u5668\u81ea\u52a8\u547d\u540d&#xff0c;\u4f7f\u7528lxc list\u6765\u67e5\u770b\u5bb9\u5668\u5217\u8868<\/p>\n<p id=\"u6aa53bc4\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"146\" id=\"u17ccf106\" src=\"2025-04-202tvk20m2omn.png\" width=\"1194\" \/><\/p>\n<p id=\"uf353746b\">\u63a5\u4e0b\u6765\u9700\u8981\u4e3a\u5bb9\u5668\u66f4\u540d\u3001\u6dfb\u52a0\u663e\u5361\u8bbe\u5907\u3001\u6dfb\u52a0\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907\u3002<\/p>\n<p>lxc stop &lt;\u539f\u5bb9\u5668&gt; #\u505c\u6b62\u5bb9\u5668<br \/>\nlxc rename &lt;\u539f\u5bb9\u5668\u540d&gt; &lt;\u65b0\u5bb9\u5668\u540d&gt; #\u6539\u540d<br \/>\nlxc config device add &lt;\u65b0\u5bb9\u5668\u540d&gt; gpu gpu #\u4e3a\u5bb9\u5668\u6dfb\u52a0\u6240\u6709GPU<br \/>\nlxc config device add &lt;\u5bb9\u5668\u540d&gt; &lt;\u5bf9\u8be5\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907\u547d\u540d&gt; \\\\<br \/>\nproxy listen&#061;tcp:&lt;\u5bbf\u4e3b\u673aip&gt;:&lt;\u5bbf\u4e3b\u673a\u9009\u7528\u7aef\u53e3&gt; connect&#061;tcp:&lt;\u5bb9\u5668ip&gt;:22<br \/>\n#\u6dfb\u52a0\u7aef\u53e3\u8f6c\u53d1&#xff0c;\u7528\u4e8eSSH\u8bbf\u95ee\u5bb9\u5668&#xff0c;\u5bb9\u5668ip\u4ecelxc list\u83b7\u53d6<br \/>\nlxc config device show &lt;\u5bb9\u5668\u540d&gt;#\u663e\u793a\u5bb9\u5668\u5df2\u6709\u8bbe\u5907 <\/p>\n<p id=\"u5c20a221\">\u5982\u56fe<\/p>\n<p id=\"u83c8486c\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"46\" id=\"u70213c6e\" src=\"2025-04-20dj4ofg4qdzj.png\" width=\"1026\" \/><\/p>\n<p id=\"uffefa3e9\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"150\" id=\"ub7d82223\" src=\"2025-04-20hy4usvb3xw1.png\" width=\"589\" \/><\/p>\n<p id=\"u8eeb332e\">\u53ef\u4ee5\u4ece\u4e0a\u56fe\u770b\u51fa\u7aef\u53e3\u8f6c\u53d1\u4f5c\u4e3a\u4e00\u4e2a\u8bbe\u5907\u662f\u6709\u547d\u540d\u7684&#xff0c;\u4e0d\u8981\u5f04\u9519\u542b\u4e49\u3002<\/p>\n<p id=\"ub38ea883\">\u5176\u4ed6\u914d\u7f6e\u6307\u4ee4&#xff0c;\u5982\u6307\u5b9agpu\u7f16\u53f7&#xff0c;\u67e5\u8be2\u6587\u6863LXD (ubuntu.com)\u3002<\/p>\n<h3 id=\"KCffX\">\u4e09\u3001\u914d\u7f6eLXD\u5bb9\u5668\u5185\u90e8<\/h3>\n<p id=\"ubeb0b55f\">\u8fdb\u5165lxc\u5bb9\u5668\u5185\u90e8<\/p>\n<p>lxc start bee1(\u5bb9\u5668\u540d&#xff09;<br \/>\nlxc exec bee1(\u5bb9\u5668\u540d&#xff09; \/bin\/bash <\/p>\n<h4 id=\"Y74x6\">1. \u914d\u7f6eSSH\u670d\u52a1<\/h4>\n<p id=\"u92f71a28\">\u7531\u4e8eLXD\u5bb9\u5668\u88ab\u5bbf\u4e3b\u673a\u81ea\u7531\u652f\u914d&#xff0c;\u662f\u6ca1\u6709\u521d\u59cb\u5bc6\u7801\u7684&#xff0c;\u5148\u4e3a\u5bb9\u5668\u6dfb\u52a0\u5bc6\u7801&#xff0c;\u5b89\u88c5SSH\u4e4b\u540e\u9700\u8981\u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5426\u5219\u65e0\u6cd5\u7531SSH\u8bbf\u95ee\u3002<\/p>\n<p id=\"u8fb3f3e1\">\u6dfb\u52a0\u5bc6\u7801<\/p>\n<p>passwd root <\/p>\n<p id=\"u4a4b5810\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"86\" id=\"u55eb457d\" src=\"2025-04-20glywtiumexm.png\" width=\"390\" \/><\/p>\n<p id=\"u32505cd9\">\u5b89\u88c5SSH<\/p>\n<p>apt-get update<\/p>\n<p>apt install openssh-server <\/p>\n<p id=\"ua2c6241b\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"122\" id=\"ueaa82347\" src=\"2025-04-20ylloflbzdjo.png\" width=\"674\" \/><\/p>\n<p id=\"ubceae76b\">\u4fee\u6539SSH\u914d\u7f6e\u3002<\/p>\n<p>vim \/etc\/ssh\/sshd_config <\/p>\n<p id=\"u89f452d2\">\u8fd9\u91cc\u7ed9\u51fa\u9700\u4fee\u6539\u7684\u914d\u7f6e\u9879<\/p>\n<p>PermitRootLogin yes<br \/>\nPubkeyAuthentication no<br \/>\nPasswordAuthentication yes<br \/>\nKbdInteractiveAuthentication yes <\/p>\n<p id=\"u900529bd\">\u91cd\u542fSSH\u670d\u52a1\u3002<\/p>\n<p>systemctl restart ssh <\/p>\n<p id=\"u017cb407\">\u6d4b\u8bd5SSH\u80fd\u5426\u8fde\u63a5<\/p>\n<p id=\"u91c28b81\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"385\" id=\"uf7bfad78\" src=\"2025-04-20aq53zaor5j0.png\" width=\"1045\" \/><\/p>\n<p id=\"u9ab18680\">\u8fd9\u91cc\u6211\u6210\u529f\u8fde\u63a5\u5bb9\u5668\u4e86\u3002<\/p>\n<p id=\"ufc221dc7\">\u5982\u679c\u80fdping\u5230\u5bb9\u5668\u4f46\u88ab\u62d2\u7edd&#xff0c;\u9700\u8981\u68c0\u67e5\u5bbf\u4e3b\u673a\u7aef\u53e3\u8f6c\u53d1\u662f\u5426\u6b63\u786e&#xff0c;\u4ee5\u53ca\u5bb9\u5668\u5185\u90e8SSH\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u4fee\u6539\u6b63\u786e&#xff0c;\u6216\u8005\u6539\u6210\u5176\u4ed6\u914d\u7f6e\u8bd5\u8bd5&#xff0c;LXD\u5bb9\u5668\u5185\u90e8\u4e00\u5f00\u59cb\u6ca1\u6709\u5bc6\u7801&#xff0c;\u5e76\u4e14\u9ed8\u8ba4root\u7528\u6237&#xff0c;\u4e0d\u6539\u5bc6\u7801\u5e76\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u662f\u4e0d\u80fd\u8fde\u4e0a\u7684\u3002<\/p>\n<h4 id=\"YMT3L\">2. \u5b89\u88c5conda&#xff08;\u53ef\u9009&#xff09;<\/h4>\n<p id=\"u898fa277\">\u5982\u679c\u670d\u52a1\u5668\u5171\u4eab\u7a0b\u5ea6\u9ad8&#xff0c;\u591a\u4e2a\u56e2\u961f\u4f7f\u7528&#xff0c;\u4e3a\u6bcf\u4e2a\u56e2\u961f\u5206\u914d\u4e00\u4e2a\u670d\u52a1\u5668&#xff0c;\u6216\u8005\u4e5f\u4e3a\u4e86\u65b9\u4fbf\u4e2a\u4eba\u4f7f\u7528&#xff0c;\u53ef\u4ee5\u5728\u5bb9\u5668\u5185\u5b89\u88c5conda\u6765\u914d\u7f6epython\u73af\u5883\u3002<\/p>\n<p id=\"uc50ffa1d\">\u4e0b\u8f7d\u5e76\u5b89\u88c5conda<\/p>\n<p id=\"u01aa6e60\">Download Anaconda Distribution | Anaconda<\/p>\n<p>wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2022.10-Linux-x86_64.sh #\u5176\u4ed6\u7248\u672c\u94fe\u63a5\u4ece\u5b98\u7f51\u627e<br \/>\nbash Anaconda3-2022.10-Linux-x86_64.sh <\/p>\n<p id=\"u9577d659\">\u4e00\u8defyes\u5373\u53ef<\/p>\n<p id=\"u9ec6b4cc\">\u5b89\u88c5\u5b8c\u6210\u540e\u9700\u8981\u914d\u7f6ebashrc\u6587\u4ef6<\/p>\n<p>vim ~\/.bashrc <\/p>\n<p id=\"u5d532b1e\">\u5728\u6700\u540e\u4e00\u884c\u52a0\u4e0a<\/p>\n<p>export PATH&#061;$PATH:&lt;\u4f60\u7684\u5b89\u88c5\u76ee\u5f55&gt;\/anaconda3\/bin <\/p>\n<p id=\"uae34e6c9\">\u7136\u540e<\/p>\n<p>source ~\/.bashrc <\/p>\n<p id=\"u6a0a9998\">\u624d\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528conda<\/p>\n<h4 id=\"TRcui\">3. \u5b89\u88c5nvidia\u663e\u5361\u9a71\u52a8\u3001CUDA\u3001cuDNN<\/h4>\n<p id=\"u33d9282f\">\u8fd9\u91cc\u7684\u6b65\u9aa4\u548c\u5bbf\u4e3b\u673a\u5b89\u88c5\u5e94\u8be5\u662f\u4e00\u6837\u7684&#xff0c;\u8fd9\u8fb9\u7701\u7565\u4e86&#xff0c;\u8981\u5b89\u88c5\u548c\u5bbf\u4e3b\u673a\u4e00\u6837\u7684\u7248\u672c&#xff0c;\u5426\u5219nvidia-smi\u4f1a\u62a5\u9519&#xff0c;\u65e0\u6cd5\u4f7f\u7528\u663e\u5361\u3002<\/p>\n<p id=\"uaaecf6cf\">nvidia-smi\u6d4b\u8bd5\u663e\u5361\u9a71\u52a8\u662f\u5426\u6210\u529f\u5b89\u88c5<\/p>\n<p id=\"ue14fba80\">nvcc -V\u6d4b\u8bd5CUDA\u9a71\u52a8\u662f\u5426\u6210\u529f\u5b89\u88c5<\/p>\n<p id=\"u40c21dfd\">\u8fd9\u8fb9\u7ed9\u51fa\u7528python\u7684pytorch\u5305\u6d4b\u8bd5CUDA\u548ccuDNN\u7684\u6d41\u7a0b<\/p>\n<p id=\"u61c507b3\">\u6211\u7528\u4e86conda&#xff0c;\u8fd9\u8fb9\u521b\u5efa\u4e00\u4e2a\u65b0\u73af\u5883&#xff0c;\u4e0d\u7528conda\u7684\u8bdd\u6709python\u5373\u53ef<\/p>\n<p id=\"u25971480\">\u4e3apip\u6362\u6e90&#xff0c;24.9.19\u7f51\u6613\u7684\u6e90\u8fd8\u53ef\u7528\u3002<\/p>\n<p>\u200b<br \/>\npip config set global.index-url Simple Index<\/p>\n<p>\u200b <\/p>\n<p id=\"ua740e7d4\">\u521b\u5efa\u73af\u5883\u3002<\/p>\n<p>conda create -n torch python&#061;3.8<br \/>\n#\u521b\u5efa\u5b8c\u6bd5\u8fdb\u5165\u8be5\u73af\u5883\u3002<br \/>\n#\u5b89\u88c5pytorch\u3002<\/p>\n<p>pip install torch<\/p>\n<p>#\u5b89\u88c5\u5b8c\u6210\u540e\u8fdb\u5165python\u7ec8\u7aef\u6d4b\u8bd5\u3002<\/p>\n<p>#\u6d4b\u8bd5\u4e4b\u524d\u91cd\u88c5\u4e0bnumpy\u5426\u5219\u53ef\u80fd\u62a5\u9519\u3002<\/p>\n<p>pip install numpy <\/p>\n<p id=\"u8c6e9e22\">\n<p>import torch<br \/>\nprint(torch.version.cuda)#CUDA\u7248\u672c\u53f7<br \/>\nprint(torch.backends.cudnn.version())#cuDNN\u7248\u672c\u53f7<br \/>\nprint(torch.cuda.is_available())#CUDA\u662f\u5426\u53ef\u7528 <\/p>\n<p id=\"u6dcc7f1a\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"219\" id=\"u625e72b2\" src=\"2025-04-20hyvgevawicm.png\" width=\"710\" \/><\/p>\n<p id=\"ubeb2a865\">\u8fd9\u5c31\u8bf4\u660eOK\u4e86\u3002<\/p>\n<p id=\"u53233d12\">\u63a5\u4e0b\u6765\u6211\u8fd0\u884c\u624b\u5199\u6570\u5b57\u8bad\u7ec3\u4ee3\u7801\u6765\u6d4b\u8bd5\u663e\u5361\u6027\u80fd\u3002<\/p>\n<p id=\"u40c63136\">nvidia-smi dmon\u6765\u76d1\u63a7\u663e\u5361\u5360\u7528\u3002<\/p>\n<p id=\"ucc1a485c\">\u6253\u5f00\u53e6\u4e00\u4e2a\u7ec8\u7aef\u8fd0\u884c\u4ee3\u7801\u540e&#xff0c;\u663e\u5361\u5360\u7528\u663e\u793a\u5982\u4e0b\u3002<\/p>\n<p id=\"u1e3e3cb4\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"92\" id=\"uf26d385f\" src=\"2025-04-20rm5ytxkjpcx.png\" width=\"839\" \/><\/p>\n<p id=\"ue5f296c6\">\u53ef\u4ee5\u770b\u5230\u786e\u5b9e\u4f7f\u7528\u663e\u5361\u4e86\u3002<\/p>\n<h3 id=\"BuqLq\">\u56db\u3001\u590d\u5236LXD\u5bb9\u5668<\/h3>\n<h4 id=\"Yg24x\">1. \u590d\u5236\u5bb9\u5668<\/h4>\n<p id=\"u4b2cfdc4\">\u5efa\u8bae\u5148\u914d\u7f6e\u597d\u4e00\u4e2a\u5bb9\u5668\u7684\u73af\u5883&#xff0c;\u518d\u6279\u91cf\u590d\u5236\u5f62\u6210\u5bb9\u5668\u96c6\u7fa4\u3002<\/p>\n<p>lxc copy &lt;\u539f\u5bb9\u5668\u540d&gt; &lt;\u65b0\u5bb9\u5668\u540d&gt; <\/p>\n<p id=\"u0d93ff0e\">\u8fd9\u91cc\u6211\u590d\u5236\u4e867\u4e2a&#xff0c;\u5171\u590d\u5236\u5b8c\u540e\u5171\u4e2a\u5bb9\u5668\u3002<\/p>\n<p id=\"u68eeb52e\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"176\" id=\"u0cbe6299\" src=\"2025-04-202lqohema1x4.png\" width=\"490\" \/><\/p>\n<h4 id=\"yuAm9\">2. \u914d\u7f6eSSH\u7aef\u53e3\u8f6c\u53d1<\/h4>\n<p id=\"u0f5d6aa7\">\u7531\u4e8e\u590d\u5236\u5bb9\u5668\u65f6\u4f1a\u628a\u663e\u5361\u8bbe\u5907\u548c\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907(device)\u90fd\u590d\u5236\u4e00\u904d&#xff0c;\u6240\u4ee5\u9700\u8981\u5148\u628a\u91cd\u590d\u7684\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907\u5220\u9664&#xff0c;\u5426\u5219\u65e0\u6cd5\u542f\u52a8\u5bb9\u5668\u3002<\/p>\n<p>#\u67e5\u770b\u5bb9\u5668\u8bbe\u5907<br \/>\nlxc config device show &lt;\u5bb9\u5668\u540d&gt;<\/p>\n<p>#\u5220\u9664\u5bb9\u5668\u8bbe\u5907<br \/>\nlxc config device remove &lt;\u5bb9\u5668\u540d&gt; &lt;\u8bbe\u5907\u540d&gt; <\/p>\n<p id=\"u069b8696\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"444\" id=\"u0bd15fb0\" src=\"2025-04-20kxnbprfb1ae.png\" width=\"749\" \/><\/p>\n<p id=\"u40e184ac\">\u542f\u52a8\u6240\u6709\u590d\u5236\u7684\u5bb9\u5668\u3002<\/p>\n<p>lxc start &lt;\u5bb9\u5668\u540d&gt; <\/p>\n<p id=\"ubd34ee11\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"545\" id=\"uc8303afa\" src=\"2025-04-20kft3t0hnw2v.png\" width=\"1154\" \/><\/p>\n<p id=\"u0a5af6a8\">\u91cd\u65b0\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907&#xff0c;\u8fde\u7eed\u914d\u7f6e\u7684\u65f6\u5019\u9700\u8981\u6539\u7684\u53ea\u6709\u5bb9\u5668\u540d&#xff0c;\u5bbf\u4e3b\u673a\u7aef\u53e3&#xff0c;\u5bb9\u5668ip\u3002<\/p>\n<p>lxc config device add &lt;\u5bb9\u5668\u540d&gt; &lt;\u5bf9\u8be5\u7aef\u53e3\u8f6c\u53d1\u8bbe\u5907\u547d\u540d&gt; proxy listen&#061;tcp:&lt;\u5bbf\u4e3b\u673aip&gt;:&lt;\u5bbf\u4e3b\u673a\u9009\u7528\u7aef\u53e3&gt; connect&#061;tcp:&lt;\u5bb9\u5668ip&gt;:22 <\/p>\n<p id=\"uf8aa01ef\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"284\" id=\"uef0dd73d\" src=\"2025-04-20i5q4pguoorq.png\" width=\"1345\" \/><\/p>\n<p id=\"ud442eac9\">\u63a5\u4e0b\u6765\u6d4b\u8bd5\u6bcf\u4e2a\u5bb9\u5668\u80fd\u5426SSH\u8bbf\u95ee\u5373\u53ef\u3002<\/p>\n<p id=\"u1a2f21a1\">\u5728\u516b\u4e2a\u5bb9\u5668\u4e2d\u540c\u65f6\u8fd0\u884c\u4ee3\u7801&#xff0c;\u663e\u5361\u5360\u7528\u589e\u52a0&#xff0c;\u8bf4\u660e\u5b9e\u73b0\u663e\u5361\u8d44\u6e90\u5171\u4eab\u3002<\/p>\n<p id=\"u0bfba576\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"86\" id=\"u5a7dcfcb\" src=\"2025-04-20kkwn0yx33gq.png\" width=\"837\" \/><\/p>\n<h3 id=\"WoJk8\">\u4e94\u3001\u914d\u7f6eLXD UI\u53ef\u89c6\u5316\u754c\u9762<\/h3>\n<p id=\"ueb537c62\">\u6253\u5f00\u5bbf\u4e3b\u673a&#xff0c;\u8fdb\u5165\u6743\u9650\u7528\u6237<\/p>\n<p id=\"ubfe23592\">sudo su<\/p>\n<p id=\"u56f58df6\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" id=\"udee178bc\" src=\"2025-04-20oi0dr3bwlal.png\" width=\"396\" \/><\/p>\n<p id=\"ufb1f0beb\">\u6253\u5f00LXD UI<\/p>\n<p>snap set lxd ui.enable&#061;true<br \/>\nsystemctl reload snap.lxd.daemon<br \/>\nlxc config set core.https_address :8443 <\/p>\n<p id=\"uf958b7de\">\u63a5\u4e0b\u6765\u5728\u80fd\u8fde\u63a5\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u73af\u5883\u4e0b\u8bbf\u95eehttps:\/\/&lt;\u5bbf\u4e3b\u673aip&gt;&#xff1a;8443<\/p>\n<p id=\"u31aeb1f0\">\u521d\u6b21\u8bbf\u95ee\u4f1a\u8ba9\u4f60\u9009\u62e9\u8bc1\u4e66&#xff0c;\u8fd8\u6ca1\u6709\u914d\u7f6e\u8fc7\u8bc1\u4e66\u76f4\u63a5\u70b9\u51fb\u53d6\u6d88\u5373\u53ef<\/p>\n<p id=\"ue2949d0f\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"434\" id=\"ue97c06d2\" src=\"2025-04-20fziw1rz41kp.png\" width=\"547\" \/><\/p>\n<p id=\"ufafdbec7\">\u70b9\u51fb&#039;Create a new certificate&#039;\u6765\u521b\u5efa\u8bc1\u4e66<\/p>\n<p id=\"u284cf171\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1290\" id=\"u4133763b\" src=\"2025-04-20ulkrsjeno23.png\" width=\"1810\" \/><\/p>\n<p id=\"u54948854\">\u6309\u7167\u56fe\u4e2d\u6b65\u9aa4\u64cd\u4f5c\u751f\u6210\u8bc1\u4e66&#xff0c;\u8fd9\u91cc\u7684\u5bc6\u7801\u9700\u8981\u8bb0\u4f4f\u3002<\/p>\n<p id=\"u31819709\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1285\" id=\"K0CAy\" src=\"2025-04-20xscdq1txjjy.png\" width=\"2550\" \/><\/p>\n<p id=\"u611b75c9\">\u4e4b\u540e\u4e0b\u8f7d\u4e24\u4e2a\u8bc1\u4e66\u6587\u4ef6,.crt\u5728\u5bbf\u4e3b\u673a\u4e0a\u8ba4\u8bc1&#xff0c;.pfx\u6587\u4ef6\u5219\u9700\u8981\u6309\u71673. Import\u91cc\u7684\u6b65\u9aa4\u4e3a\u6d4f\u89c8\u5668\u6dfb\u52a0\u8bc1\u4e66\u3002<\/p>\n<p id=\"u7c4f3e6a\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1012\" id=\"u075afb35\" src=\"2025-04-20yqi32tcyqyz.png\" width=\"1587\" \/><\/p>\n<p id=\"uce6c1698\">\u5c06.crt\u6587\u4ef6\u4e0a\u4f20\u81f3\u5bbf\u4e3b\u673a&#xff0c;\u8f93\u5165\u6307\u4ee4\u6dfb\u52a0\u8ba4\u8bc1<\/p>\n<p>lxc config trust add &lt;\u4f60\u7684.crt\u6587\u4ef6\u8def\u5f84&gt; <\/p>\n<p id=\"ub4e00a7d\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" id=\"u1836a705\" src=\"2025-04-200nxfpvlx4d0.png\" width=\"831\" \/><\/p>\n<p id=\"ube52aab5\">\u7136\u540e\u4e3a\u6d4f\u89c8\u5668\u6dfb\u52a0\u8bc1\u4e66&#xff0c;\u8fd9\u91cc\u6211\u4ee5Edge\u4e3a\u4f8b&#xff0c;\u5176\u4ed6\u6d4f\u89c8\u5668\u53c2\u71673. Import\u6b65\u9aa4\u91cc\u7ed9\u51fa\u7684\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<p id=\"u15c67c76\">\u6253\u5f00Edge\u6d4f\u89c8\u5668\u8bbe\u7f6eedge:\/\/settings\/privacy\u9690\u79c1\u3001\u641c\u7d22\u548c\u670d\u52a1-\u7ba1\u7406\u8bc1\u4e66-\u5bfc\u5165-\u4e0b\u4e00\u6b65-\u6d4f\u89c8-\u5c06\u6587\u4ef6\u7c7b\u578b\u9009\u62e9\u5207\u6362\u5230.pfx-\u9009\u62e9\u4f60\u521a\u521a\u4e0b\u8f7d\u7684.pfx\u6587\u4ef6-\u6253\u5f00\u3002<\/p>\n<p id=\"uce3e7f18\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1389\" id=\"u53c9af5f\" src=\"2025-04-205ie3mrlntyo.png\" width=\"2569\" \/><\/p>\n<p id=\"u1ec0c26b\">\u8f93\u5165\u4f60\u521a\u521a\u4e3a\u8bc1\u4e66\u6dfb\u52a0\u7684\u5bc6\u7801-\u4e0b\u4e00\u6b65<\/p>\n<p id=\"u61471640\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"719\" id=\"u74122b75\" src=\"2025-04-20cgsudimlba5.png\" width=\"785\" \/><\/p>\n<p id=\"ue99bdda8\">\u9009\u62e9\u7b2c\u4e00\u9879&#xff1a;\u6839\u636e\u8bc1\u4e66\u7c7b\u578b&#xff0c;\u81ea\u52a8\u9009\u62e9\u8bc1\u4e66\u5b58\u50a8\u3002<\/p>\n<p id=\"u6f3de8f5\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"764\" id=\"u70b860e0\" src=\"2025-04-20ngwnvc12dz0.png\" width=\"801\" \/><\/p>\n<p id=\"u1d608893\">\u5bfc\u5165\u6210\u529f\u4e4b\u540e\u91cd\u65b0\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95eehttps:\/\/&lt;\u5bbf\u4e3b\u673aip&gt;&#xff1a;8443&#xff0c;\u8fd9\u6b21\u9009\u62e9\u4f60\u521a\u521a\u6dfb\u52a0\u7684\u8bc1\u4e66&#xff0c;\u786e\u5b9a\u3002<\/p>\n<p id=\"u4a826448\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"429\" id=\"uc6df0959\" src=\"2025-04-20ii4f3331hsd.png\" width=\"547\" \/><\/p>\n<p id=\"u5e35d561\">\u7136\u540e\u5c31\u6210\u529f\u7528\u4e0aUI\u754c\u9762\u4e86&#xff0c;\u529f\u80fd\u9f50\u5168&#xff0c;\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p id=\"udc3d184d\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1285\" id=\"u57a6acdb\" src=\"2025-04-2023cjthltysd.png\" width=\"2550\" \/><\/p>\n<h3 id=\"EPPcm\">\u516d\u3001\u5982\u4f55\u5728LXD\u5bb9\u5668\u4e2d\u4f7f\u7528docker<\/h3>\n<p id=\"u2540255f\">\u53c2\u89c1\u89c6\u9891Running Docker inside of a LXD container (youtube.com) Youtube: Running Docker inside of a LXD container<\/p>\n<p id=\"u5f7a7366\">\u5b89\u88c5docker\u540e&#xff0c;\u5bbf\u4e3b\u673a\u53ef\u80fd\u65e0\u6cd5\u8f6c\u53d1\u5bb9\u5668\u6d41\u91cf&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u89c1&#xff1a;<\/p>\n<p id=\"u2e5910f3\">\u65e0\u6cd5\u8fde\u63a5\u5230 LXC \u5bb9\u5668\u91cc\u7684 docker \u7f51\u7edc &#8211; iMoe Tech<\/p>\n<p>\u672c\u6587\u4f0a\u59cb\u53c2\u8003\u4e86zhuanlan.zhihu.com\/p\/26095085240\u6587\u7ae0&#xff0c;\u540e\u7eed\u7ed3\u5408\u5b98\u65b9\u6587\u6863\u6210\u6587\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb850\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528LXD\u5bb9\u5668\u5728Ubuntu\u7cfb\u7edf\u4e0b\u5b9e\u73b0\u591a\u7528\u6237\u8fdb\u7a0b\u7ea7\u5171\u4eabGPU\u7b97\u529b\uff0c\u540c\u65f6\u7528\u6237\u4e4b\u95f4\u62e5\u6709\u9694\u79bb\u7684\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u3002_lxd\u5bb9\u5668<\/p>\n","protected":false},"author":2,"featured_media":28574,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-28594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/28594.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb850\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528LXD\u5bb9\u5668\u5728Ubuntu\u7cfb\u7edf\u4e0b\u5b9e\u73b0\u591a\u7528\u6237\u8fdb\u7a0b\u7ea7\u5171\u4eabGPU\u7b97\u529b\uff0c\u540c\u65f6\u7528\u6237\u4e4b\u95f4\u62e5\u6709\u9694\u79bb\u7684\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u3002_lxd\u5bb9\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/28594.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T17:26:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172616-6803dcb8dea04.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28594.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/28594.html\",\"name\":\"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T17:26:24+00:00\",\"dateModified\":\"2025-04-19T17:26:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/28594.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/28594.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28594.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/28594.html","og_locale":"zh_CN","og_type":"article","og_title":"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb850\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528LXD\u5bb9\u5668\u5728Ubuntu\u7cfb\u7edf\u4e0b\u5b9e\u73b0\u591a\u7528\u6237\u8fdb\u7a0b\u7ea7\u5171\u4eabGPU\u7b97\u529b\uff0c\u540c\u65f6\u7528\u6237\u4e4b\u95f4\u62e5\u6709\u9694\u79bb\u7684\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u3002_lxd\u5bb9\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/28594.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T17:26:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419172616-6803dcb8dea04.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/28594.html","url":"https:\/\/www.wsisp.com\/helps\/28594.html","name":"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T17:26:24+00:00","dateModified":"2025-04-19T17:26:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/28594.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/28594.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/28594.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LXD\u5bb9\u5668\u5b9e\u73b0\u8fdb\u7a0b\u7ea7\u5171\u4eab\u670d\u52a1\u5668GPU\u8d44\u6e90"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=28594"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28594\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/28574"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=28594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=28594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=28594"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=28594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}