在debian12基础上安装proxmox8
1.修改下主机名,改成prox8,修改下/etc/hosts文件
root@debian:/etc# nano /etc/hosts
127.0.0.1 localhost
174.139.xx.xx prox8 prox8
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
2.修改hostname
hostnamectl set-hostname prox8
怎么判断hostname修改成功了呢。敲命令查看,看看主机名是否显示成修改后的主机名,以及敲hostname –ip-address是否显示机子IP
root@debian:/etc# hostname
prox8
root@debian:/etc# hostname --ip-address
174.139.xx.xx
3.重启网络并重新进入shell
systemctl restart networking.service
4.添加PVE储存库
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
5.添加PVE储存库验证密钥
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
6.更新系统
apt update && apt full-upgrade
7.安装proxmox内核
apt install proxmox-default-kernel
#重启系统
systemctl reboot
8.安装proxmox软件
apt install proxmox-ve postfix open-iscsi chrony
选择邮件配置为local only,其余一路回车
9.防止冲突,移除debian内核。并更新grub
apt remove linux-image-amd64 'linux-image-6.1*'
update-grub
10.卸载 os-prober软件包
apt remove os-prober
11.重启并打开 https://ip:8006,即可进入PVE控制面板
文章评论