How should I correctly modify the mirror address of ct templates?

liangjinpeng

New Member
Jul 25, 2024
2
0
1
I am currently modifying to use the local mirror by replacing the following three places, but I know this method is illegal. Does PVE have a recommended method for modifying the mirror, and will it not overwrite my modifications after an update?

sed -i 's|http://download.proxmox.com/images|https://mirrors.ustc.edu.cn/proxmox/images|' /usr/local/share/perl5/CustomPVE/APLInfo.pm
sed -i 's|https://releases.turnkeylinux.org/pve|https://mirrors.ustc.edu.cn/turnkeylinux/metadata/pve|' /usr/local/share/perl5/CustomPVE/APLInfo.pm
sed -i's|http://mirror.turnkeylinux.org|https://mirrors.ustc.edu.cn|' /var/lib/pve-manager/apl-info/releases.turnkeylinux.org
 
Why are you doing things that you know are not supported? If you can explain what you are trying to achieve, people might e able to help with more specific advice.
 
I think it is pretty clear that the OP wants to use a different mirror for getting templates. Presumably the local mirror has different or modified ones compared with the PVE default.I don't know the answer to that question through.
 
I think it is pretty clear that the OP wants to use a different mirror for getting templates. Presumably the local mirror has different or modified ones compared with the PVE default.I don't know the answer to that question through.
Did it work for the OP or what error did occur? Or is this just a theoretical question about the changes being overwritten during an upgrade?
 
Did it work for the OP or what error did occur? Or is this just a theoretical question about the changes being overwritten during an upgrade?
I'm in China. Due to network issues, the connection to non-Chinese servers is too slow. I just want to use the local mirror source.

APLInfo.pm should be refreshed when pve-manager is updated. Due to the low frequency, the impact is not significant. However, the content in '/var/lib/pve-manager/apl-info' is refreshed by pve-daily-update.service every day. Since the Location part in the aplinfo.dat file of TurnKeyLinux is the full domain name, it is not sufficient to only modify the domain name in APLInfo.pm.

So the best solution, in my opinion, should be that PVE has an independent logic to facilitate users to modify the mirror source. I haven't found such a function now.

PS. I don't understand English. All the above were translated by AI.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!