我刚刚升级到 Fedora 25。我从官方网站安装了 VirtualBox-5.1-5.1.10_112026_fedora25-1.x86_64.rpm。但是当我尝试安装 Guest OS 时,我得到了
我确实尝试按照要求运行 /sbin/vboxconfig。我得到了
*更新:我注意到 SELinux 显示此消息
SELinux is preventing vboxdrv.sh from create access on the file vbox-install.log.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that vboxdrv.sh should be allowed create access on the vbox-install.log file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'vboxdrv.sh' --raw | audit2allow -M my-vboxdrvsh
# semodule -X 300 -i my-vboxdrvsh.pp
Additional Information:
Source Context system_u:system_r:init_t:s0
Target Context system_u:object_r:var_log_t:s0
Target Objects vbox-install.log [ file ]
Source vboxdrv.sh
Source Path vboxdrv.sh
Port <Unknown>
Host X260
Source RPM Packages
Target RPM Packages
Policy RPM selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name X260
Platform Linux X260 4.8.8-300.fc25.x86_64 #1 SMP Tue Nov 15
18:10:06 UTC 2016 x86_64 x86_64
Alert Count 3
First Seen 2016-11-27 15:05:07 GMT
Last Seen 2016-11-27 16:29:29 GMT
Local ID 07b1a9aa-ab4c-4db1-97ae-62b46f32a9ec
Raw Audit Messages
type=AVC msg=audit(1480264169.261:175): avc: denied { create } for pid=1545 comm="vboxdrv.sh" name="vbox-install.log" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=0
Hash: vboxdrv.sh,init_t,var_log_t,file,create
任何帮助,将不胜感激。
答案1
当我尝试在 FED25 上安装 vBox 时,我得到了完全相同的 SElinux 通知和 bash 响应。检查 YUM 并确保安装了 kernel-devel 以方便修改 kernel-core。安装 kernel-devel 后,vBox 手册中的“rcvboxdrv setup”命令(参见第 2.3 节)安装了驱动程序,并且 vBox 能够启动。