[GH-ISSUE #137] Change default mirror from rackspace.com to something different #62

Closed
opened 2026-02-27 14:50:12 +03:00 by kerem · 7 comments
Owner

Originally created by @mbugert on GitHub (Mar 17, 2017).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/137

Originally assigned to: @antonym on GitHub.

boot.cfg currently specifies mirror.rackspace.com as the default mirror site. What's annoying about this is that linux distributions provided by Rackspace have modified /etc/apt/sources.list files, which again point to mirror.rackspace.com instead of official mirrors.

So how about the default mirror site is set to an official/independent mirror site?

For the time being, I work around this issue by manually changing the mirror variable via the iPXE shell.

Originally created by @mbugert on GitHub (Mar 17, 2017). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/137 Originally assigned to: @antonym on GitHub. [boot.cfg](https://github.com/antonym/netboot.xyz/blob/master/src/boot.cfg) currently specifies mirror.rackspace.com as the default mirror site. What's annoying about this is that linux distributions provided by Rackspace have modified `/etc/apt/sources.list` files, which again point to mirror.rackspace.com instead of official mirrors. So how about the default mirror site is set to an official/independent mirror site? For the time being, I work around this issue by manually changing the `mirror` variable via the iPXE shell.
kerem 2026-02-27 14:50:12 +03:00
Author
Owner

@antonym commented on GitHub (Mar 17, 2017):

I'm open to suggestions on this. I have the Rackspace mirrors by default as they are geo load balanced and gives me consistent folder structure. From what I understand, the Rackspace mirror is literally just synced down and unmodified, so the reason they are probably getting those repos is because I add this in the kernel command line in order to prevent the user from having to set their mirror:

mirror/suite=${debian_version} mirror/country=manual mirror/http/hostname=${mirror} mirror/http/directory=/debian

I could probably drop those and force the user to set them.

I'd actually like to start moving mirrors to official mirrors for each project, but I also want to avoid having to specify the mirror for every country code and worry about differing folder structures on other mirrors.

<!-- gh-comment-id:287409031 --> @antonym commented on GitHub (Mar 17, 2017): I'm open to suggestions on this. I have the Rackspace mirrors by default as they are geo load balanced and gives me consistent folder structure. From what I understand, the Rackspace mirror is literally just synced down and unmodified, so the reason they are probably getting those repos is because I add this in the kernel command line in order to prevent the user from having to set their mirror: mirror/suite=${debian_version} mirror/country=manual mirror/http/hostname=${mirror} mirror/http/directory=/debian I could probably drop those and force the user to set them. I'd actually like to start moving mirrors to official mirrors for each project, but I also want to avoid having to specify the mirror for every country code and worry about differing folder structures on other mirrors.
Author
Owner

@mbugert commented on GitHub (Mar 20, 2017):

I see it's not as easy as I first thought.

I also want to avoid having to specify the mirror for every country code

Debian and Ubuntu (at least those, I haven't checked other distros) provide mirrors with predictable URL patterns, i.e. ftp.<country>.debian.org and <country>.archive.ubuntu.com. An idea might be to allow users to specify their country, otherwise rackspace is chosen as a default mirror.

<!-- gh-comment-id:287708886 --> @mbugert commented on GitHub (Mar 20, 2017): I see it's not as easy as I first thought. > I also want to avoid having to specify the mirror for every country code Debian and Ubuntu (at least those, I haven't checked other distros) provide mirrors with predictable URL patterns, i.e. `ftp.<country>.debian.org` and `<country>.archive.ubuntu.com`. An idea might be to allow users to specify their country, otherwise rackspace is chosen as a default mirror.
Author
Owner

@antonym commented on GitHub (Mar 20, 2017):

First step might be just to drop the auto mirror assignment on those OS and just let the user pick it during install when the installer has an easy list to pick from. For those you have to manually type it in, I'd prefer to keep something in there to make the experience more user friendly. It might mean a slower install but at least it'll happen.

Each OS handles their mirror differently so it can spiral into a time consuming task pretty quickly having to deal with mirrors, especially when the mirrors break or older versions get dropped to free up space.

<!-- gh-comment-id:287811857 --> @antonym commented on GitHub (Mar 20, 2017): First step might be just to drop the auto mirror assignment on those OS and just let the user pick it during install when the installer has an easy list to pick from. For those you have to manually type it in, I'd prefer to keep something in there to make the experience more user friendly. It might mean a slower install but at least it'll happen. Each OS handles their mirror differently so it can spiral into a time consuming task pretty quickly having to deal with mirrors, especially when the mirrors break or older versions get dropped to free up space.
Author
Owner

@ghost commented on GitHub (May 19, 2017):

What of https://www.mirrorservice.org?

<!-- gh-comment-id:302620123 --> @ghost commented on GitHub (May 19, 2017): What of https://www.mirrorservice.org?
Author
Owner

@nicoonoclaste commented on GitHub (Oct 29, 2017):

@antonym For Debian mirrors, I think the best, officially-supported option is deb.debian.org.
It's administered by DSA (the Debian Systems Administration team) and backed by Fastly and Cloudfront so it should be fine pretty much anywhere.
PS: I haven't checked yet if it's a thing, but an easy way to set distro mirrors would be convenient; for instance, on our LAN I definitely want to automatically use our local mirror.

<!-- gh-comment-id:340279942 --> @nicoonoclaste commented on GitHub (Oct 29, 2017): @antonym For Debian mirrors, I think the best, officially-supported option is `deb.debian.org`. It's administered by DSA (the Debian Systems Administration team) and backed by Fastly and Cloudfront so it should be fine pretty much anywhere. PS: I haven't checked yet if it's a thing, but an easy way to set distro mirrors would be convenient; for instance, on our LAN I definitely want to automatically use our local mirror.
Author
Owner

@antonym commented on GitHub (Oct 29, 2017):

See https://github.com/antonym/netboot.xyz/pull/193 I'm working on using official mirrors where possible and making them more configurable from boot.cfg. Would love feedback/testing on it.

<!-- gh-comment-id:340284796 --> @antonym commented on GitHub (Oct 29, 2017): See https://github.com/antonym/netboot.xyz/pull/193 I'm working on using official mirrors where possible and making them more configurable from boot.cfg. Would love feedback/testing on it.
Author
Owner

@antonym commented on GitHub (Nov 1, 2017):

Closing this out since a bunch of the main distros are now tunable and available in boot.cfg. If there are any missing or better mirror locations, please feel free to put up a PR. Thanks!

<!-- gh-comment-id:341150524 --> @antonym commented on GitHub (Nov 1, 2017): Closing this out since a bunch of the main distros are now tunable and available in boot.cfg. If there are any missing or better mirror locations, please feel free to put up a PR. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#62
No description provided.