FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2018
    Location
    philadelphia
    Posts
    1

    Setup Share Folder for Fedora27/28 Guested in Virtual Box 5.2

    Just took a little bit time to get Share Folder to work on Fedora 27 and Fedora 28 in Virtual Box 5.2. The below steps are for Fedora-MATE_Compiz-Live-x86_64-27-1.6 but could also be applied on Fedora 28. I verified with https://download.fedoraproject.org/p..._64-28-1.1.iso

    1.First install Virtual Box 5.2 as https://www.if-not-true-then-false.c...-red-hat-rhel/

    2. Install
    Fedora-MATE_Compiz-Live-x86_64-27-1.6.iso
    https://download-ib01.fedoraproject....ns/x86_64/iso/

    3. Download VBoxGuestAdditions_5.2.10.iso from https://download.virtualbox.org/virt...ons_5.2.10.iso

    4. To build kernel modules of Guest Additions, need to install:
    Install gcc and / or g++ and it’s related Development Tools:

    dnf group install 'Development Tools’
    yum -y install kernel-devel kernel-headers
    export kernel_headers=`ls -hd /usr/src/kernels/4*`
    sudo ln -s ${kernel_headers}/include/generated/uapi/linux/version.h ${kernel_headers}/include/linux/version.h

    After installation, Kernel source should be under “ls /usr/src/kernels/$(uname -r)”
    Now check “uname -r” --> 4.13.9-300.fc27.x86_64
    Make sure the version of installed kernel-devel and kernel-headers packages having the same version.

    In case there is mismatch, just:
    Remove the packages:
    sudo yum install "kernel-devel-uname-r == $(uname -r)"
    Or,
    sudo yum update
    to make sure you are running the latest F27 kernel as well as the latest packages installed.
    Then after a bunch of upgrade, building main Guest Additions module hit error:

    "Makefile:978: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop."

    Install elfutils-libelf
    dnf install elfutils elfutils-libelf
    dnf install elfutils-libelf-devel

    Better check the results from the two commands:
    yum list |grep elfutils-libelf
    rpm -qa |grep elfutils-libelf

    If there is mismatch, the problem is where you have a package from updates-testing but that repo's been disabled by the fedora-release update. Enable updates-testing again by:

    yum --enablerepo=u*g install elfutils-libelf-devel

    5. After finishing all the above steps, you can build the kernel modules. An error may come up when it finished compiling the modules and tried to `modprobe vboxsf`, and rebooting the guest OS VM would fix that.

    6. To verify 'Guest Additions' properly installed, use
    cat /proc/filesystems
    You should see shared folder is accessible under `/media/sf_SHAREDNAME/`

    7. Finally, add your username to the vboxsf group by:
    sudo usermod -G vboxsf -a <username>

  2. #2
    Join Date
    Apr 2018
    Location
    California
    Posts
    27

    Re: Setup Share Folder for Fedora27/28 Guested in Virtual Box 5.2

    Great tutorial! A couple of quick notes/comments:

    3) The VirtualBox Guest Additions ISO file is part of the VirtualBox installation, so there's no need to download it
    (found here: /usr/share/virtualbox/VBoxGuestAdditions.iso)
    I would also strongly suggest installing the VirtualBox Extension Pack.

    6) When adding shared folders in Linux VMs, make sure that the shared folder is a real folder, not a symlink. This doesn't seem to be a problem in Windows (at least not my Windows7-64bit VM), but on Fedora 27/28, Mint 18.3, & OpenSUSE Tumbleweed/LEAP it was an issue.

    Thanks again for posting this.

Similar Threads

  1. samba share folder in mnt .
    By mypass604 in forum Servers & Networking
    Replies: 3
    Last Post: 4th December 2015, 06:59 AM
  2. Can't share folder via samba
    By MasterSergius in forum Servers & Networking
    Replies: 10
    Last Post: 17th March 2015, 11:31 PM
  3. /usr/share folder gone
    By Falconus in forum Using Fedora
    Replies: 4
    Last Post: 17th September 2009, 10:09 PM
  4. Share folder mac an ms
    By ardainbox in forum Using Fedora
    Replies: 0
    Last Post: 1st March 2007, 11:11 AM
  5. Share folder for all users?
    By gnomicGhost in forum Using Fedora
    Replies: 3
    Last Post: 19th April 2006, 08:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •