docs:vm:pve

Proxmox VE

略

因站长买的是N5095工控主板,默认是LVDS输出,U盘刻录安装时主屏显示为白屏,因此采用第二种方法,先安装Debian系统,然后安装PVE。

编辑hosts:

nano /etc/hosts
# 内容如下,192.168.1.XX替换为自己的IP,n5095替换为自己的主机名
127.0.0.1 localhost
192.168.1.XX n5095.proxmox.com n5095

验证设置是否配置正确:

hostname --ip-address

添加PVE库和密钥:

echo "deb [arch=amd64] https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
apt update

安装PVE内核并重启:

apt install pve-kernel-6.2
reboot

安装PVE软件:

apt install proxmox-ve postfix open-iscsi chrony

删除Debian内核:

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

移除os-prober:

apt remove os-prober
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.XXX/24
        gateway 192.168.1.1
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0

更新软件:apt update

更新:apt dist-upgrade

查看版本:pveversion -v

硬盘类型:ide、sata、virtio block、scsi

CPU类型:

cat > /etc/apt/sources.list.d/pve-no-subscription.sources <<EOF
Types: deb
URIs: https://mirrors.ustc.edu.cn/proxmox/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF
# 查看版本(含各组件)
pveversion -v
# 关闭PVE自动更新(apt update)
systemctl disable pve-daily-update.timer
  • docs/vm/pve.txt
  • 最后更改: 2026/09/27 15:55
  • 由 ossdate