Results 1 to 10 of 10

Thread: Issues installing VirtualBox Guest Additions

  1. #1
    Join Date
    2013-Sep
    Posts
    3

    Question Issues installing VirtualBox Guest Additions

    I've followed the guide for installing virtualbox guest additions, apt-get install linux-headers-$(uname -r), etc. When trying to build the main guest module, it fails.

    Code:
    sh ./VBoxLinuxAdditions.run
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 4.2.18 Guest Additions for Linux............
    VirtualBox Guest Additions installer
    Removing installed version 4.2.18 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    Removing existing VirtualBox non-DKMS kernel modules ...done.
    Building the VirtualBox Guest Additions kernel modules
    The headers for the current running kernel were not found. If the following
    module compilation fails then this could be the reason.
    
    Building the main Guest Additions module ...fail!
    (Look at /var/log/vboxadd-install.log to find out what went wrong)
    Doing non-kernel setup of the Guest Additions ...done.
    Installing the Window System drivers
    Installing X.Org Server 1.12 modules ...done.
    Setting up the Window System to use the Guest Additions ...done.
    You may need to restart the hal service and the Window System (or just restart
    the guest system) to enable the Guest Additions.
    
    Installing graphics libraries and desktop services components ...done.
    /var/log/vboxadd-install.log is pretty long. I can post it if requested. Thank you.

  2. #2
    Join Date
    2013-Mar
    Posts
    354
    Install the headers:

    1. open up a terminal and type: uname -r, now copy the output, for example:
    root@kali-linux:~# uname -r
    3.10-3-amd64
    root@kali-linux:~#

    2. aptitude install linux-headers-3.10-3-amd64

    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.

    Sorry, I tried to avoid as much as possible the VM's, but I can remember there are 4 options in the bar menu: Machine, Ver, Devices and help. Again I cannot remember exactly but it should be under Devices.

    Luck.

  3. #3
    Join Date
    2013-Sep
    Posts
    3
    Unfortunately in my haste I didn't realize that the headers had not installed properly from:

    Code:
    root@kali:~# aptitude install linux-headers-$(uname -r)
    or
    Code:
    root@kali:~# uname -r
    3.7-trunk-amd64
    root@kali:~# aptitude install linux-headers-3.7-trunk-amd64
    Both methods return:
    Code:
    Couldn't find any package whose name or description matched "linux-headers-3.7-trunk-amd64"
    I'm researching if there is perhaps a repo that I'm missing that was not included on install, for whatever reason.

    Thanks

  4. #4
    Join Date
    2013-Sep
    Posts
    3
    Solved. For whatever reason the main repo was not a part of sources.list. Added, installed virtualbox additions, still technically says it can't find headers, but regardless it compiles correctly and works. Thank you for pointing out that my headers hadn't installed!

  5. #5
    Join Date
    2013-Mar
    Posts
    354
    Check the repos, read this: http://docs.kali.org/general-use/kal...t-repositories

    Add the 2 lines and then run: aptitude update, and then aptitude install "your headers".

  6. #6
    Join Date
    2014-Jan
    Posts
    2
    i have the same problem
    and headers are installed.

    root@kali:~# sudo apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    linux-headers-3.12-kali1-686-pae is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.

  7. #7
    Join Date
    2014-Jan
    Posts
    3
    i had the same probleme and this helped me

    https://forums.kali.org/showthread.p...-Additivs-Kali

  8. #8
    Join Date
    2013-Jun
    Posts
    16
    Quote Originally Posted by HackXBack View Post
    i have the same problem
    and headers are installed.

    root@kali:~# sudo apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    linux-headers-3.12-kali1-686-pae is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
    Same issue here, but, nevertheless, the guest additions end up installing and functioning correctly.

  9. #9
    Join Date
    2014-Apr
    Posts
    1
    Once you have booted into your Kali Linux virtual machine, open a terminal window and issue the following command to install the Linux Kernel headers.

    apt-get update && apt-get install -y linux-headers-$(uname -r)

    cp /media/cd-rom/VBoxLinuxAdditions.run /root/
    chmod 755 /root/VBoxLinuxAdditions.run
    cd /root
    ./VBoxLinuxAdditions.run


    Thanks

  10. #10
    Join Date
    2015-Jul
    Posts
    1

    Exclamation Error

    (Problem Solved)
    Last edited by C.T.Glynn; 2016-12-24 at 09:18. Reason: Solved

Similar Threads

  1. Replies: 1
    Last Post: 2014-09-19, 11:33
  2. Guest Additions VirtualBox
    By quentoli in forum Installing Archive
    Replies: 1
    Last Post: 2013-04-21, 18:31

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •