Install Guest Additions
The snippet can be accessed without any authentication.
Authored by
Frank Sauerburger
Install VBox 5.2 Guest Additions for CentOS 7. Make sure that the Guest Additions image is inserted and accessible via /dev/sr0
.
See https://frank.sauerburger.io/2019/03/27/install-guest-addiiations-for-centos.html
#!/bin/bash
# Quick script to install Guest Additions uner CentOS 7.
# $ curl -fsSL https://gitlab.sauerburger.com/snippets/14/raw -o install-ga.sh
# $ sudo bash install-ga.sh
set -ex
yum install -y bzip2 tar gcc make perl kernel-devel-$(uname -r)
mkdir -p /tmp/guest_additions
mount /dev/sr0 /tmp/guest_additions
/tmp/guest_additions/VBoxLinuxAdditions.run
Please register or sign in to comment