{"id":123,"date":"2021-10-12T00:06:42","date_gmt":"2021-10-12T08:06:42","guid":{"rendered":"https:\/\/www.qiuqiuren.club\/?p=123"},"modified":"2024-08-02T21:11:21","modified_gmt":"2024-08-03T05:11:21","slug":"%e5%9c%a8debian-11%e4%b8%8a%e8%a3%85pve%e7%9a%84%e5%a4%b1%e8%b4%a5%e7%bb%8f%e5%8e%86","status":"publish","type":"post","link":"https:\/\/www.qiuqiuren.club\/?p=123","title":{"rendered":"\u5728debian 11\u4e0a\u88c5pve\u7684\u5931\u8d25\u7ecf\u5386"},"content":{"rendered":"<h2>0. \u51c6\u5907<\/h2>\n<h3>\u5347\u7ea7debian<\/h3>\n<p>\u672c\u6b21\u5c06\u5b89\u88c5proxmox ve 7. \u5b83\u53ef\u4ee5\u901a\u8fc7\u955c\u50cf\u4eceusb\u542f\u52a8\u8fdb\u884c\u5b89\u88c5\uff0c\u6216\u8005\u5b89\u88c5\u5728\u4e00\u53f0debian 11\u7cfb\u7edf\u4e0a\u3002<\/p>\n<p>\u7531\u4e8e\u817e\u8baf\u4e91\u4e0d\u652f\u6301\u4eceusb\u542f\u52a8\uff0c\u5fc5\u987b\u4ecedebian11\u4e0a\u901a\u8fc7ssh\u64cd\u4f5c\u5b89\u88c5\u3002<\/p>\n<p>\u817e\u8baf\u76ee\u524d\u955c\u50cf\u53ea\u6709debian10\uff0c\u56e0\u6b64\u8fd8\u9700\u8981\u4ece10\u5347\u7ea7\u523011\u3002<\/p>\n<p>\u5347\u7ea7debian\u7684\u64cd\u4f5cgoogle\u4e0a\u6709\uff0c\u672c\u6587\u4e5f\u4fdd\u5b58\u4e86\u4e00\u4efd\u4f5c\u4e3a\u9644\u4ef6\u3002<\/p>\n<p>ps: \u817e\u8baf\u4e91\u7684\u955c\u50cf\u6e90\u91cc\u9762\u6ca1\u6709\u6700\u65b0\u7684debian11\uff0c\u4f7f\u7528\u6e05\u534e\u6e90\u5373\u53ef\u3002<\/p>\n<pre><code># \u9ed8\u8ba4\u6ce8\u91ca\u4e86\u6e90\u7801\u955c\u50cf\u4ee5\u63d0\u9ad8 apt update \u901f\u5ea6\uff0c\u5982\u6709\u9700\u8981\u53ef\u81ea\u884c\u53d6\u6d88\u6ce8\u91ca\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye main contrib non-free\n# deb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye main contrib non-free\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-updates main contrib non-free\n# deb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-updates main contrib non-free\n\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-backports main contrib non-free\n# deb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-backports main contrib non-free\n\ndeb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian-security bullseye-security main contrib non-free\n# deb-src https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian-security bullseye-security main contrib non-free\n<\/code><\/pre>\n<h3>\u7ffb\u5899<\/h3>\n<p>\u540e\u7eed\u5b89\u88c5proxmox ve, \u5982\u679c\u4e0d\u7ffb\u5899\u5927\u6982\u7387\u4f1a\u5728apt install\u65f6\u5931\u8d25\uff0c\u9700\u8981\u7ffb\u5899\u3002<\/p>\n<p>\u7ffb\u5899\u670d\u52a1\u5668\u9700\u8981\u81ea\u5df1\u4e70\uff0c\u5ba2\u6237\u7aef\u9009\u62e9clash\u3002clash\u4f7f\u7528\u8bf4\u660egoogle\u4e0a\u6709\uff0c\u5177\u4f53\u4e0d\u8c08\u3002<\/p>\n<p>\u540c\u65f6\u9700\u8981\u914d\u7f6eapt\u4f7f\u7528\u4ee3\u7406.<\/p>\n<p>\u9996\u5148<\/p>\n<pre><code>sudo touch \/etc\/apt\/apt.conf.d\/proxy.conf<\/code><\/pre>\n<p>\u7136\u540e\u5728\u65b0\u6587\u4ef6\u4e2d\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9:<\/p>\n<pre><code>Acquire {\n  HTTP::proxy &quot;http:\/\/127.0.0.1:7890&quot;;\n  HTTPS::proxy &quot;http:\/\/127.0.0.1:7890&quot;;\n}<\/code><\/pre>\n<p>\u4e0a\u6587\u4e2d\u76848080\u66ff\u6362\u6210clash\u4f7f\u7528\u7684\u7aef\u53e3\u5373\u53ef<\/p>\n<h3>\u78c1\u76d8\u5206\u533a<\/h3>\n<p>\u9ed1\u77f3\u7684\u673a\u5668\u53ea\u5206\u4e8610G\u7684sda1\uff0c\u8981\u91cd\u5efa\u5206\u533a<\/p>\n<pre><code>root@rescue ~ # fdisk \/dev\/sda\n\nCommand (m for help): d\nSelected partition 1\n\nCommand (m for help): n\nPartition type:\n   p   primary (0 primary, 0 extended, 4 free)\n   e   extended\nSelect (default p): p\nPartition number (1-4, default 1):\nUsing default value 1\nFirst sector (2048-199999487, default 2048):\nUsing default value 2048\nLast sector, +sectors or +size{K,M,G} (2048-199999487, default 199999487):\nUsing default value 199999487\n\nPartition #1 contains a ext4 signature.\nDo you want to remove the signature? [Y]es\/[N]o: N\n\nCommand (m for help): p\n\nDisk \/dev\/sda: 102.4 GB, 102399737856 bytes\n255 heads, 63 sectors\/track, 12449 cylinders, total 199999488 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisk identifier: 0x00051eb3\n\n   Device Boot      Start         End      Blocks   Id  System\n\/dev\/sda1            2048   199999487    99998720   83  Linux\n\nCommand (m for help): w\nThe partition table has been altered!\n\nCalling ioctl() to re-read partition table.\nSyncing disks.<\/code><\/pre>\n<pre><code># resize2fs \/dev\/sda1\nresize2fs 1.42.5 (29-Jul-2012)\nResizing the filesystem on \/dev\/sda1 to 24999680 (4k) blocks.\nThe filesystem on \/dev\/sda1 is now 24999680 blocks long.<\/code><\/pre>\n<pre><code>systemctl reboot<\/code><\/pre>\n<h2>1. \u5b89\u88c5ProxmoxVE<\/h2>\n<p>\u6309\u6b64\u6587\u64cd\u4f5c\u5373\u53ef<\/p>\n<p><a href=\"https:\/\/pve.proxmox.com\/wiki\/Install_Proxmox_VE_on_Debian_11_Bullseye\">https:\/\/pve.proxmox.com\/wiki\/Install_Proxmox_VE_on_Debian_11_Bullseye<\/a><\/p>\n<p>\u4e5f\u4fdd\u5b58\u4e86\u4e00\u4efd\u9644\u4ef6\u3002<\/p>\n<p>\u6ce8\u610f\u5728\u7b2c\u4e00\u6b65-&quot;Add an \/etc\/hosts entry for your IP address&quot;\u65f6\uff0c\u4f7f\u7528\u5185\u7f51\u7684ip\u5730\u5740\u3002\u8fd9\u6837\u65b9\u4fbf\u540e\u7eed\u52a0\u5165cluster<\/p>\n<h2>2. \u663e\u5361\u5206\u5272<\/h2>\n<p>\u5931\u8d25\uff0cmdevctl types\u6ca1\u6709\u663e\u793a\u4efb\u4f55vGPU\u914d\u7f6e<\/p>\n<h2>\u91cd\u5f00<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>0. \u51c6\u5907 \u5347\u7ea7debian \u672c\u6b21\u5c06\u5b89\u88c5proxmox ve 7. \u5b83\u53ef\u4ee5\u901a\u8fc7\u955c\u50cf\u4eceusb\u542f\u52a8\u8fdb\u884c\u5b89\u88c5\uff0c\u6216\u8005\u5b89<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-11","category-3"],"_links":{"self":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":1,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qiuqiuren.club\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}