Advertisement
BaSs_HaXoR

VirtualBox - current running kernel were not found [FIX]

Feb 23rd, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. ## ### ### ### ### ### ### ### ### ##
  2. ### Issues installing VirtualBox Guest Additions ###
  3. ## ### ### ### ### ### ### ### ### ##
  4.  
  5. -----------------------------------------------------------------------------------
  6. sh ./VBoxLinuxAdditions.run
  7. Verifying archive integrity... All good.
  8. Uncompressing VirtualBox 4.2.18 Guest Additions for Linux............
  9. VirtualBox Guest Additions installer
  10. Removing installed version 4.2.18 of VirtualBox Guest Additions...
  11. Copying additional installer modules ...
  12. Installing additional modules ...
  13. Removing existing VirtualBox non-DKMS kernel modules ...done.
  14. Building the VirtualBox Guest Additions kernel modules
  15. *** The headers for the current running kernel were not found. If the following
  16. module compilation fails then this could be the reason. *** // THIS IS THE PROBLEM! HOW TO FIX BELOW
  17.  
  18. Building the main Guest Additions module ...fail!
  19. (Look at /var/log/vboxadd-install.log to find out what went wrong)
  20. Doing non-kernel setup of the Guest Additions ...done.
  21. Installing the Window System drivers
  22. Installing X.Org Server 1.12 modules ...done.
  23. Setting up the Window System to use the Guest Additions ...done.
  24. You may need to restart the hal service and the Window System (or just restart
  25. the guest system) to enable the Guest Additions.
  26.  
  27. Installing graphics libraries and desktop services components ...done.
  28. -----------------------------------------------------------------------------------
  29. ### ### ### ### - ### ### ### ###
  30. ### ### ### ### FIX ### ### ### ###
  31. ### ### ### ### - ### ### ### ###
  32. Install the headers:
  33.  
  34. 1. open up a terminal and type: uname -r, now copy the output, for example:
  35. root@kali-linux:~# uname -r
  36. 3.10-3-amd64
  37. root@kali-linux:~#
  38. 2. aptitude install linux-headers-3.10-3-amd64
  39. 3. Now open your virtualbox and once in your virtual distro, you will see a menu bar on the top, go to "devices" if I'm not wrong, and find the Install guest addition.
  40. 4. cp /media/cd-rom/VBoxLinuxAdditions.run /root/
  41. chmod 755 /root/VBoxLinuxAdditions.run
  42. cd /root
  43. ./VBoxLinuxAdditions.run
  44.  
  45. // Source: https://forums.kali.org/showthread.php?18973-Issues-installing-VirtualBox-Guest-Additions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement