Debian11安装Proxmox VE 7

修改hosts和主机名

/etc/hosts文件进行如下修改,添加如下内容

<ip> <hostname>.proxmox.com <hostname>

例如:192.168.3.10 ensky.proxmox.com ensky

nano /etc/hosts

%title插图%num

修改完hosts文件后,设置服务器hostname为我们刚刚填加的hostname

hostnamectl set-hostname <hostname>

配置好以后,使用命令hostname --ip-address 测试一下,应该需要显示192.168.3.10,也就是显示配置好的IP才对。

设置Debian 11国内源

# 先备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
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
deb https://mirrors.ustc.edu.cn/proxmox/debian bullseye pve-no-subscription

添加 Proxmox VE 存储库

echo 'deb http://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list

添加 Proxmox VE 存储库密钥

# 文件下载到/etc/apt/trusted.gpg.d/
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

更新存储库和系统

apt update && apt full-upgrade

%title插图%num

安装 Proxmox VE

apt install proxmox-ve postfix open-iscsi

此处如果安装出现错误,例如

Sub-process /usr/bin/dpkg returned an error code

那么需要你首先检查你的IP配置尤其是网关,你是否可以ping www.baidu.com

%title插图%num

然后卸载

apt-get remove proxmox*

尝试重新安装

apt install proxmox-ve postfix open-iscsi

【上面安装未出错,直接跳过上面内容到这步】根据官网的建议,安装结束后建议卸载

apt remove os-prober

最后重启Debian即可完成

systemctl reboot

 

 

版权声明:
作者:Leapteam
链接:https://blog.xwyue.com/1173.html
来源:星跃博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
< <上一篇
下一篇>>