前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >如何解决 VirtualBox 在安装 VB Guest additions(安装增强功能)时遇到的问题[通俗易懂]

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

作者头像
全栈程序员站长
发布2022-09-07 11:25:37
1.8K0
发布2022-09-07 11:25:37
举报
文章被收录于专栏:全栈程序员必看

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

问题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/

6 months ago

*** 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.cn/154755.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档