「PVE」- 安装 | 升级 | Chapter 2 | Installing Proxmox VE

该笔记将记录:如何安装 PVE 环境,以及相关问题的处理方法;

版本选择

参考 Proxmox VE/Roadmap 文档,

镜像下载 | https://pve.proxmox.com/wiki/Downloads

针对 PVE 与 Debian 的版本关系

依据 PVE APT sources.list 配置,其对应关系如下:


PVE 7.3 => Debian Bullseye
PVE 8.1 => Debian Bookworm

安装方式

通过 PVE ISO 安装

下载地址 | https://www.proxmox.com/en/downloads/proxmox-virtual-environment/iso

官方提供 PVE 镜像,我们能够通过 PVE 镜像来直接安装:Installation – Proxmox VE

# for Linux
dd bs=1M conv=fdatasync if=./proxmox-ve_*.iso of=/dev/XYZ

# for Windows
# 通过 Etcher 或 Rufus 工具,将 ISO 写入 USB 存储设备;

通过 Debian-based 升级

Alternatively, Proxmox VE can be installed on top of an existing Debian system.
某些特殊硬件,鉴于比如硬件驱动等等原因,我们需要使用这种安装方法:
Install Proxmox VE on Debian Buster – Proxmox VE

based on Debian 11(Install Proxmox VE on Debian 11 Bullseye – Proxmox VE):

# vim /etc/hosts
...
192.168.15.77   prox4m1.example.com prox4m1
...

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

# 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

# https://github.com/CumulusNetworks/ifupdown2/issues/177
# 否则,当后续装 PVE 环境时,会出现 ifupdwon2 安装错误(执行 Post Script 失败);
# systemctl enable networking

# apt install proxmox-ve postfix open-iscsi

# systemctl reboot

# apt remove linux-image-amd64 'linux-image-5.10*'
# update-grub

# Recommended:
apt remove os-prober

其他内容

pveperf,性能测试工具,基础测试;

Do not use UNetbootin. It does not work with the Proxmox VE installation image
dd for macOS and Linux;
Etcher or Rufus for Windows;

Proxmox VE can be installed on ZFS. As ZFS offers several software RAID levels, this is an option for
systems that don’t have a hardware RAID controller.
Warning: ZFS on top of any hardware RAID is not supported and can result in data loss. Typically you should never run ZFS on top of disks configured in a RAID array. Note that ZFS does not have to run in RAID mode. You can just use individual disks. However, virtually 99% of people run ZFS for the RAID portion of it.(ZFS best practices with hardware RAID

下载:https://www.proxmox.com/en/downloads/category/iso-images-pve

访问:https://ip-address:8006

[Sol] … Unsupported video frequency …

Unsupported video frequency while installation of PVE 7.2 | Proxmox Support Forum

Dell PowerEdge R750,PVE 7.2;

问题描述:
在安装时,能够正常进入 PVE 的安装主界面;但是,选择 Install Proxmox 选项,则显示器提示不支持的刷新频率;

原因分析:
可能内核的问题;

解决方案:
1)我们是 Dell 服务器,通过 iDRAC/Virtual Console 功能,可以不用接入显示器;
2)或者,更换显示器(应该使用低端的显示器?);
3)或者,尝试安装 PVE 7.1 版本,然后在进行系统升级;

[Sol] … Proxmox 8.3 installer is stuck at loading some drivers …

类似 Proxmox 8.2.1 installer is stuck at loading some drivers. : r/Proxmox 描述

问题分析:我们猜测是硬件版本较旧,所以我们尝试 PVE 7.4 版本。

解决方案:安装 PVE 7.4 版本,问题得以解决。

for ARM64

jiangcuo/Proxmox-Arm64

https://github.com/jiangcuo/Proxmox-Arm64
https://mirrors.apqa.cn/proxmox/isos/
proxmox on arm64 | Proxmox Support Forum

选择该项目的原因:我们使用 FT 处理器,而该项目针对 FT 进行测试。

我们通过 Debian 添加 Source List 的方式进行安装:
1)下载 Debian 11 ARM64 版本,并参考官方文档进行安装即可,无需特殊配置;
2)参考 Install Proxmox VE on Debian bullseye 文档,将 Debian 升级 PVE 环境;
3)重启系统(理论上无需重启,但为了确保所有的服务能够正常运行,所以进行重启);

# 06/21/23 遇到 guest has not initialized the display (yet) 问题,未解决;

服务升级

7.3 ⇒ 7.4

apt-get update && apt-get upgrade