Last active
June 27, 2022 16:57
-
-
Save adaroobi/fea2727be6ae3d9c446767f813146f93 to your computer and use it in GitHub Desktop.
Install Oracle VirtualBox Guest additions via terminal CentOS7
This file contains hidden or 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
# Find the appropriate version here http://download.virtualbox.org/virtualbox/ | |
sudo VBOX_VERSION=6.0.4 | |
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo rpm -Uvh http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/d/dkms-2.6.1-1.el7.noarch.rpm | |
sudo yum -y install wget perl gcc dkms kernel-devel kernel-headers make bzip2 | |
wget http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso | |
sudo mkdir /media/VBoxGuestAdditions | |
sudo mount -o loop,ro VBoxGuestAdditions_${VBOX_VERSION}.iso /media/VBoxGuestAdditions | |
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run | |
rm -f VBoxGuestAdditions_${VBOX_VERSION}.iso | |
sudo umount /media/VBoxGuestAdditions | |
sudo rmdir /media/VBoxGuestAdditions | |
sudo unset VBOX_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment