PVE 8.0.4 配置记录

前言

七夕收到了媳妇送的礼物 Beelink SER 5 PRO (Ryzen 5700U), 记录打造成私人服务器的过程.

下载安装 Proxmox 8.0.4

https://www.proxmox.com/en/downloads

安装过程中修改磁盘设置:
swap 分区设置为物理内存的 2 倍, 防止虚机太多内存不足
root 最大设置为 32 GB, 多了也没用

设置网络固定 IP: 192.168.1.2/24
网关/DNS: 192.168.1.1
Hostname: pve.lan

一路安装完就行了.

配置 PVE

从台式机 SSH 连接到 PVE

# 修改源
rm /etc/apt/sources.list.d/*.list
rm /etc/apt/sources.list
vi /etc/apt/sources.list
# 粘贴内容:
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscriptio

# 修改 CT Templates 源
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://mirrors.ustc.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm

# 更新系统
apt update
apt upgrade -y

# 移除 You do not have a valid subscription for this server 提示
sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

# 获取 CA 证书, 将输出内容复制粘贴到台式机桌面的 ca.cer 文件
cat /etc/pve/pve-root-ca.pem

# 重启 PVE 服务
systemctl restart pveproxy

运行 certmgr.msc 打开当前用户的证书管理器 > Trusted Root Certification Authorities > Certificates > All Tasks > Import
PVE 8.0.4 配置记录_第1张图片
选择桌面上的 ca.cer 完成导入

浏览器访问 https://pve.lan:8006 或者 https://192.168.1.2:8006, 因为已经导入了 CA 证书, 所以不会出现 HTTPS 证书警告

PVE 8.0.4 配置记录_第2张图片

你可能感兴趣的:(运维,PVE)