turn off vbox guest additions
This commit is contained in:
parent
7300e9bea3
commit
419871a5dc
44
config.sh
44
config.sh
@ -657,28 +657,28 @@ EOF
|
|||||||
|
|
||||||
# Install VBoxGuestAdditions for installed kernel.
|
# Install VBoxGuestAdditions for installed kernel.
|
||||||
# https://git.resf.org/sig_kernel/meta/issues/13
|
# https://git.resf.org/sig_kernel/meta/issues/13
|
||||||
kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel)
|
#kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel)
|
||||||
echo "stg/rocky" > /etc/dnf/vars/contentdir
|
#echo "stg/rocky" > /etc/dnf/vars/contentdir
|
||||||
sed -i 's/^#baseurl/baseurl/g;s/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*repo
|
#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
|
#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
|
#sed -i 's/^baseurl/#baseurl/g;s/^#mirrorlist/mirrorlist/g' /etc/yum.repos.d/rocky*repo
|
||||||
echo "pub/rocky" > /etc/dnf/vars/contentdir
|
#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
|
#curl -L -o /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/7.0.16/VBoxGuestAdditions_7.0.16.iso
|
||||||
mkdir -p /media/VBoxGuestAdditions
|
#mkdir -p /media/VBoxGuestAdditions
|
||||||
mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions
|
#mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions
|
||||||
mkdir -p /tmp/VBoxGuestAdditions
|
#mkdir -p /tmp/VBoxGuestAdditions
|
||||||
sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 --noexec --keep --target /tmp/VBoxGuestAdditions
|
#sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 --noexec --keep --target /tmp/VBoxGuestAdditions
|
||||||
pushd /tmp/VBoxGuestAdditions
|
#pushd /tmp/VBoxGuestAdditions
|
||||||
./install.sh
|
#./install.sh
|
||||||
/sbin/rcvboxadd quicksetup all
|
#/sbin/rcvboxadd quicksetup all
|
||||||
popd
|
#popd
|
||||||
ls "/lib/modules/${kver}/misc/"
|
#ls "/lib/modules/${kver}/misc/"
|
||||||
modinfo "/lib/modules/${kver}/misc/vboxsf.ko"
|
#modinfo "/lib/modules/${kver}/misc/vboxsf.ko"
|
||||||
rm -rf /tmp/VBoxGuestAdditions
|
#rm -rf /tmp/VBoxGuestAdditions
|
||||||
umount /media/VBoxGuestAdditions
|
#umount /media/VBoxGuestAdditions
|
||||||
rm -f /tmp/vboxadditions.iso
|
#rm -f /tmp/vboxadditions.iso
|
||||||
rmdir /media/VBoxGuestAdditions
|
#rmdir /media/VBoxGuestAdditions
|
||||||
dnf -y remove kernel-devel gcc make perl elfutils-libelf-devel
|
#dnf -y remove kernel-devel gcc make perl elfutils-libelf-devel
|
||||||
}
|
}
|
||||||
|
|
||||||
function libvirt_vagrant_steps() {
|
function libvirt_vagrant_steps() {
|
||||||
|
Loading…
Reference in New Issue
Block a user