Arm Proxmox VE8.0 安装教程
安装 Armbian,Amlogic, Rockchip 和 Allwinner 的安装方法不同
请阅读相关章节:https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/documents/README.cn.md
固件地址:https://github.com/ophub/amlogic-s9xxx-armbian/releases
版本选择:bookworm
输入命令:armbian-software 后选择 308 可一键自动安装(网络已科学)
官方固件:https://www.armbian.com https://github.com/armbian
手搓教程:
1、禁用 zram #非必须
systemctl disable armbian-zram-config.service
systemctl disable armbian-ramlog.service
2、禁用 NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
3、修改网络配置,按需修改,mac 地址(fc:7c:02:28:99:0e)及网口名(eth0)用 ip a 查看后替换
nano /etc/network/interfaces
例:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
hwaddress ether fc:7c:02:28:99:0e
address 192.168.1.228/24
gateway 192.168.1.1
4、修改 dns,按需修改或填写公共 dns(223.5.5.5 等)
nano /etc/resolv.conf
例:
search lan
nameserver 192.168.1.1
5、修改 hostsname,按需修改
nano /etc/hostname
例:
N1
6、修改 hosts 文件,对应 hostname、ip,按需修改
nano /etc/hosts
例:
127.0.0.1 localhost.localdomain localhost
192.168.1.228 N1.proxmox.com N1
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
7、建议重启下设备
reboot
8、备份、新建 debian 源——清华或中科大源(二选一)
cp /etc/apt/sources.list /etc/apt/sources.list.bak
sed -i "s@http://security.debian.org@https://mirrors.tuna.tsinghua.edu.cn/debian-security@g" /etc/apt/sources.list
sed -i "s@http://deb.debian.org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
cat > /etc/apt/sources.list <<EOF
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.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
EOF
9、备份、新建 armbian 源——清华或中科大源(二选一)
cp /etc/apt/sources.list.d/armbian.list /etc/apt/sources.list.d/armbian.list.bak
sed -i "s@http://apt.armbian.com@https://mirrors.tuna.tsinghua.edu.cn/armbian@g" /etc/apt/sources.list
cat > /etc/apt/sources.list.d/armbian.list <<EOF
deb [signed-by=/usr/share/keyrings/armbian.gpg] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
EOF
deb [signed-by=/usr/share/keyrings/armbian.gpg] https://mirrors.ustc.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
10、使用正确的 path
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11、添加源
echo "deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port">/etc/apt/sources.list.d/pveport.list
12、添加 apt-key
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
13、安装 proxmox-ve,弹窗选择第一项
apt update && apt install proxmox-ve -y
等待几分钟,安装结束后,浏览器输入 https://ip:8006 进入 proxmox-ve 管理界面
若安装最后出现下面错误,见修复方法
Errors were encountered while processing:
pve-manager
proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)
查看 pveproxy 状态
systemctl status pveproxy
报错部分
/etc/pve/local/pve-ssl.pem: failed to use local certificate chain (cert_file or cert) at ·······
修复方法
rm -f /etc/pve/pve-root-ca.pem /etc/pve/priv/pve-root-ca.* /etc/pve/local/pve-ssl.*
pvecm updatecerts -f
systemctl restart pveproxy
浏览器输入 https://ip:8006 进入管理界面