一、更新系统

apt update && apt upgrade -y

二、修改主机名

pve.lonelyxm.com为主机名,自行修改

sudo hostnamectl set-hostname pve.lonelyxm.com --static

三、IP设置

①查看IP

ip a

pve-1.png

②编辑/etc/hosts

nano /etc/hosts

pve-2.png

③根据第二大步的主机名修改

pve-3.png

④按Ctrl+x,y,回车保存

⑤用hostname --ip-address查看修改成功没

pve-4.png

四、添加 Proxmox VE源

  • ①官方源

储存库

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

存储库密钥

wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg 

ceph源

echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
  • ②国内源毛病多,搞懵了,以后上

③更新并安装

apt update && apt  -y full-upgrade

④更新Proxmox VE内核

apt install pve-kernel-6.2

⑤重启

systemctl reboot

⑥安装Proxmox VE软件包

apt install proxmox-ve postfix open-iscsi chrony

安装中有2个窗口,第一个选最下面的,第二个按Tab回车就行了

⑦卸载旧内核

apt remove linux-image-amd64 'linux-image-6.1*'

⑧更新grub2

update-grub

⑨删除os-prober 软件包

apt remove os-prober