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/).
Vagrant.configure("2") do |config|
config.vm.box = "eurolinux-vagrant/centos-7"
end
vagrant up
vagrant ssh
run sudo yum update in the box
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
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
vagrant up
vagrant ssh
sudo yum update
in the boxExpected 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:
Similar issues: