Proxmox VE是一款常用的虚拟化软件,主要服务器都在国外,国内使用受限于网络环境,在线更新、下载模板速度非常缓慢,和大多数开源软件一样,可以通过使用国内加速源来优化体验,Proxmox VE支持更换Debian源、Proxmox源、CT模板源,目前中科大开源镜像站提供有专业的源。欢迎补充。
更换Debian源
一般情况下,需要同时修改基础系统(Debian)的源文件 /etc/apt/sources.list
修改基础系统(Debian)的源文件,可以使用如下命令:
#备份配置文件 cp /etc/apt/sources.list /etc/apt/sources.list.bak #替换官方源为中科大源 sed -i 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
执行apt-get update更新缓存
更换Proxmox源
#备份Proxmox源文件 cp /etc/apt/sources.list.d/pve-no-subscription.list /etc/apt/sources.list.d/pve-no-subscription.list.bak #替换官方源为中科大源 source /etc/os-release echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve $VERSION_CODENAME pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
执行apt-get update更新缓存
更换CT模板源
另外,如果你需要使用 Proxmox 网页端下载 CT Templates,可以替换 CT Templates 的源为 http://mirrors.ustc.edu.cn。
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
针对 /usr/share/perl5/PVE/APLInfo.pm 文件的修改,重启后生效。
文章末尾固定信息
我的微信
我的微信
微信扫一扫
评论