Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infolock/55b5d3d73c60b513c61d to your computer and use it in GitHub Desktop.
Save infolock/55b5d3d73c60b513c61d to your computer and use it in GitHub Desktop.
##
# Below are the steps taken to install the GuestAdditions on a VirtualBox Centos 6.5 Instance. This was done to setup sharing between Mac OSX and CentOS 6.5.
#
# Login to the GUEST ( your actual VirtualBox CentOS Instance ), update `yum` and install the necessary packages
#
##
yum update
yum --enablerepo rpmforge install dkms
yum --enablerepo rpmforge install dkms
yum groupinstall "Development Tools"
yum install kernel-devel
##
# Next, setup a shared folder:
# * From the (running) VirtualBox instance, go to "Devices > Shared Folders Settings" (located in the menu at the top of your screen)
# * Click the +Add New Shared Folder icon
# * Navigate to the path on your HOST machine ( the machine used to start VirtualBox ) that you'd like to share
# * Check "Auto-mount" and "Make Permanent"
# * Click "OK" and save your changes
#
# Go back into the GUEST ( your actual VirtualBox CentOS Instance ) machine and issue the following commands:
#
##
mkdir /media/VirtualBoxGuestAdditions
mount -t iso9660 -o loop /dev/disk/by-label/VBOXADDITIONS_4.3.14_95030 /media/VirtualBoxGuestAdditions
/media/VirtualBoxGuestAdditions/VBoxLinuxAdditions.run
######################################################################
# >>> Note: update VBOXADDITIONS_4.3.14_95030 as needed
######################################################################
##
# Once the install completes, you can now mount your shared folder.
# Example:
##
mount -t vboxsf SHARED_FOLDER_NAME /path/to/where/you/want/to/mount/this/folder
######################################################################
# >>> Note that SHARED_FOLDER_NAME is the name you gave for the
# shared folder - not the actual path
######################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment