Closed alexgit2k closed 3 years ago
CentOS kernel packages are painful. Please check if one of the solutions in https://github.com/dotless-de/vagrant-vbguest/discussions/401 help.
It is working for CentOS 7 with enablerepo: true
, because then yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updates
works. It is not working without enablerepo
(or set to false): yum install -y kernel-devel-`uname -r`
does not work, like now, because the package is no longer in the base-repository.
Without the version as in pull-request #407 yum install -y kernel-devel --enablerepo=C*-base --enablerepo=C*-updates
and yum install -y kernel-devel
work, BUT install the latest kernel-devel-package which may not matching the running kernel. Therefore allow_kernel_upgrade: true
must be used.
I will use enablerepo and I'm closing the pull-request. But there should be a note at lib/vagrant-vbguest/installers/centos.rb:install_kernel_devel if this failes to use enablerepo: true
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It's very kind of u.
Vagrant fails with
No package kernel-devel-3.10.0-1127.el7.x86_64 available.
when using CentOS 7. The problem is that there is no suchkernel-devel-xyz
for CentOS (checked 7 & 8), the package-name is justkernel-devel
.See also https://github.com/dotless-de/vagrant-vbguest/issues/351#issuecomment-540870693 and https://github.com/dotless-de/vagrant-vbguest/issues/351#issuecomment-712773555
Vagrantfile