本教程为OEC安装PVE,镜像使用的是Flash_Armbian_25.05.0_rockchip_efused-wxy-oec_bookworm_6.1.99_server_2025.03.20.img
需要安装PVE先刷对应镜像再继续
百度网盘:https://pan.baidu.com/s/1w_Rt0ckVd70kBqk8fX8pAg?pwd=qv2g
夸克网盘:https://pan.quark.cn/s/f10b717e2e8c
迅雷网盘:https://pan.xunlei.com/s/VOPGMM2RpLoLl7fLi6wTKq4QA1?pwd=jn7k#
刷的时候要去掉 LoaderToDDR 勾选,具体如何刷机自行百度或者到恩山论坛查询教程很多就过多说明了。
单独只刷Flash_Armbian_25.05.0_rockchip_efused-wxy-oec_bookworm_6.1.99_server_2025.03.20.img 镜像可能会刷不进去
经测试先正常刷oec-jp.img 镜像 下载完成后 再选择Flash_Armbian_25.05.0_rockchip_efused-wxy-oec_bookworm_6.1.99_server_2025.03.20.img 就可以正常刷机了
此方法适用于所有ARM架构的服务器及盒子,只要是基于debian 12的都可以使用此方式安装PVE
1、编辑 /etc/hosts 文件
sudo nano /etc/hosts
原本的host文件
127.0.0.1 localhost
127.0.1.1 armbian
::1 localhost armbian ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouter
更新内容如下,IP按你自己的对应修改,直接删除原来的把下面的改成你的IP复制进去也行:
127.0.0.1 localhost.localdomain localhost
192.168.0.178 armbian.pvetest.com armbian
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
2、重新启动网络服务
sudo systemctl restart networking
3、验证配置
hostname --ip-address
输出如下就可以了
root@armbian:~# hostname --ip-address
::1 192.168.0.178
4、安装并启用 ifupdown2
dpkg -l | grep ifupdown2
有输出就是安装了,没输出就是没安装进行安装
sudo apt install ifupdown2
5、安装一些工具
sudo apt install bridge-utils isc-dhcp-client -y
6、配置固定静态IP
编辑/etc/network/interfaces 文件,创建vmbr0 桥接网络
sudo nano /etc/network/interfaces
复制下面内容填入,IP和网关改成你自己的
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.178/24
gateway 192.168.0.1
bridge-ports eth0
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*
7、 禁用 NetworkManager
查询是否使用 NetworkManager 有输出网卡就是使用了
nmcli device status
停止 NetworkManager服务并禁用它
sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
8、卸载 NetworkManager
sudo apt remove --purge network-manager
9、停止并禁用 systemd-resolved 服务
查询是否启用 systemd-resolved
systemctl status systemd-resolved
如果启用就停止
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
10、删除符号链接 /etc/resolv.conf
sudo rm /etc/resolv.conf
11、卸载 systemd-resolved
sudo apt remove --purge systemd-resolved
12、手动创建 /etc/resolv.conf
sudo nano /etc/resolv.conf
复制下面内容到里面
nameserver 8.8.8.8
nameserver 8.8.4.4
13、重新启动网络服务
保存并退出编辑器后,重新启动网络服务来应用新的静态 IP 配置
sudo systemctl restart networking
重新加载所有配置
sudo ifreload -a
14、 检查网络配置
使用ip a 命令检查新的网络配置是否生效:
ip a
您应该能看到vmbr0 接口的 IP 地址为您设置的静态 IP(如 192.168.0.78)IP是上面配置的
15、 测试连接
ping www.baidu.com
配置好网络后最好重启一下
16、换源,更换系统源和添加PVE源
直接删除/etc/apt/sources.list.d/下的所有文件
sudo rm -rf /etc/apt/sources.list.d/*
使用nano编辑器打开/etc/apt/sources.list文件
nano /etc/apt/sources.list
把下面的源复制粘贴进去,粘贴后检查一下是否有误,有些编辑器复制进去会内容会断头的,就是第一行会被删几个字符自行检查好
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port
# 这是PVE 源直接一起加就行了
17、添加key
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
18、更新源和升级软件
apt update && apt full-upgrade -y
19、开始安装PVE
apt install proxmox-ve postfix open-iscsi chrony -y
20、配置开机自启,这个应该默认就配置了不确定因为有几次安装始终没启动都是手动启动的弄上吧
systemctl enable pvedaemon
systemctl enable pve-cluster
如果安装过程提示:Please select the mail server configuration type that best meets your needs. 则选择No configuration。
安装完毕即可通过主机当前ip加上端口访问,如https://你的IP:8006
用户名为root,密码为Debian系统的root密码
安装后访问不了先检查一下是不是没启动,如果启动了访问不了大概率是证书问题就操作下面部分的,重新生成证书
查询PVE状态
systemctl status pvedaemon
systemctl status pve-cluster
如果未启动就启动服务
systemctl start pvedaemon
systemctl start pve-cluster
启用 pvedaemon 和 pve-cluster 服务开机自启
systemctl enable pvedaemon
systemctl enable pve-cluster
确认服务的自启状态
systemctl is-enabled pvedaemon
systemctl is-enabled pve-cluster
证书的修复
sudo pvecm updatecerts
手动删除并重新生成证书:
sudo rm -f /etc/pve/local/pve-ssl.key /etc/pve/local/pve-ssl.pem
sudo pveproxy restart
确保文件权限
sudo chmod 600 /etc/pve/local/pve-ssl.key
sudo chmod 644 /etc/pve/local/pve-ssl.pem
尝试重新生成证书:
generating pve root certificate failed
手动生成根证书
sudo openssl genpkey -algorithm RSA -out /etc/pve/priv/pve-root-ca.key
sudo openssl req -new -x509 -key /etc/pve/priv/pve-root-ca.key -out /etc/pve/pve-root-ca.pem -days 3650 -subj "/CN=Proxmox Virtual Environment/OU=Cluster/O=PVE"
重启相关服务
sudo systemctl restart pveproxy
sudo systemctl restart pvedaemon
然后再访问应该就可以了
如果后期安装了宝塔的即可安装环境必须要使用编译安装要不安装不上
版权声明:《 OEC安装PVE 8.3.3 安装好PVE在上面随便安装别的系统再也不用担心系统挂掉又要重刷OEC了 》为qinyuhui网络收集,侵删!文中未注明的文章皆为网络收集。
最后编辑:2025-5-1 07:05:31
提示:本文章评论功能已关闭