Oracle Linux 7.2 - VBoxGuestAdditions issue - shared directory is not mounted
Posted: 15. Sep 2016, 22:16
rpm -qa|grep kernel
kernel-uek-3.8.13-98.7.1.el7uek.x86_64
kernel-headers-3.10.0-327.el7.x86_64
kernel-devel-3.10.0-327.el7.x86_64
kernel-uek-firmware-3.8.13-98.7.1.el7uek.noarch
kernel-tools-3.10.0-327.el7.x86_64
kernel-tools-libs-3.10.0-327.el7.x86_64
kernel-3.10.0-327.el7.x86_64
echo $KERN_DIR
/usr/src/kernels/3.10.0-327.el7.x86_64
./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.6 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: Starting the VirtualBox Guest Additions.
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
cat /var/log/VBoxGuestAdditions.log
chcon: can't apply partial context to unlabeled file ‘/usr/lib64/VBoxGuestAdditions/mount.vboxsf’
vboxadd.sh: failed: modprobe vboxguest failed.
uname -a
Linux 3.8.13-98.7.1.el7uek.x86_64 #2 SMP Wed Nov 25 13:51:41 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
Here is additional information
systemctl status vboxadd.service
vboxadd.service
Loaded: loaded (/opt/VBoxGuestAdditions-5.1.6/init/vboxadd; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-09-15 16:07:30 EDT; 14min ago
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: Starting the VirtualBox Guest Additions.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: Building Guest Additions kernel modules.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: modprobe vboxguest failed.
Sep 15 16:07:30 systemd[1]: vboxadd.service: control process exited, code=exited status=1
Sep 15 16:07:30 systemd[1]: Failed to start vboxadd.service.
Sep 15 16:07:30 systemd[1]: Unit vboxadd.service entered failed state.
Sep 15 16:07:30 systemd[1]: vboxadd.service failed.
Sep 15 16:16:16 systemd[1]: Stopped vboxadd.service.
which gcc
/usr/bin/gcc
which make
/usr/bin/make
kernel-uek-3.8.13-98.7.1.el7uek.x86_64
kernel-headers-3.10.0-327.el7.x86_64
kernel-devel-3.10.0-327.el7.x86_64
kernel-uek-firmware-3.8.13-98.7.1.el7uek.noarch
kernel-tools-3.10.0-327.el7.x86_64
kernel-tools-libs-3.10.0-327.el7.x86_64
kernel-3.10.0-327.el7.x86_64
echo $KERN_DIR
/usr/src/kernels/3.10.0-327.el7.x86_64
./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.6 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.6 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: Starting the VirtualBox Guest Additions.
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
cat /var/log/VBoxGuestAdditions.log
chcon: can't apply partial context to unlabeled file ‘/usr/lib64/VBoxGuestAdditions/mount.vboxsf’
vboxadd.sh: failed: modprobe vboxguest failed.
uname -a
Linux 3.8.13-98.7.1.el7uek.x86_64 #2 SMP Wed Nov 25 13:51:41 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
Here is additional information
systemctl status vboxadd.service
vboxadd.service
Loaded: loaded (/opt/VBoxGuestAdditions-5.1.6/init/vboxadd; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-09-15 16:07:30 EDT; 14min ago
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: Starting the VirtualBox Guest Additions.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: Building Guest Additions kernel modules.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
Sep 15 16:07:30 vboxadd[20534]: vboxadd.sh: failed: modprobe vboxguest failed.
Sep 15 16:07:30 systemd[1]: vboxadd.service: control process exited, code=exited status=1
Sep 15 16:07:30 systemd[1]: Failed to start vboxadd.service.
Sep 15 16:07:30 systemd[1]: Unit vboxadd.service entered failed state.
Sep 15 16:07:30 systemd[1]: vboxadd.service failed.
Sep 15 16:16:16 systemd[1]: Stopped vboxadd.service.
which gcc
/usr/bin/gcc
which make
/usr/bin/make