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>