VirtualBox

Opened 5 years ago

Closed 5 years ago

#19111 closed defect (invalid)

Linux 6 Boot Error policy.kern

Reported by: DonC Owned by:
Component: guest additions Version: VirtualBox 6.0.14
Keywords: policy.kern Cc:
Guest type: Linux Host type: Windows

Description

When either booting or running the guest additions CD on Linux 6 (4.1.12-124.33.4.el6uek.x86_64), I get the following error:

VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
libsemanage.semanage_read_policydb: Error while reading kernel policy from /etc/selinux/targeted/modules/active/policy.kern. (No such file or directory).
/usr/sbin/semanage: Could not test MLS enabled status
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted

I have attached the Machine Log and the VBoxGuestAdditions.log. I looked for the policy and it is one of the empty files (0 bytes) in the directory.

Attachments (2)

Machine.log (124.1 KB ) - added by DonC 5 years ago.
Full Machine Log
VBoxGuestAdditions.log (811 bytes ) - added by DonC 5 years ago.

Download all attachments as: .zip

Change History (5)

by DonC, 5 years ago

Attachment: Machine.log added

Full Machine Log

by DonC, 5 years ago

Attachment: VBoxGuestAdditions.log added

comment:1 by DonC, 5 years ago

As well, this seems to keep the Shared Folders from working. The mounts are there but there are no files or sub-directories to be seen. The folders do not show on the desktop either.

Last edited 5 years ago by DonC (previous) (diff)

comment:2 by Frank Batschulat (Oracle), 5 years ago

Sorry but we cannot debug your SELinux setup/Installation problems here in a bug.

https://www.virtualbox.org/attachment/ticket/19111/VBoxGuestAdditions.log

Those file presumably should not be zero bytes in size:

[fbatschu@ol6 ~]$  ls -la /etc/selinux/targeted/policy/
total 8288
drwxr-xr-x. 2 root root    4096 Nov  7 18:41 .
drwxr-xr-x. 6 root root    4096 Nov  7 18:41 ..
-rw-r--r--. 1 root root 8477577 Nov  7 18:41 policy.24
 
[fbatschu@ol6 ~]$ uname -a
Linux ol6 4.1.12-124.33.4.el6uek.x86_64 #2 SMP Tue Nov 19 13:06:13 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
[fbatschu@ol6 ~]$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="6.10"
ID="ol"
VERSION_ID="6.10"
PRETTY_NAME="Oracle Linux Server 6.10"

The file you are apparently missing from the error message:

root@ol6 fbatschu]# ls -la /etc/selinux/targeted/modules/active/
total 9156
drwx------. 3 root root    4096 Nov  7 18:41 .
drwxr-xr-x. 3 root root    4096 Nov  7 18:41 ..
-rw-------. 1 root root  250282 Nov  7 18:41 base.pp
-rw-------. 1 root root      32 Nov  7 18:41 commit_num
-rw-------. 1 root root  292768 Nov  7 18:41 file_contexts
-rw-r--r--. 1 root root    6405 Nov  7 18:41 file_contexts.homedirs
-rw-------. 1 root root  298399 Nov  7 18:41 file_contexts.template
-rw-------. 1 root root    5631 Nov  7 18:41 homedir_template
drwx------. 2 root root   12288 Nov  7 18:41 modules
-rw-------. 1 root root       0 Nov  7 18:41 netfilter_contexts
-rw-r--r--. 1 root root 8477577 Nov  7 18:41 policy.kern
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-rw-------. 1 root root     106 Nov  7 18:41 seusers.final
-rw-------. 1 root root     101 Nov  7 18:41 users_extra

You must have turned on MLS SELinux context but somehow your installation does not match a supporting SELinux installation.

Last edited 5 years ago by Frank Batschulat (Oracle) (previous) (diff)

comment:3 by Frank Batschulat (Oracle), 5 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette