15
Proxmox Virtual Environment
X edited this page 2025-04-22 13:38:26 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

一、什么是PVE

Proxmox Virtual Environment 提供了一个开源且功能强大的虚拟化平台,支持 KVM 虚拟机、容器(LXC)、高可用性集群、存储解决方案以及丰富的管理工具,适合企业级部署和小型数据中心使用,个人使用也很棒.

二、安装部署

从国内镜像站点下载iso然后通过U盘安装到硬件或者虚拟机中。

三、初始配置

3.1 配置时间和时区

  • 设置时区
timezonectl -set-timezone Asia/Shanghai
  • 安装ntpsec,配置时钟同步
apt install ntpsec
# 添加中科院授时中心服务器:vim /etc/ntpsec/ntp.conf
“server ntp.ntsc.ac.cn”

3.2 配置镜像源

  • 删除默认企业订阅源、Ceph源
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
rm -rf /etc/apt/sources.list.d/ceph.list
  • 添加debian12镜像源和PVE非订阅源
#vim /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/debian bookworm main contrib
deb https://mirrors.ustc.edu.cn/debian bookworm-updates main contrib
# security updates
deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib

#vim /etc/apt/sources.list.d/pve-no-subscription.list
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
  • 配置国内LXC镜像源
#备份源文件
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
#重启服务生效
systemctl restart pvedaemon.service