diff --git a/test/vagrant-spec/scripts/centos-setup.virtualbox.sh b/test/vagrant-spec/scripts/centos-setup.virtualbox.sh index e670bf2a3..aa7695273 100644 --- a/test/vagrant-spec/scripts/centos-setup.virtualbox.sh +++ b/test/vagrant-spec/scripts/centos-setup.virtualbox.sh @@ -3,7 +3,7 @@ set -xe curl -Lo /etc/yum.repos.d/virtualbox.repo http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo yum groupinstall -y "Development Tools" -yum install -y kernel-devel +yum install -y kernel-devel-$(uname -r) yum install -y VirtualBox-${VAGRANT_CENTOS_VIRTUALBOX_VERSION:-5.1} pushd /vagrant