Fix up virtualbox provider

This commit is contained in:
Greg Hellings
2023-08-24 23:01:32 -05:00
parent 18ff595f9b
commit 5be8095700
11 changed files with 16 additions and 17 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
packages="bzip2 dkms kernel-devel kernel-headers make perl gcc" packages="gcc make bzip2 kernel-devel elfutils-libelf-devel"
dnf install -y ${packages} # Intentionally not quoted dnf install -y ${packages} # Intentionally not quoted
mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt
/mnt/VBoxLinuxAdditions.run install 2>&1 | tee /root/vbox_addon_install.log /mnt/VBoxLinuxAdditions.run install --nox11 2>&1 | tee /root/vbox_addon_install.log
dnf uninstall -y ${packages} # Also intentionally not quoted
umount /mnt umount /mnt
rm /home/vagrant/VBoxGuestAdditions.iso rm /home/vagrant/VBoxGuestAdditions.iso
+2 -3
View File
@@ -1,10 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
packages="bzip2 dkms kernel-devel kernel-headers make perl gcc" packages="bzip2 kernel-devel kernel-headers make perl gcc"
dnf install -y ${packages} # Intentionally not quoted dnf install -y ${packages} # Intentionally not quoted
mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt
/mnt/VBoxLinuxAdditions.run install 2>&1 | tee /root/vbox_addon_install.log /mnt/VBoxLinuxAdditions.run install --nox11 2>&1 | tee /root/vbox_addon_install.log
dnf uninstall -y ${packages} # Also intentionally not quoted
umount /mnt umount /mnt
rm /home/vagrant/VBoxGuestAdditions.iso rm /home/vagrant/VBoxGuestAdditions.iso
+1 -1
View File
@@ -3,6 +3,6 @@ set -ex
yum -y update yum -y update
yum remove make perl gcc kernel-devel kernel-headers bzip2 yum remove -y make perl gcc kernel-devel kernel-headers bzip2
yum clean all yum clean all
+1 -2
View File
@@ -2,9 +2,8 @@
set -ex set -ex
packages="bzip2 dkms kernel-devel kernel-headers make perl gcc" packages="bzip2 dkms kernel-devel kernel-headers make perl gcc"
yum install -y ${packages} # Intentionally not quoted yum install -y ${packages} # Intentionally not quoted
mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt mount -t auto /home/vagrant/VBoxGuestAdditions.iso /mnt
/mnt/VBoxLinuxAdditions.run install 2>&1 | tee /root/vbox_addon_install.log /mnt/VBoxLinuxAdditions.run install 2>&1 | tee /root/vbox_addon_install.log
yum uninstall -y ${packages} # Also intentionally not quoted
umount /mnt umount /mnt
rm /home/vagrant/VBoxGuestAdditions.iso rm /home/vagrant/VBoxGuestAdditions.iso
+1
View File
@@ -2,6 +2,7 @@
set -ex set -ex
apt update apt update
apt autoremove -y
apt upgrade -y apt upgrade -y
# Configure sshd to be faster # Configure sshd to be faster
+1
View File
@@ -2,6 +2,7 @@
set -ex set -ex
apt update apt update
apt autoremove -y
apt upgrade -y apt upgrade -y
# Configure sshd to be faster # Configure sshd to be faster
+1
View File
@@ -2,6 +2,7 @@
set -ex set -ex
apt update apt update
apt autoremove -y
apt upgrade -y apt upgrade -y
# Configure sshd to be faster # Configure sshd to be faster
+2 -2
View File
@@ -1,8 +1,8 @@
distro = "fedora" distro = "fedora"
version = "rawhide" version = "rawhide"
iso = { iso = {
url = "https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Server/x86_64/iso/./Fedora-Server-dvd-x86_64-Rawhide-20230823.n.0.iso" url = "https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Server/x86_64/iso/./Fedora-Server-dvd-x86_64-Rawhide-20230824.n.0.iso"
checksum = "4ed35d456b51b2d27cfa083220cc0ac4b593f63db0513d69d79af622711783a6" checksum = "70f626198b172da63fb991e61dd571ab2be66e2f7d0795f4c14c6c52a33f57df"
} }
boot_command = [ boot_command = [
"<up>e<down><down><end><bs><bs><bs><bs><bs>", "<up>e<down><down><end><bs><bs><bs><bs><bs>",
+3 -1
View File
@@ -6,4 +6,6 @@
- arch: x86_64 - arch: x86_64
provider: vmware-iso provider: vmware-iso
38: *supp 38: *supp
rawhide: *supp rawhide:
- arch: x86_64
provider: qemu
+2 -3
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
apt install -y virtualbox-guest-dkms # Nothing to install here, as the package is provided by the
systemctl start vboxservice # kernal image in Ubuntu 20.04
systemctl enable vboxservice
-2
View File
@@ -2,5 +2,3 @@
set -ex set -ex
apt install -y virtualbox-guest-utils apt install -y virtualbox-guest-utils
systemctl start vboxservice
systemctl enable vboxservice