View Issue Details

IDProjectCategoryView StatusLast Update
0017867CentOS-7generalpublic2020-11-19 00:34
Reporteralan.nelson Assigned To 
Status newResolutionopen 
Summary0017867: centos/7 Vagrant image with vagrant-vbguest broken
DescriptionWhen using the "centos/7" image in a Vagrantfile with the vagrant-vbguest plugin, the guest additions fail to install. This appears to be caused by an old kernel version in the latest release. The vagrant-vbguest plugin tries to install the "kernel-devel-$(uname -r)" package, which is no longer in the repo.
Steps To Reproduce* Ensure Vagrant is installed
* Install the vbguest plugin (vagrant plugin install vagrant-vbguest)
* Create a simple Vagrantfile that uses the centos/7 image, example below
* run "vagrant up"
* The following error occurs: No package kernel-devel-3.10.0-1127.el7.x86_64 available

Example Vagrantfile:
Vagrant.configure(2) do |config| = "centos/7"

Full output from vagrant up attached as log file.

Manually updating the kernel and running "vagrant vbguest --do install" works as intended, so this seems to confirm the older kernel version as the issue.




2020-11-19 00:34


vagrant.log (4,461 bytes)   
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'centos/7' version '2004.01' is up to date...
==> default: Setting the name of the VM: Desktop_default_1605745252677_85405
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address:
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be updated
---> Package centos-release.x86_64 0:7-9.2009.0.el7.centos will be an update
--> Finished Dependency Resolution

Dependencies Resolved

 Package              Arch         Version                     Repository  Size
 centos-release       x86_64       7-9.2009.0.el7.centos       base        27 k

Transaction Summary
Upgrade  1 Package

Total download size: 27 k
Downloading packages:
No Presto metadata available for base
Public key for centos-release-7-9.2009.0.el7.centos.x86_64.rpm is not installed
warning: /var/cache/yum/x86_64/7/base/packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-8.2003.0.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : centos-release-7-9.2009.0.el7.centos.x86_64                  1/2
  Cleanup    : centos-release-7-8.2003.0.el7.centos.x86_64                  2/2
  Verifying  : centos-release-7-9.2009.0.el7.centos.x86_64                  1/2
  Verifying  : centos-release-7-8.2003.0.el7.centos.x86_64                  2/2

  centos-release.x86_64 0:7-9.2009.0.el7.centos

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
No package kernel-devel-3.10.0-1127.el7.x86_64 available.
Error: Nothing to do
Unmounting Virtualbox Guest Additions ISO from: /mnt
umount: /mnt: not mounted
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

umount /mnt

Stdout from the command:

Stderr from the command:

umount: /mnt: not mounted
vagrant.log (4,461 bytes)   

Issue History

Date Modified Username Field Change
2020-11-19 00:34 alan.nelson New Issue
2020-11-19 00:34 alan.nelson File Added: vagrant.log
2020-11-19 00:34 alan.nelson Tag Attached: vagrant