{"id":3387,"date":"2021-03-06T10:31:31","date_gmt":"2021-03-06T02:31:31","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=3387"},"modified":"2021-03-06T10:41:31","modified_gmt":"2021-03-06T02:41:31","slug":"%e5%9c%a8debian-10%ef%bc%88buster%ef%bc%89%e4%b8%8a%e5%ae%89%e8%a3%85proxmox-ve-6%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=3387","title":{"rendered":"\u5728Debian 10\uff08Buster\uff09\u4e0a\u5b89\u88c5Proxmox VE 6\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u5b89\u88c5\u540e\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u8fd8\u5728\u60f3\u529e\u6cd5\u89e3\u51b3<\/p>\n<hr \/>\n<p>vm\uff1a ping domain<br \/>\nhost\uff1a<br \/>\njournalctl -n xx -f<br \/>\nUFW BLOCK .....53......<\/p>\n<hr \/>\n<h2>Introduction<\/h2>\n<p>The installation of a supported Proxmox VE server should be done via Bare-metal_ISO_Installer. In some case it makes sense to install Proxmox VE on top of a running Debian Buster 64-bit, especially if you want a custom partition layout. For this HowTO the following Debian Buster ISO was used: <a href=\"https:\/\/cdimage.debian.org\/debian-cd\/current\/amd64\/iso-cd\/debian-10.0.0-amd64-netinst.iso\">[1]<\/a>.<\/p>\n<h2>Install a standard Debian Buster (amd64)<\/h2>\n<p>Install a standard Debian Buster, for details see <a href=\"http:\/\/www.debian.org\/\">Debian<\/a>, and configure a static IP. It is recommended to only install the &quot;standard&quot; package selection, and nothing else, as Proxmox VE brings its own packages for qemu, lxc. A desktop environment is not necessary.<\/p>\n<h3>Add an \/etc\/hosts entry for your IP address<\/h3>\n<p>Please make sure that your machine's hostname is resolvable via <code>\/etc\/hosts<\/code>, <em>i.e.<\/em> you need an entry in <code>\/etc\/hosts<\/code> which assigns an address to its hostname.<\/p>\n<p>Make sure that you have configured one of the following addresses in <code>\/etc\/hosts<\/code> for your hostname:<\/p>\n<ul>\n<li>1 IPv4 or<\/li>\n<li>1 IPv6 or<\/li>\n<li>1 IPv4 and 1 IPv6<\/li>\n<\/ul>\n<p><strong>Note<\/strong>: This also means editing or rather removing the address <code>127.0.1.1<\/code> that might be present as default.<\/p>\n<p>For instance, if your IP address is <code>192.168.15.77<\/code>, and your hostname <code>prox4m1<\/code>, then your <code>\/etc\/hosts<\/code> file could look like:<\/p>\n<pre><code>127.0.0.1       localhost.localdomain localhost\n192.168.15.77   prox4m1.proxmox.com prox4m1\n\n# The following lines are desirable for IPv6 capable hosts\n::1     localhost ip6-localhost ip6-loopback\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters<\/code><\/pre>\n<p>You can test if your setup is ok using the <code>hostname<\/code> command:<\/p>\n<pre><code>hostname --ip-address\n192.168.15.77 # should return your IP address here<\/code><\/pre>\n<h2>Install Proxmox VE<\/h2>\n<h3>Adapt your sources.list<\/h3>\n<p>Add the Proxmox VE repository:<\/p>\n<pre><code>echo &quot;deb http:\/\/download.proxmox.com\/debian\/pve buster pve-no-subscription&quot; &gt; \/etc\/apt\/sources.list.d\/pve-install-repo.list<\/code><\/pre>\n<p>Add the Proxmox VE repository key:<\/p>\n<pre><code>wget http:\/\/download.proxmox.com\/debian\/proxmox-ve-release-6.x.gpg -O \/etc\/apt\/trusted.gpg.d\/proxmox-ve-release-6.x.gpg\nchmod +r \/etc\/apt\/trusted.gpg.d\/proxmox-ve-release-6.x.gpg  # optional, if you have a non-default umask<\/code><\/pre>\n<p>Update your repository and system by running:<\/p>\n<pre><code>apt update &amp;&amp; apt full-upgrade<\/code><\/pre>\n<p><strong>NOTE:<\/strong> If you have enabled other another arch (typically, i386 to run some older software) and apt complains about not being able to find \/binary-i386: &quot;Unable to find expected entry 'pve\/binary-i386\/Packages'&quot; you need to remove other arch or use instead the row:<\/p>\n<pre><code>deb [arch=amd64] http:\/\/download.proxmox.com\/debian\/pve buster pve-no-subscription<\/code><\/pre>\n<p>this is because Proxmox repository does not have any other arch besides amd64; more info about multiarch on debian at: <a href=\"https:\/\/wiki.debian.org\/Multiarch\/HOWTO\">https:\/\/wiki.debian.org\/Multiarch\/HOWTO<\/a>.<\/p>\n<h3>Install Proxmox VE packages<\/h3>\n<p>Install the Proxmox VE packages<\/p>\n<pre><code>apt install proxmox-ve postfix open-iscsi<\/code><\/pre>\n<p>Configure packages which require user input on installation according to your needs (e.g. Samba asking about WINS\/DHCP support). If you have a mail server in your network, you should configure postfix as a <strong>satellite system<\/strong>, your existing mail server will then be the <em>relay host<\/em> which will route the emails sent by the Proxmox server to their final recipient.<\/p>\n<p>If you don't know what to enter here, choose <strong>local only<\/strong> and leave the <em>system name<\/em> as is.<\/p>\n<p>Finally, reboot your system, the new Proxmox VE kernel should be automatically selected in the GRUB menu.<\/p>\n<p><strong>Note<\/strong>: If you have a subscription key don't forget to switch to the enterprise repository after installation, see <a href=\"https:\/\/pve.proxmox.com\/wiki\/Package_repositories\">Package repositories<\/a>.<\/p>\n<h4>Recommended: remove the os-prober package<\/h4>\n<p>The os-prober package scans all the partitions of your host, including those assigned to guests VMs, to create dual-boot GRUB entries. If you didn't install Proxmox VE as dual boot beside another Operating System, you can safely remove the os-prober package.<\/p>\n<pre><code>apt remove os-prober<\/code><\/pre>\n<h2>Connect to the Proxmox VE web interface<\/h2>\n<p>Connect to the admin web interface (<a href=\"https:\/\/youripaddress:8006\">https:\/\/youripaddress:8006<\/a>). If you have a fresh install and didn't add any users yet, you should use the root account with your linux root password, and select &quot;PAM Authentication&quot; to log in.<\/p>\n<p>Once logged in, create a <code>Linux Bridge<\/code> called <code>vmbr0<\/code>, and add your first network interface to it.<\/p>\n<p><a href=\"https:\/\/pve.proxmox.com\/wiki\/File:Screen-vmbr0-setup-for-ext6.png\"><img decoding=\"async\" src=\"https:\/\/pve.proxmox.com\/mediawiki\/images\/8\/84\/Screen-vmbr0-setup-for-ext6.png\" alt=\"Adapt vmbr0 settings\" \/><\/a><\/p>\n<h2>Troubleshooting<\/h2>\n<h3>resolv.conf gets overwritten<\/h3>\n<p>The PVE GUI expects to control DNS management and will no longer take its DNS settings from <code>\/etc\/network\/interfaces<\/code>. Any package that auto-generates (overwrites) <code>\/etc\/resolv.conf<\/code> will cause DNS to fail, e.g. packages 'resolvconf' for IPv4 and 'rdnssd' for IPv6.<\/p>\n<h3>ipcc_send_rec[1] failed<\/h3>\n<p>If you see<\/p>\n<pre><code>ipcc_send_rec[1] failed: Connection refused<\/code><\/pre>\n<p>then you should review your <code>\/etc\/hosts<\/code> file according to the instructions above.<\/p>\n<h2>Optional Steps<\/h2>\n<h3>Optional: Remove the Debian kernel<\/h3>\n<pre><code>apt remove linux-image-amd64 &#039;linux-image-4.19*&#039;<\/code><\/pre>\n<p>Update and check grub2 config by running:<\/p>\n<pre><code>update-grub<\/code><\/pre>\n<p>\u6211\u4eec\u5c06\u4ecb\u7ecd\u5728Debian 10\uff08Buster\uff09Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5Proxmox VE 6\u670d\u52a1\u5668\uff0c\u63a8\u8350\u548c\u652f\u6301\u7684Proxmox VE\u670d\u52a1\u5668\u5b89\u88c5\u901a\u8fc7Bare-metal_ISO_Installer\u5b8c\u6210\u3002<\/p>\n<h4>\u7b80\u4ecb<\/h4>\n<p>Proxmox\u865a\u62df\u73af\u5883\uff08VE\uff09\u662f\u4e00\u79cd\u4f01\u4e1a\u7ea7\u5f00\u6e90\u670d\u52a1\u5668\u865a\u62df\u5316\u89e3\u51b3\u65b9\u6848\uff0c\u57fa\u4e8eDebian Linux\u53d1\u884c\u7248\uff0c\u5177\u6709\u7ecf\u8fc7\u4fee\u6539\u7684Ubuntu LTS\u5185\u6838\uff0c\u5b83\u5141\u8bb8\u4f60\u90e8\u7f72\u548c\u7ba1\u7406\u865a\u62df\u673a\u548c\u5bb9\u5668\u3002<\/p>\n<p>\u6b64\u8bbe\u7f6e\u5047\u8bbe\u4f60\u6b63\u5728\u8fd0\u884cDebian 10 Buster Linux\u670d\u52a1\u5668\uff08\u53c2\u8003\uff1a\u5b89\u88c5Debian 10 Buster\u7684\u65b9\u6cd5\uff09\uff0c\u5982\u679c\u4f60\u6ca1\u6709\uff0c\u8bf7\u6309\u7167\u6211\u4eec\u7684\u53c2\u8003\u6587\u7ae0\u5728\u5c06\u7528\u4f5c\u865a\u62df\u673a\u76d1\u63a7\u7a0b\u5e8f\u7684\u4e13\u7528\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Debian 10\uff0c\u8bf7\u6ce8\u610f\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u652f\u6301Intel 64\u6216AMD64 CPU\u6269\u5c55\u768464\u4f4d\u5904\u7406\u5668\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5728Debian 10\uff08Buster\uff09\u4e0a\u5b89\u88c5Proxmox VE 6\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u4e00\u3001\u66f4\u65b0Debian OS\u548c\u8bbe\u7f6e\u7cfb\u7edf\u4e3b\u673a\u540d<\/p>\n<p>1\u3001\u66f4\u65b0Debian OS<\/p>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\u66f4\u65b0apt\u5305\u7d22\u5f15\uff1a<\/p>\n<p>sudo apt -y update<\/p>\n<p>sudo apt -y upgrade<\/p>\n<p>sudo reboot<\/p>\n<p>2\u3001\u8bbe\u7f6e\u7cfb\u7edf\u4e3b\u673a\u540d<\/p>\n<p>\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u4e3b\u673a\u540d\u5e76\u786e\u4fdd\u5b83\u53ef\u4ee5\u901a\u8fc7\/etc\/hosts\u89e3\u6790\uff1a<\/p>\n<p>sudo hostnamectl set-hostname prox6node01.example.com --static<\/p>\n<p>echo &quot;10.1.1.10 prox6node01.example.com prox6node01&quot; | sudo tee -a \/etc\/hosts<\/p>\n<p>example.com\u5e94\u66ff\u6362\u4e3a\u6709\u6548\u7684\u57df\u540d\u3002<\/p>\n<p>\u4e8c\u3001\u6dfb\u52a0Proxmox VE\u5b58\u50a8\u5e93<\/p>\n<p>\u6240\u6709Proxmox\u8f6f\u4ef6\u5305\u90fd\u5c06\u4ece\u5339\u914d\u7684\u4e0a\u6e38\u5b58\u50a8\u5e93\u4e2d\u63d0\u53d6\uff0c\u8be5\u5b58\u50a8\u5e93\u662f\u624b\u52a8\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\uff0c\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0Proxmox VE No-Subscription Repository\u3002<\/p>\n<p>\u5bfc\u5165GPG\u5bc6\u94a5\uff1a<\/p>\n<p>wget -qO - <a href=\"http:\/\/download.proxmox.com\/debian\/proxmox-ve-release-6.x.gpg\">http:\/\/download.proxmox.com\/debian\/proxmox-ve-release-6.x.gpg<\/a> | sudo apt-key add -<\/p>\n<p>-------- or -------<\/p>\n<p>wget <a href=\"http:\/\/download.proxmox.com\/debian\/proxmox-ve-release-6.x.gpg\">http:\/\/download.proxmox.com\/debian\/proxmox-ve-release-6.x.gpg<\/a><\/p>\n<p>sudo mv proxmox-ve-release-6.x.gpg \/etc\/apt\/trusted.gpg.d\/proxmox-ve-release-6.x.gpg<\/p>\n<p>chmod +r \/etc\/apt\/trusted.gpg.d\/proxmox-ve-release-6.x.gpg<\/p>\n<p>\u7136\u540e\u6dfb\u52a0Proxmox VE\u5b58\u50a8\u5e93\uff1a<\/p>\n<p>echo &quot;deb <a href=\"http:\/\/download.proxmox.com\/debian\/pve\">http:\/\/download.proxmox.com\/debian\/pve<\/a> buster pve-no-subscription&quot; | sudo tee \/etc\/apt\/sources.list.d\/pve-install-repo.list<\/p>\n<p>\u4f60\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u5b58\u50a8\u5e93\u548c\u7cfb\u7edf\uff1a<\/p>\n<p>sudo apt update &amp;&amp; sudo apt dist-upgrade<\/p>\n<p>\u6dfb\u52a0Proxmox VE Ceph\u5b58\u50a8\u5e93\uff1a<\/p>\n<p>\u8fd9\u662fProxmox VE\u7684\u4e3b\u8981Ceph\u5b58\u50a8\u5e93\uff0c\u5e76\u4fdd\u5b58Ceph\u8f6f\u4ef6\u5305\u4ee5\u4f9b\u751f\u4ea7\u4f7f\u7528\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b64\u5b58\u50a8\u5e93\u4ec5\u66f4\u65b0Ceph\u5ba2\u6237\u7aef\uff1a<\/p>\n<p>echo &quot;deb <a href=\"http:\/\/download.proxmox.com\/debian\/ceph-nautilus\">http:\/\/download.proxmox.com\/debian\/ceph-nautilus<\/a> buster main&quot; | sudo tee \/etc\/apt\/sources.list.d\/ceph.list<\/p>\n<p>\u4e09\u3001\u5b89\u88c5Proxmox VE\u8f6f\u4ef6\u5305<\/p>\n<p>\u8fd9\u4e9b\u662f\u4e3a\u5b89\u88c5Proxmox VE\u8f6f\u4ef6\u5305\u800c\u6267\u884c\u7684\u547d\u4ee4\uff1a<\/p>\n<p>sudo apt install proxmox-ve postfix open-iscsi<\/p>\n<p>\u5982\u679c\u4f60\u7684\u7f51\u7edc\u4e2d\u6709\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u5219\u5e94\u5c06postfix\u914d\u7f6e\u4e3asatellite system\uff0c\u5e76\u4e14\u73b0\u6709\u7684\u90ae\u4ef6\u670d\u52a1\u5668\u5c06\u662f\u201crelay host\u201d\uff0c\u5b83\u5c06\u628aproxmox\u670d\u52a1\u5668\u53d1\u9001\u7684\u7535\u5b50\u90ae\u4ef6\u8def\u7531\u5230\u6700\u7ec8\u6536\u4ef6\u4eba\uff0c\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u5728\u6b64\u8f93\u5165\u4ec0\u4e48\uff0c\u8bf7\u9009\u62e9\u4ec5\u9650\u672c\u5730\u3002<\/p>\n<p>\u5b89\u88c5\u540e\u91cd\u65b0\u542f\u52a8Debian\u7cfb\u7edf\u4ee5\u4f7f\u7528Proxmox VE\u5185\u6838\u542f\u52a8\uff1a<\/p>\n<p>sudo reboot<\/p>\n<p>\u56db\u3001\u8bbf\u95eeProxmox VE Web\u754c\u9762<\/p>\n<p>\u8fde\u63a5\u5230Proxmox VE\u7ba1\u7406Web\u754c\u9762\uff08<a href=\"https:\/\/youripaddress:8006\">https:\/\/youripaddress:8006<\/a>\uff09\uff1a<\/p>\n<p>Proxmox VE\u63a7\u5236\u9762\u677f\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>\u9009\u62e9\u201cPAM Authentication\u201d\u5e76\u4f7f\u7528\u670d\u52a1\u5668\u7684root\u7528\u6237\u5bc6\u7801\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n<p>\u767b\u5f55\u540e\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3avmbr0\u7684Linux Bridge\uff1a<\/p>\n<p>\u5e76\u6dfb\u52a0\u4f60\u7684\u7b2c\u4e00\u4e2a\u7f51\u7edc\u63a5\u53e3\uff1a<\/p>\n<p>\u81f3\u6b64\uff0c\u6574\u4e2aProxmox VE 6\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u540e\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u8fd8\u5728\u60f3\u529e\u6cd5\u89e3\u51b3 vm\uff1a ping domain host\uff1a journalctl -n xx -f UFW BLOCK &#8230;..53&#8230;&#8230; Introduction The &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-3387","post","type-post","status-publish","format-standard","hentry","category-76"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3387"}],"version-history":[{"count":4,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3387\/revisions"}],"predecessor-version":[{"id":3391,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3387\/revisions\/3391"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}