0

Am using Redhat Enterprise Linux 7.3 with kernel version of 3.10.0-514.el7 below mentioned kernel with Redhat Enterprise Linux on top of Oracle Virtual box 5.1.10, the guest OS display is not fit to my screen, I tried "Insert Guest Additions CD", and no result, see the below screenshot.

How can I solve this issue?

enter image description here

  • try yum update then yum install kernel-devel gcc and reinstall the guest additions – Dababi Nov 29 '16 at 9:51
  • @Dababi, ok Sir let me do it now, I'll comment here the result – Saedawke Nov 29 '16 at 9:54
  • @Dababi, no change still it saying Failed to setup service vboxAdd – Saedawke Nov 29 '16 at 10:03
  • ok then try to install yum install kernel-devel-$(uname -r) and dkms packages and reinstall guest additions if it doesn't work you can look at the /var/log/vboxadd-install log to see what is missing. – Dababi Nov 29 '16 at 10:09
  • @Dababi, appreciated your support, thank you very much; it is solved, please post the comment as answer to mark this question answered. – Saedawke Nov 29 '16 at 10:37
3

Login to a root shell. The installation of guest additions will require the building of kernel modules. So you will need to install DKMS (Dynamic Kernel Module Support) that is used to simplify kernel upgrades (If DKMS is not used the Guest Additions will need to be reinstalled after every kernel update) and kernel-devel packages using these commands:

yum update
yum install dkms
yum install kernel-devel gcc
yum install kernel-devel-$(uname -r)

then you can install guest additions from the device tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.