码迷,mamicode.com
首页 > 其他好文 > 详细

设置ProxmoxVE的LXC仓库为国内源

时间:2020-10-18 09:31:59      阅读:26      评论:0      收藏:0      [点我收藏+]

标签:oct   sed   ted   load   mirrors   await   ons   perl   测试   

使用中科大的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

root@mypve:~# 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";

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

root@mypve:~# 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模版

设置ProxmoxVE的LXC仓库为国内源

标签:oct   sed   ted   load   mirrors   await   ons   perl   测试   

原文地址:https://blog.51cto.com/14386969/2542142

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!