XCP-ng mirrors


  • Admin

    Hi everyone!

    For XCP-ng 8.0, we plan to bundle repo file with a special URL that will redirect to the nearest mirror. So your yum update or even netinstall will be blazing fast and closer to your physical hardware. For this, we are using Mirrorbits: https://github.com/etix/mirrorbits#mirrorbits

    We already added some mirrors here: http://mirrors.xcp-ng.org/?mirrorstats

    mirrors.jpg

    Want to test it already?

    Those mirrors are already working for 7.6. However, it's still in test, but you can already play with it. You can edit your repo file /etc/yum.repos.d/xcp-ng.repo and replace https://updates.xcp-ng.org/7/7.6/base/x86_64/ by http://mirrors.xcp-ng.org/7/7.6/base/x86_64/

    ⚠ Note you must remove https and use http instead. Since packages are RPM signed, there's no issue to do so 🙂

    Here is an example of this new repo file for XCP-ng 7.6:

    [xcp-ng-base]
    name=XCP-ng Base Repository
    baseurl=http://mirrors.xcp-ng.org/7/7.6/base/x86_64/
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
    
    [xcp-ng-updates]
    name=XCP-ng Updates Repository
    baseurl=http://mirrors.xcp-ng.org/7/7.6/updates/x86_64/
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
    
    [xcp-ng-extras]
    name=XCP-ng Extras Repository
    baseurl=http://mirrors.xcp-ng.org/7/7.6/extras/x86_64/
    enabled=0
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
    
    [xcp-ng-updates_testing]
    name=XCP-ng Updates Testing Repository
    baseurl=http://mirrors.xcp-ng.org/7/7.6/updates_testing/x86_64/
    enabled=0
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
    
    [xcp-ng-extras_testing]
    name=XCP-ng Extras Testing Repository
    baseurl=http://mirrors.xcp-ng.org/7/7.6/extras_testing/x86_64/
    enabled=0
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
    

    I want to host a mirror

    Want to host a mirror and be displayed on our cool mirror map? You can apply by sending an email e-mail to mirrors (AT) xcp-ng [DOT] org, following the example below:

    Subject: "Mirror application for mymirror.example.com".
    Body:
    
    Server name: mymirror.example.com
    City: Paris
    Country: France
    Bandwidth: 1 Gbit/s
    Source mirror: updates.xcp-ng.org
    Host or IP to authorize: mymirror.example.com
    Sync frequency: every 15 min
    HTTP(S) URL: http://mymirror.example.com/
    RSYNC URL: rsync://mymirror.example.com/xcp-ng/
    Other prerequisites from https://github.com/xcp-ng/xcp/wiki/Mirrors checked: yes
    

    Full doc is here: https://github.com/xcp-ng/xcp/wiki/Mirrors


Log in to reply