From 5c75f3ef54aaf4ed05c9ce567cef8f523eb69aee Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 23 Nov 2022 22:24:33 -0700 Subject: [PATCH] update vagrant templates --- vagrant/rocky-vagrant-vbox.ks | 7 ++++++- vagrant/rocky-vagrant-vmware.ks | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vagrant/rocky-vagrant-vbox.ks b/vagrant/rocky-vagrant-vbox.ks index 2434147..547c8e3 100644 --- a/vagrant/rocky-vagrant-vbox.ks +++ b/vagrant/rocky-vagrant-vbox.ks @@ -34,6 +34,7 @@ EOF # sshd: disable password authentication and DNS checks # for virtualbox we're disabling it after provisioning +cat >>/etc/sysconfig/sshd < /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/6.1.40/VBoxGuestAdditions_6.1.40.iso mkdir -p /media/VBoxGuestAdditions mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions diff --git a/vagrant/rocky-vagrant-vmware.ks b/vagrant/rocky-vagrant-vmware.ks index 775ba56..a3c1b12 100644 --- a/vagrant/rocky-vagrant-vmware.ks +++ b/vagrant/rocky-vagrant-vmware.ks @@ -30,6 +30,7 @@ ex -s /etc/ssh/sshd_config <>/etc/sysconfig/sshd <