VirtualBox Guest Additions on Kali Linux











up vote
1
down vote

favorite












Good evening.



So, I have been trying to install the virtualbox guest additions onto my Kali Linux VM for the past couple of days now and I am at a loss for why it's not working.



For starters, the host machine is running Windows 10. I am running VirtualBox version 5.1.18. In addition, I have been using Kali Linux version 2016.2 for a 64 bit OS.



I have tried several different methods for installing the guest additions. The first method was inserting the guest cd under the devices menu for my VM. I was able to see the disk on the desktop of the vm but when I tried to launch the software inside it errored with the message: Cannot find program.



I then tried the official way on the kali docs found here. Those commands worked fine and things were installed. However, upon reboot the seamless mode and auto-resize guest option for my vm were still greyed out.



I tried doing those two methods twice, each with a brand new VM.



My final method came from SuperUser as found here. I followed the comment talking about editing /etc/apt/sources.list. The commands below it worked until the apt-get install linux-headers-$(uname -r) command. The vm errored saying:



E: Unable to locate package linux-headers-4.6.0-kali-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali-amd64'
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali-amd64'


If any of you know what I can do to try and get this to work please let me know. Thank you so much in advance for your help.



Cheers!



-Smalls










share|improve this question


























    up vote
    1
    down vote

    favorite












    Good evening.



    So, I have been trying to install the virtualbox guest additions onto my Kali Linux VM for the past couple of days now and I am at a loss for why it's not working.



    For starters, the host machine is running Windows 10. I am running VirtualBox version 5.1.18. In addition, I have been using Kali Linux version 2016.2 for a 64 bit OS.



    I have tried several different methods for installing the guest additions. The first method was inserting the guest cd under the devices menu for my VM. I was able to see the disk on the desktop of the vm but when I tried to launch the software inside it errored with the message: Cannot find program.



    I then tried the official way on the kali docs found here. Those commands worked fine and things were installed. However, upon reboot the seamless mode and auto-resize guest option for my vm were still greyed out.



    I tried doing those two methods twice, each with a brand new VM.



    My final method came from SuperUser as found here. I followed the comment talking about editing /etc/apt/sources.list. The commands below it worked until the apt-get install linux-headers-$(uname -r) command. The vm errored saying:



    E: Unable to locate package linux-headers-4.6.0-kali-amd64
    E: Couldn't find any package by glob 'linux-headers-4.6.0-kali-amd64'
    E: Couldn't find any package by regex 'linux-headers-4.6.0-kali-amd64'


    If any of you know what I can do to try and get this to work please let me know. Thank you so much in advance for your help.



    Cheers!



    -Smalls










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Good evening.



      So, I have been trying to install the virtualbox guest additions onto my Kali Linux VM for the past couple of days now and I am at a loss for why it's not working.



      For starters, the host machine is running Windows 10. I am running VirtualBox version 5.1.18. In addition, I have been using Kali Linux version 2016.2 for a 64 bit OS.



      I have tried several different methods for installing the guest additions. The first method was inserting the guest cd under the devices menu for my VM. I was able to see the disk on the desktop of the vm but when I tried to launch the software inside it errored with the message: Cannot find program.



      I then tried the official way on the kali docs found here. Those commands worked fine and things were installed. However, upon reboot the seamless mode and auto-resize guest option for my vm were still greyed out.



      I tried doing those two methods twice, each with a brand new VM.



      My final method came from SuperUser as found here. I followed the comment talking about editing /etc/apt/sources.list. The commands below it worked until the apt-get install linux-headers-$(uname -r) command. The vm errored saying:



      E: Unable to locate package linux-headers-4.6.0-kali-amd64
      E: Couldn't find any package by glob 'linux-headers-4.6.0-kali-amd64'
      E: Couldn't find any package by regex 'linux-headers-4.6.0-kali-amd64'


      If any of you know what I can do to try and get this to work please let me know. Thank you so much in advance for your help.



      Cheers!



      -Smalls










      share|improve this question













      Good evening.



      So, I have been trying to install the virtualbox guest additions onto my Kali Linux VM for the past couple of days now and I am at a loss for why it's not working.



      For starters, the host machine is running Windows 10. I am running VirtualBox version 5.1.18. In addition, I have been using Kali Linux version 2016.2 for a 64 bit OS.



      I have tried several different methods for installing the guest additions. The first method was inserting the guest cd under the devices menu for my VM. I was able to see the disk on the desktop of the vm but when I tried to launch the software inside it errored with the message: Cannot find program.



      I then tried the official way on the kali docs found here. Those commands worked fine and things were installed. However, upon reboot the seamless mode and auto-resize guest option for my vm were still greyed out.



      I tried doing those two methods twice, each with a brand new VM.



      My final method came from SuperUser as found here. I followed the comment talking about editing /etc/apt/sources.list. The commands below it worked until the apt-get install linux-headers-$(uname -r) command. The vm errored saying:



      E: Unable to locate package linux-headers-4.6.0-kali-amd64
      E: Couldn't find any package by glob 'linux-headers-4.6.0-kali-amd64'
      E: Couldn't find any package by regex 'linux-headers-4.6.0-kali-amd64'


      If any of you know what I can do to try and get this to work please let me know. Thank you so much in advance for your help.



      Cheers!



      -Smalls







      virtualbox virtual-machine resolution kali-linux guest-additions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 16 '17 at 1:25









      Smalls

      613




      613






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote













          Try this procedure:





          1. install linux headers



            sudo apt-get install build-essential linux-headers-`uname -r` dkms


          2. mount CD VBoxGuestAdditions



          3. get into that cd and run



            sudo ./VBoxLinuxAdditions.run



          Wait until it installs and reboot the VM






          share|improve this answer




























            up vote
            0
            down vote













            This worked for me:



            apt-get purge virtualbox-guest-x11
            apt-get autoremove --purge
            reboot
            apt-get update
            apt-get dist-upgrade
            reboot
            apt-get update
            apt-get install -y virtualbox-guest-x11
            reboot





            share|improve this answer






























              up vote
              0
              down vote













              This worked for me on Linux kali 4.14.0-kali3-amd64



              apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
              reboot
              apt-get install -y virtualbox-guest-x11
              reboot


              Then



              apt-get install virtualbox-guest-additions-iso
              mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
              cd /mnt
              ./VBoxLinuxAdditions.run
              reboot


              or



              Virtual Box Menu: Devices -> Insert Guest Additions CD..



              mkdir VBox
              cp -Rv /media/cdrom0/* ~/Vbox/
              cd Vbox/
              ./VBoxLinuxAdditions.run
              reboot





              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1200087%2fvirtualbox-guest-additions-on-kali-linux%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                0
                down vote













                Try this procedure:





                1. install linux headers



                  sudo apt-get install build-essential linux-headers-`uname -r` dkms


                2. mount CD VBoxGuestAdditions



                3. get into that cd and run



                  sudo ./VBoxLinuxAdditions.run



                Wait until it installs and reboot the VM






                share|improve this answer

























                  up vote
                  0
                  down vote













                  Try this procedure:





                  1. install linux headers



                    sudo apt-get install build-essential linux-headers-`uname -r` dkms


                  2. mount CD VBoxGuestAdditions



                  3. get into that cd and run



                    sudo ./VBoxLinuxAdditions.run



                  Wait until it installs and reboot the VM






                  share|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    Try this procedure:





                    1. install linux headers



                      sudo apt-get install build-essential linux-headers-`uname -r` dkms


                    2. mount CD VBoxGuestAdditions



                    3. get into that cd and run



                      sudo ./VBoxLinuxAdditions.run



                    Wait until it installs and reboot the VM






                    share|improve this answer












                    Try this procedure:





                    1. install linux headers



                      sudo apt-get install build-essential linux-headers-`uname -r` dkms


                    2. mount CD VBoxGuestAdditions



                    3. get into that cd and run



                      sudo ./VBoxLinuxAdditions.run



                    Wait until it installs and reboot the VM







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 20 '17 at 6:42









                    lewis4u

                    4031615




                    4031615
























                        up vote
                        0
                        down vote













                        This worked for me:



                        apt-get purge virtualbox-guest-x11
                        apt-get autoremove --purge
                        reboot
                        apt-get update
                        apt-get dist-upgrade
                        reboot
                        apt-get update
                        apt-get install -y virtualbox-guest-x11
                        reboot





                        share|improve this answer



























                          up vote
                          0
                          down vote













                          This worked for me:



                          apt-get purge virtualbox-guest-x11
                          apt-get autoremove --purge
                          reboot
                          apt-get update
                          apt-get dist-upgrade
                          reboot
                          apt-get update
                          apt-get install -y virtualbox-guest-x11
                          reboot





                          share|improve this answer

























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            This worked for me:



                            apt-get purge virtualbox-guest-x11
                            apt-get autoremove --purge
                            reboot
                            apt-get update
                            apt-get dist-upgrade
                            reboot
                            apt-get update
                            apt-get install -y virtualbox-guest-x11
                            reboot





                            share|improve this answer














                            This worked for me:



                            apt-get purge virtualbox-guest-x11
                            apt-get autoremove --purge
                            reboot
                            apt-get update
                            apt-get dist-upgrade
                            reboot
                            apt-get update
                            apt-get install -y virtualbox-guest-x11
                            reboot






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jun 18 '17 at 4:12









                            Stephen Rauch

                            2,24581625




                            2,24581625










                            answered Jun 18 '17 at 2:47









                            tony

                            1




                            1






















                                up vote
                                0
                                down vote













                                This worked for me on Linux kali 4.14.0-kali3-amd64



                                apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
                                reboot
                                apt-get install -y virtualbox-guest-x11
                                reboot


                                Then



                                apt-get install virtualbox-guest-additions-iso
                                mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
                                cd /mnt
                                ./VBoxLinuxAdditions.run
                                reboot


                                or



                                Virtual Box Menu: Devices -> Insert Guest Additions CD..



                                mkdir VBox
                                cp -Rv /media/cdrom0/* ~/Vbox/
                                cd Vbox/
                                ./VBoxLinuxAdditions.run
                                reboot





                                share|improve this answer



























                                  up vote
                                  0
                                  down vote













                                  This worked for me on Linux kali 4.14.0-kali3-amd64



                                  apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
                                  reboot
                                  apt-get install -y virtualbox-guest-x11
                                  reboot


                                  Then



                                  apt-get install virtualbox-guest-additions-iso
                                  mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
                                  cd /mnt
                                  ./VBoxLinuxAdditions.run
                                  reboot


                                  or



                                  Virtual Box Menu: Devices -> Insert Guest Additions CD..



                                  mkdir VBox
                                  cp -Rv /media/cdrom0/* ~/Vbox/
                                  cd Vbox/
                                  ./VBoxLinuxAdditions.run
                                  reboot





                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    This worked for me on Linux kali 4.14.0-kali3-amd64



                                    apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
                                    reboot
                                    apt-get install -y virtualbox-guest-x11
                                    reboot


                                    Then



                                    apt-get install virtualbox-guest-additions-iso
                                    mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
                                    cd /mnt
                                    ./VBoxLinuxAdditions.run
                                    reboot


                                    or



                                    Virtual Box Menu: Devices -> Insert Guest Additions CD..



                                    mkdir VBox
                                    cp -Rv /media/cdrom0/* ~/Vbox/
                                    cd Vbox/
                                    ./VBoxLinuxAdditions.run
                                    reboot





                                    share|improve this answer














                                    This worked for me on Linux kali 4.14.0-kali3-amd64



                                    apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
                                    reboot
                                    apt-get install -y virtualbox-guest-x11
                                    reboot


                                    Then



                                    apt-get install virtualbox-guest-additions-iso
                                    mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
                                    cd /mnt
                                    ./VBoxLinuxAdditions.run
                                    reboot


                                    or



                                    Virtual Box Menu: Devices -> Insert Guest Additions CD..



                                    mkdir VBox
                                    cp -Rv /media/cdrom0/* ~/Vbox/
                                    cd Vbox/
                                    ./VBoxLinuxAdditions.run
                                    reboot






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Mar 14 at 23:43

























                                    answered Mar 12 at 14:56









                                    Nestor Waldyd

                                    112




                                    112






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.





                                        Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                        Please pay close attention to the following guidance:


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1200087%2fvirtualbox-guest-additions-on-kali-linux%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Plaza Victoria

                                        In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                                        How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...