Hi, Do CentOS 7 installs not automatically use a closest mirror for installing like Fedora does, or is that due to the way I'm starting the install (virt-install)? Background: I'm trying to find the best way to do installs using basic local media (network install, but *without* the need to download the squashfs.img for every install) but without a full local mirror. On Fedora (25), it works fine using a local boot.iso (virt-install -l), but with CentOS 7 you then have to manually enter a repository URL. I also tried a local kernel/pxeboot tree with LiveOS/squashfs.img (the latter similar to Fedora's install.img?) with no result. Cheers, -- -- Jos Vos <jos at xos.nl> -- X/OS Experts in Open Systems BV | Office: +31 20 6938364 -- Amsterdam, The Netherlands | Mobile: +31 6 26216181
Johnny Hughes
2017-Jun-05 14:28 UTC
[CentOS] CentOS 7 install: closest mirror not supported?
On 06/04/2017 10:29 AM, Jos Vos wrote:> Hi, > > Do CentOS 7 installs not automatically use a closest mirror for > installing like Fedora does, or is that due to the way I'm starting > the install (virt-install)? > > Background: > > I'm trying to find the best way to do installs using basic local media > (network install, but *without* the need to download the squashfs.img > for every install) but without a full local mirror. On Fedora (25), > it works fine using a local boot.iso (virt-install -l), but with > CentOS 7 you then have to manually enter a repository URL. > > I also tried a local kernel/pxeboot tree with LiveOS/squashfs.img > (the latter similar to Fedora's install.img?) with no result. >Yes but .. closest mirror only gets as detailed as per country. If you want to add a local mirror to that, then a yum config file change to add a baseurl to the repo file would be required. Then fastestmirror would pick the fastest from mirrorlist (10-15 listed machines per country) and the added local mirror, which would always be fastest unless it was offline, etc. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20170605/8ab229d1/attachment.sig>
Johnny Hughes
2017-Jun-05 14:37 UTC
[CentOS] CentOS 7 install: closest mirror not supported?
On 06/05/2017 09:28 AM, Johnny Hughes wrote:> On 06/04/2017 10:29 AM, Jos Vos wrote: >> Hi, >> >> Do CentOS 7 installs not automatically use a closest mirror for >> installing like Fedora does, or is that due to the way I'm starting >> the install (virt-install)? >> >> Background: >> >> I'm trying to find the best way to do installs using basic local media >> (network install, but *without* the need to download the squashfs.img >> for every install) but without a full local mirror. On Fedora (25), >> it works fine using a local boot.iso (virt-install -l), but with >> CentOS 7 you then have to manually enter a repository URL. >> >> I also tried a local kernel/pxeboot tree with LiveOS/squashfs.img >> (the latter similar to Fedora's install.img?) with no result. >> > > Yes but .. closest mirror only gets as detailed as per country. > > If you want to add a local mirror to that, then a yum config file change > to add a baseurl to the repo file would be required. Then fastestmirror > would pick the fastest from mirrorlist (10-15 listed machines per > country) and the added local mirror, which would always be fastest > unless it was offline, etc.Actually, I don't KNOW if anaconda will use mirrorlist as a URL in CentOS-7 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20170605/f3c00e18/attachment-0001.sig>
Hi, On Mon, Jun 05, 2017 at 09:28:03AM -0500, Johnny Hughes wrote:> Yes but .. closest mirror only gets as detailed as per country.Maybe my question was not clear: the problem is that the install (when doing a virt-install with boot.iso) does not choose a mirror at all. It just requires that you *explicitly* specify an install URL and it shows an error for "Installation Source" till you have done so. It works ok if you add (via virt-install's --extra-args) inst.repo and/or use a kickstart file (inst.ks) with an "url" directive. -- -- Jos Vos <jos at xos.nl> -- X/OS Experts in Open Systems BV | Office: +31 20 6938364 -- Amsterdam, The Netherlands | Mobile: +31 6 26216181
Possibly Parallel Threads
- Kickstarting CentOS 7 VM on CentOS 6 not possible?
- CentOS 7 install: closest mirror not supported?
- Refactor ovirt-node-image code base for inclusion in Fedora
- Refactor ovirt-node code base for inclusion in Fedora
- [PATCH ovirt-node-image] fixes for edit-livecd