如何解决 VirtualBox 在安装 VB Guest additions(安装增强功能)时遇到的问题[通俗易懂]

如何解决 VirtualBox 在安装 VB Guest additions(安装增强功能)时遇到的问题[通俗易懂]问题1遇到:ValueError:Filecontextfor/opt/VBoxGuestAdditions-6.1.6/other/mount.vboxsfalreadydefine

大家好,又见面了,我是你们的朋友全栈君。

问题1 遇到:

ValueError: File context for /opt/VBoxGuestAdditions-6.1.6/other/mount.vboxsf already defined

 

参看:

https://www.reddit.com/r/virtualbox/comments/gabkpr/vb_guest_additions_install_issue_on_fedora_32/

 

*** THIS IS ONLY TO RESOLVE THE ValueError ***

Hey! I stumbled across this same issue today, but was able to resolve the ValueError above. That particular issue is SELinux-related. It involves the VirtualBox installation of Guest Additions (GAs) trying to add a file context for the mount.vboxsf file when it is already set. To at least resolve that error:

  1. Be sure that the GAs that come with Fedora are removed using yum, and that the kernel-devel, gcc, make, and perl binaries are installed on your Fedora VM with yum.

  2. Escalate to root: sudo -i or su -

  3. As root:

    1. semanage fcontext -d /opt/VBoxGuestAdditions-<VERSION>/other/mount.vboxsf

    2. restorecon /opt/VBoxGuestAdditions-<VERSION>/other/mount.vboxsf

And then run the VBoxGuestAdditions installer, and reboot. At the very least, it should not have the ValueError shown above. As far as testing some of the other functionality, let me know if that works out for anyone, because I do not use clipboards and shared folders!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/154755.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号