在 Debian 11 Bullseye 上安装 Proxmox VE 7国内镜像源

介绍

受支持的 Proxmox VE 服务器的安装应通过 裸机 ISO 安装程序完成。在某些情况下,在正在运行的 Debian Bullseye 64 位上安装 Proxmox VE 是有意义的,特别是如果您想要自定义分区布局。对于此操作方法,任何官方 Bullseye 安装介质都可以使用。

安装标准的 Debian Bullseye (amd64)

安装标准的 Debian Bullseye,详细信息请参考Debian 安装指南,并配置静态 IP。建议只安装“标准系统实用程序”和“SSH 服务器”包选择,因为 Proxmox VE 为 QEMU 和 LXC 带来了自己的包。不需要桌面环境。

为您的 IP 地址添加 /etc/hosts 条目

您机器的主机名必须可通过/etc/hosts解析。这意味着在/etc/hosts 中,您的主机名需要以下条目之一:

  • IPv4 或
  • IPv6 或
  • IPv4 和 IPv6

注意:这也意味着删除默认存在的地址127.0.1.1。

例如,如果您的 IP 地址是192.168.15.77,并且您的主机名是prox4m1,那么您的/etc/hosts文件可能如下所示:

127.0.0.1       localhost
192.168.15.77   prox4m1.proxmox.com prox4m1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

您可以使用hostname命令测试您的设置是否正常:

hostname --ip-address
192.168.15.77 # should return your IP address here

安装 Proxmox VE

调整您的 sources.list

设置Debian 11国内源:

vi /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

添加 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

使用国内镜像:

echo "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

以 root 身份添加 Proxmox VE 存储库密钥(或使用 sudo):

wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg 
# verify
sha512sum /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg 
7fb03ec8a1675723d2853b84aa4fdb49a46a3bb72b9951361488bfd19b29aab0a789a4f8c7406e71a69aabbc727c936d3549731c4659ffa1a08f44db8fdcebfa  /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg 
通过运行更新您的存储库和系统:
apt update && apt full-upgrade

安装 Proxmox VE 包

安装 Proxmox VE 包

apt install proxmox-ve postfix open-iscsi

根据您的需要配置需要用户在安装时输入的包。

如果您的网络中有邮件服务器,您应该将 postfix 配置为卫星系统。您现有的邮件服务器将成为中继主机,它将 Proxmox VE 发送的电子邮件路由到其最终收件人。如果您不知道在此处输入什么,请选择仅本地并保留系统名称

最后,重新启动系统。

推荐:删除 os-prober 包

os-prober 包会扫描主机的所有分区,包括分配给来宾 VM 的分区,以创建双引导 GRUB 条目。如果您没有将 Proxmox VE 安装为另一个操作系统旁边的双引导,您可以安全地删除 os-prober 包。

apt remove os-prober

连接到 Proxmox VE 网络界面

连接到管理 Web 界面 (https://youripaddress:8006)。如果你是全新安装并且还没有添加任何用户,你应该使用 root 帐户和你的 linux root 密码,并选择“PAM Authentication”登录。

创建一个 Linux 桥

登录后,创建一个名为vmbr0的Linux Bridge,并将您的第一个网络接口添加到它。

猜你喜欢

转载自blog.csdn.net/allway2/article/details/121744959