Knowledge Base
linbit.com Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

`vagrant up` Fails on Checking for Guest Additions for VirtualBox Guests

Vagrant might fail to install VirtualBox additions after new Vagrant box CentOS releases are published.

When CentOS publishes a new release, support for the previous release is removed from the mirror servers. So, attempting to build VirtualBox guest additions can fail as the correct kernel headers are not available for the running kernel. You can get around this problem by telling Vagrant to not update the operating system by adding these lines to your Vagrantfile:

# Stop updates to avoid CentOS base issue
config.vbguest.auto_update = false

This has the added bonus of speeding up Vagrant provisioning.


Reviewed by DJV - 03-26-2021