From 419871a5dcffeed2bfbff8a60ca840fcee459a86 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sat, 4 May 2024 16:15:19 -0700 Subject: [PATCH] turn off vbox guest additions --- config.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/config.sh b/config.sh index 89e0bd7..9f40c0f 100644 --- a/config.sh +++ b/config.sh @@ -657,28 +657,28 @@ EOF # Install VBoxGuestAdditions for installed kernel. # https://git.resf.org/sig_kernel/meta/issues/13 - kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel) - echo "stg/rocky" > /etc/dnf/vars/contentdir - sed -i 's/^#baseurl/baseurl/g;s/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*repo - dnf -y install kernel-headers-$kver kernel-devel gcc make perl elfutils-libelf-devel - sed -i 's/^baseurl/#baseurl/g;s/^#mirrorlist/mirrorlist/g' /etc/yum.repos.d/rocky*repo - echo "pub/rocky" > /etc/dnf/vars/contentdir - curl -L -o /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/7.0.16/VBoxGuestAdditions_7.0.16.iso - mkdir -p /media/VBoxGuestAdditions - mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions - mkdir -p /tmp/VBoxGuestAdditions - sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 --noexec --keep --target /tmp/VBoxGuestAdditions - pushd /tmp/VBoxGuestAdditions - ./install.sh - /sbin/rcvboxadd quicksetup all - popd - ls "/lib/modules/${kver}/misc/" - modinfo "/lib/modules/${kver}/misc/vboxsf.ko" - rm -rf /tmp/VBoxGuestAdditions - umount /media/VBoxGuestAdditions - rm -f /tmp/vboxadditions.iso - rmdir /media/VBoxGuestAdditions - dnf -y remove kernel-devel gcc make perl elfutils-libelf-devel + #kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel) + #echo "stg/rocky" > /etc/dnf/vars/contentdir + #sed -i 's/^#baseurl/baseurl/g;s/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*repo + #dnf -y install kernel-headers-$kver kernel-devel gcc make perl elfutils-libelf-devel + #sed -i 's/^baseurl/#baseurl/g;s/^#mirrorlist/mirrorlist/g' /etc/yum.repos.d/rocky*repo + #echo "pub/rocky" > /etc/dnf/vars/contentdir + #curl -L -o /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/7.0.16/VBoxGuestAdditions_7.0.16.iso + #mkdir -p /media/VBoxGuestAdditions + #mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions + #mkdir -p /tmp/VBoxGuestAdditions + #sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 --noexec --keep --target /tmp/VBoxGuestAdditions + #pushd /tmp/VBoxGuestAdditions + #./install.sh + #/sbin/rcvboxadd quicksetup all + #popd + #ls "/lib/modules/${kver}/misc/" + #modinfo "/lib/modules/${kver}/misc/vboxsf.ko" + #rm -rf /tmp/VBoxGuestAdditions + #umount /media/VBoxGuestAdditions + #rm -f /tmp/vboxadditions.iso + #rmdir /media/VBoxGuestAdditions + #dnf -y remove kernel-devel gcc make perl elfutils-libelf-devel } function libvirt_vagrant_steps() {