From 619d5f26602897452b4ab22b8eca7b78a97fc595 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 23 Nov 2022 23:31:20 -0500 Subject: [PATCH] add kernel-headers --- Rocky-9-Vagrant-Vbox.ks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocky-9-Vagrant-Vbox.ks b/Rocky-9-Vagrant-Vbox.ks index 312e3fe..605df3e 100644 --- a/Rocky-9-Vagrant-Vbox.ks +++ b/Rocky-9-Vagrant-Vbox.ks @@ -101,7 +101,7 @@ EOF set -x # Install VBoxGuestAdditions for installed kernel kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel) -dnf -y install kernel-devel gcc make perl elfutils-libelf-devel +dnf -y install kernel-headers-$kver kernel-devel gcc make perl elfutils-libelf-devel curl -L -o /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/6.1.40/VBoxGuestAdditions_6.1.40.iso mkdir -p /media/VBoxGuestAdditions mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions