EuroLinux / cloud-images-rfc

This repository contains Requests for Change in EuroLinux made cloud images.
https://app.vagrantup.com/eurolinux-vagrant
9 stars 0 forks source link

[BUG] CentOS Linux 7.9 - set up Vault repos #11

Closed bocekm closed 20 hours ago

bocekm commented 2 days ago

Describe the bug The CentOS 7.9 box uses non-functioning repos. Since CentOS 6 has been retired, the original standard repos has been archived in the Vault (https://vault.centos.org/6.10/).

Cloud Image Vagrant, libvirt, eurolinux-vagrant/centos-7 box version 7.9.62 https://app.vagrantup.com/eurolinux-vagrant/boxes/centos-7/versions/7.9.62

To Reproduce

  1. Vagrantfile:
    Vagrant.configure("2") do |config|
    config.vm.box = "eurolinux-vagrant/centos-7"
    end
  2. vagrant up
  3. vagrant ssh
  4. run sudo yum update in the box
  5. See error:
    Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
    14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error
    <snip>
    Cannot find a valid baseurl for repo: base/7/x86_64

Expected behavior The box starts up and I am able to install packages through yum.

Additional context The original CentOS repos need to be edited for example using these commands to use the Vault:

sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Base.repo
sed -i 's/^#baseurl.*$/baseurl=http:\/\/vault.centos.org\/7.9.2009\/os\/x86_64/g' /etc/yum.repos.d/CentOS-Base.repo 

Similar issues:

AlexBaranowski commented 2 days ago

@bocekm I will personally change it today/tomorrow for the following images:

Thank you for your report 👍🏻 !

AlexBaranowski commented 20 hours ago

@bocekm all el7 Vagrant boxes were fixed.