如何解決 VirtualBox 在安裝 VB Guest additions(安裝增強功能)時遇到的問題


問題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!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM