-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: VirtualBox Guest Additions v7.0.14 (#2)
Previously we only had the ISO inside the VM, but we didn't actually install the tools.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
ISO_PATH="/home/ttuser/VBoxGuestAdditions.iso" | ||
MOUNT_PATH="/tmp/vbox_tools_iso" | ||
|
||
sudo apt-get install -y build-essential gcc make perl dkms | ||
|
||
mkdir -p "$MOUNT_PATH" | ||
|
||
sudo mount -t iso9660 -o loop "$ISO_PATH" "$MOUNT_PATH" | ||
# Exit code 2 is ok, it means the installer was successful | ||
sudo "$MOUNT_PATH/VBoxLinuxAdditions.run" --nox11 || [ $? -eq 2 ] | ||
sudo umount $MOUNT_PATH | ||
|
||
# Verify that the installation was successful | ||
sudo /usr/sbin/VBoxService --version | ||
|
||
rm -rf $MOUNT_PATH $ISO_PATH |