运维开发网

设置ProxmoxVE的LXC仓库为国内源

运维开发网 https://www.qedev.com 2020-10-17 12:21 出处:51CTO 作者:vincentkp
使用中科大的有ProxmoxVE的仓库SSH登录节点,查找相关配置文档,修改中科大的源地址,操作如下:grep-rn"download.proxmox.com"/usr/share/perl5/PVE/*sed-i.bak"s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g"/usr/s

使用中科大的ProxmoxVE的仓库

SSH登录节点,查找相关配置文档,修改中科大的源地址,操作如下:

 grep -rn "download.proxmox.com" /usr/share/perl5/PVE/*
 sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm 
 wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo.dat

[email protected]:~# grep -rn "download.proxmox.com" /usr/share/perl5/PVE/*

/usr/share/perl5/PVE/API2/APT.pm:106:       $changelog_url = "http://download.proxmox.com/debian/$base/" .
/usr/share/perl5/PVE/APLInfo.pm:198:        host => "download.proxmox.com",
/usr/share/perl5/PVE/APLInfo.pm:199:        url => "http://download.proxmox.com/images",
/usr/share/perl5/PVE/CLI/pveceph.pm:142:        $repolist = "deb http://download.proxmox.com/debian/ceph-nautilus buster main\n";
/usr/share/perl5/PVE/CLI/pveceph.pm:145:        $repolist = "deb http://download.proxmox.com/debian/ceph-luminous buster main\n";
/usr/share/perl5/PVE/CLI/pveceph.pm:148:        $repolist = "deb http://download.proxmox.com/debian/ceph-octopus buster test\n";
/usr/share/perl5/PVE/CLI/pveceph.pm:150:        #$repolist = "deb http://download.proxmox.com/debian/ceph-octopus buster main\n";

[email protected]:~# sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm

[email protected]:~# wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo.dat

--2020-10-16 16:43:46--  https://mirrors.ustc.edu.cn/proxmox/images/aplinfo.dat
Resolving mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)... 202.38.95.110, 202.141.176.110, 2001:da8:d800:95::110
Connecting to mirrors.ustc.edu.cn (mirrors.ustc.edu.cn)|202.38.95.110|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10323 (10K) [application/octet-stream]
Saving to: ‘/var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn’

/var/lib/pve-manager/apl-info/mirror 100%[====================================================================>]  10.08K  --.-KB/s    in 0s      

20**-**-16 **:43:47 (391 MB/s) - ‘/var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn’ saved [10323/10323]

重启节点后测试下载LXC模版

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号