1. Mount the Guest Addons in VirtualBox:
Devices >> Insert Guest Additions
mount /dev/cdrom /mnt cd /mnt ./VBoxLinuxAdditions.run --nox11
2. if you get this error: "Unable to find the sources of current Linux kernel", then:
yum install kernel-devel yum group install "Development Tools" yum install kernel-headers-$(uname -r) ./VBoxLinuxAdditions.run --nox11
3. Add and auto mount vbox shared folder:
mount | grep vbox

vim /etc/fstab
Append the following and reboot:
/media/sf_vb-share /desired/mount/point bind defaults,bind 0 0
4. Reference:
http://www.turnkeylinux.org/docs/virtualbox-guest-addons
http://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/
https://forums.virtualbox.org/viewtopic.php?f=7&t=47862
https://forums.virtualbox.org/viewtopic.php?t=15868
本文提供了一系列步骤来指导您如何在VirtualBox中安装Guest Addons,并配置自动挂载VBox共享文件夹。包括解决安装过程中遇到的错误,如找不到当前Linux内核源,以及如何通过YUM安装必要的工具。同时介绍了如何将VBox共享文件夹添加到系统并自动挂载。

被折叠的 条评论
为什么被折叠?



