Debian11升级安装Proxmox VE7教程

文章目录

与Proxmox6大同小异。还是还是秉着靠人不如靠己,记录一下过程。

hostname修改


因为之后需要以网址的方式访问和申请证书,所以需要对应添加一个域名。

!以下IP和域名均为测试需要,请修改为自身实际IP地址和域名。!

nano /etc/hosts
127.0.0.1 localhost
193.142.146.1 eu.geekn.net eu #这里分别是ip,域名和节点名称
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

然后修改一下服务器自身对应域名:

nano /etc/hostname
eu.geekn.net #和上述域名对应

保存并重启服务器。

配置系统基础设置

##添加 Proxmox VE 存储库(这一步其实可以省略,加入到下面的源地址就行。):

echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

添加 Proxmox VE 存储库密钥:

大陆服务器(清华源):
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
海外服务器(官方源):
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

修改源地址:

nano  /etc/apt/sources.list
#清华源:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
#如果上一步没有添加,这一步就可以加入下方源地址,方便管理。
https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription


#官方源:
# deb https://deb.debian.org/debian bullseye main
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
deb https://deb.debian.org/debian bullseye main non-free contrib
deb-src https://deb.debian.org/debian bullseye main non-free contrib
deb https://deb.debian.org/debian-security bullseye-security main
deb-src https://deb.debian.org/debian-security bullseye-security main
# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian bullseye-updates main contrib non-free
# bullseye-backports, previously on backports.debian.org
deb https://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian bullseye-backports main contrib non-free

更新存储库和系统:

apt update && apt full-upgrade -y

出现几个选项都选y,并且软件包选择最新即可。

安装 Proxmox VE 7

apt install proxmox-ve postfix open-iscsi -y
apt remove os-prober

中间也是有y选y,选择类型那里,local 即可。结束以后重启。

连接到Proxmox VE7 界面

比如我的"https://eu.geekn.net:8006" 使用vps的root账号密码登录即可。

以上,结束。

原文链接:,转发请注明来源!

发表评论

  • 2 Responses to “Debian11升级安装Proxmox VE7教程”
    • 20220318 PING 通告 : miniPC Proxmox7 all in 记录贴 - 主机教程 - GeekN Blog
    • 20220501 PING 通告 : 利用Proxmox为低配独服或VPS开通NAT IPV4+DHCP IPV6小小机 - 主机教程 - GeekN Blog