Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @larsar larsar revised this gist Jan 27, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion shared_folder_centos_virtualbox.txt
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,10 @@ mount /dev/cdrom /cdrom

    # Share a folder from the VirtualBox control panel, giving it a share name.

    # Mount the share
    ls /media/sf_<share_name>


    # You could always mount the directory yourself as well
    mkdir /a_folder_name
    mount -t vboxsf the_share_name /a_folder_name

  2. @larsar larsar revised this gist Jan 27, 2012. 1 changed file with 11 additions and 3 deletions.
    14 changes: 11 additions & 3 deletions shared_folder_centos_virtualbox.txt
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,26 @@
    The VirtualBox documentation[1] for how to install guest additions for Linux on a virtual host is somewhat messy. So here is what I did to make it work.
    # The VirtualBox documentation[1] for how to install guest additions
    # for Linux on a virtual host is somewhat messy. So here is what
    # I did to make it work.

    # Install the packages required
    yum update
    yum install gcc kernel-devel make

    reboot

    # Click: Devices/Install Guest Additions...

    # Mount the ISO image with the guest additions
    mkdir /cdrom
    mount /dev/cdrom /cdrom

    # Install guest additions
    /cdrom/VBoxLinuxAdditions.run

    Share a folder from the VirtualBox control panel, giving it a share name.
    # Share a folder from the VirtualBox control panel, giving it a share name.

    # Mount the share
    mkdir /a_folder_name

    mount -t vboxsf the_share_name /a_folder_name


  3. @larsar larsar revised this gist Jan 27, 2012. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions shared_folder_centos_virtualbox.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,5 @@
    The VirtualBox documentation[1] for how to install guest additions for Linux on a virtual host is somewhat messy. So here is what I did to make it work.




    yum update
    yum install gcc kernel-devel make

  4. @larsar larsar created this gist Jan 27, 2012.
    22 changes: 22 additions & 0 deletions shared_folder_centos_virtualbox.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    The VirtualBox documentation[1] for how to install guest additions for Linux on a virtual host is somewhat messy. So here is what I did to make it work.




    yum update
    yum install gcc kernel-devel make

    reboot

    mkdir /cdrom
    mount /dev/cdrom /cdrom
    /cdrom/VBoxLinuxAdditions.run

    Share a folder from the VirtualBox control panel, giving it a share name.

    mkdir /a_folder_name

    mount -t vboxsf the_share_name /a_folder_name


    [1] http://www.virtualbox.org/manual/ch04.html