Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 6 is EOL #12

Open
xxMAKMAKxx opened this issue Feb 19, 2021 · 5 comments
Open

CentOS 6 is EOL #12

xxMAKMAKxx opened this issue Feb 19, 2021 · 5 comments
Assignees

Comments

@xxMAKMAKxx
Copy link

xxMAKMAKxx commented Feb 19, 2021

While trying to isntall Salt, I have encountered following error:

[vagrant@master ~]$ sudo yum list salt salt-master salt-minion Failed to set locale, defaulting to C Loaded plugins: fastestmirror Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base

it seems the cause is because CentOS 6 reached end of life on the 30th November 2020 and now the image is connecting to deprecated repositories URL end-points. Probabyl the best would be to switch to CentOS 7 or even 8 (not sure how much dependencies on the OS are in the code).

@craig5 craig5 self-assigned this Feb 28, 2021
craig5 added a commit that referenced this issue Mar 1, 2021
@craig5
Copy link
Owner

craig5 commented Mar 1, 2021

If you can verify the fix on branch "update-images" works for you, I'll merge it into master.
Thanks!

@xxMAKMAKxx
Copy link
Author

It seems you have added dependency for the following plugin: vagrant-vbguest which I didn't originally have. And got following error:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'vbguest'.

upon installing it all works. Vagrant should be able to add plugin dependency to Vagrantfile:

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vagrant.plugins = "vagrant-vbguest"
  nodes.each do |node|

which will prompt install upon vagrant up command:

(...) vagrant up
Vagrant has detected project local plugins configured for this
project which are not installed.

  vagrant-vbguest
Install local plugins (Y/N) [N]:

@xxMAKMAKxx
Copy link
Author

BTW I wonder why have you added this dependency? It started installation of kernel update which makes the Vagrant up command takes a lot of time :-) I tried with only changing to CentOS 7 which worked fine for me.

@xxMAKMAKxx
Copy link
Author

BTW one more thing I remembered. CentOS 8 might go EOL sooner due to Centos Stream (https://endoflife.software/operating-systems/linux/centos). Maybe using 7 will be even better in this case. I was testing the change on my machine with following line changed:
os_centos = "bento/centos-7.7"

and all worked fine. I didn't install any VB additions.

@xxMAKMAKxx
Copy link
Author

xxMAKMAKxx commented Mar 1, 2021

Just BTW, in centos/8 the Python is missing and needs to be installed. I understand any1 can probably do the install but it might create some discrepancy in the book's appendix. Maybe wrapping the install in a Bash script that will install the Python based on OS version? Whatever you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants