Skip to content

Instantly share code, notes, and snippets.

@tkdchen
Last active January 11, 2016 02:59
Show Gist options
  • Save tkdchen/f4dab7ab13f597d448b0 to your computer and use it in GitHub Desktop.
Save tkdchen/f4dab7ab13f597d448b0 to your computer and use it in GitHub Desktop.
Installl Virtualbox Guest Additions
function install_vb_additions
{
local VB_VERSION="$1";
curl -O http://download.virtualbox.org/virtualbox/${VB_VERSION}/VBoxGuestAdditions_${VB_VERSION}.iso
sudo mkdir /mnt/iso
sudo mount -o loop VBoxGuestAdditions_${VB_VERSION}.iso /mnt/iso
sudo yum install -y kernel-devel-`uname -r` gcc make perl bzip2
cd /mnt/iso
sudo ./VBoxLinuxAdditions.run # Do the task
cd
sudo umount /mnt/iso && sudo rm -rf /mnt/iso
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment