VirtualBox Guest Additions Debian 9

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I've been trying for hours to get Guest Additions running on Debian 9 in VirtualBox.
I'm not very much into Linux I'm a beginner. I tried to install Guest Additions via VirtualBox, via Direct download from virtualbox.org and via apt.
Everytime fail with Kernel headers. But I installed them as shown in several tutorials. (first I tried linux-headers-$(uname -r) later linux-headers-4.9.0-3-common)
The last thing I tried was working on Debian 8 where I had the same problem



apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)


The additions seemed to be installed. I didn't get an error when I tried to add shared folders. Before I got a message everytime saying that the GuestAdditions are not installed.



But after reboot I still have no fullscreen 16:9 display and there are no shared folders mounted



What's the problem? What can I do to fix this problem?







share|improve this question






















  • with sudo or as root dkms status Also uname -r You can edit your question for that.
    – user192526
    Nov 10 '17 at 14:08










  • What version of VirtualBox do you use?
    – Vlastimil
    Dec 1 '17 at 10:17














up vote
1
down vote

favorite












I've been trying for hours to get Guest Additions running on Debian 9 in VirtualBox.
I'm not very much into Linux I'm a beginner. I tried to install Guest Additions via VirtualBox, via Direct download from virtualbox.org and via apt.
Everytime fail with Kernel headers. But I installed them as shown in several tutorials. (first I tried linux-headers-$(uname -r) later linux-headers-4.9.0-3-common)
The last thing I tried was working on Debian 8 where I had the same problem



apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)


The additions seemed to be installed. I didn't get an error when I tried to add shared folders. Before I got a message everytime saying that the GuestAdditions are not installed.



But after reboot I still have no fullscreen 16:9 display and there are no shared folders mounted



What's the problem? What can I do to fix this problem?







share|improve this question






















  • with sudo or as root dkms status Also uname -r You can edit your question for that.
    – user192526
    Nov 10 '17 at 14:08










  • What version of VirtualBox do you use?
    – Vlastimil
    Dec 1 '17 at 10:17












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've been trying for hours to get Guest Additions running on Debian 9 in VirtualBox.
I'm not very much into Linux I'm a beginner. I tried to install Guest Additions via VirtualBox, via Direct download from virtualbox.org and via apt.
Everytime fail with Kernel headers. But I installed them as shown in several tutorials. (first I tried linux-headers-$(uname -r) later linux-headers-4.9.0-3-common)
The last thing I tried was working on Debian 8 where I had the same problem



apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)


The additions seemed to be installed. I didn't get an error when I tried to add shared folders. Before I got a message everytime saying that the GuestAdditions are not installed.



But after reboot I still have no fullscreen 16:9 display and there are no shared folders mounted



What's the problem? What can I do to fix this problem?







share|improve this question














I've been trying for hours to get Guest Additions running on Debian 9 in VirtualBox.
I'm not very much into Linux I'm a beginner. I tried to install Guest Additions via VirtualBox, via Direct download from virtualbox.org and via apt.
Everytime fail with Kernel headers. But I installed them as shown in several tutorials. (first I tried linux-headers-$(uname -r) later linux-headers-4.9.0-3-common)
The last thing I tried was working on Debian 8 where I had the same problem



apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)


The additions seemed to be installed. I didn't get an error when I tried to add shared folders. Before I got a message everytime saying that the GuestAdditions are not installed.



But after reboot I still have no fullscreen 16:9 display and there are no shared folders mounted



What's the problem? What can I do to fix this problem?









share|improve this question













share|improve this question




share|improve this question








edited Sep 4 at 14:49









roaima

39.9k546109




39.9k546109










asked Nov 10 '17 at 2:31









Sierra

63




63











  • with sudo or as root dkms status Also uname -r You can edit your question for that.
    – user192526
    Nov 10 '17 at 14:08










  • What version of VirtualBox do you use?
    – Vlastimil
    Dec 1 '17 at 10:17
















  • with sudo or as root dkms status Also uname -r You can edit your question for that.
    – user192526
    Nov 10 '17 at 14:08










  • What version of VirtualBox do you use?
    – Vlastimil
    Dec 1 '17 at 10:17















with sudo or as root dkms status Also uname -r You can edit your question for that.
– user192526
Nov 10 '17 at 14:08




with sudo or as root dkms status Also uname -r You can edit your question for that.
– user192526
Nov 10 '17 at 14:08












What version of VirtualBox do you use?
– Vlastimil
Dec 1 '17 at 10:17




What version of VirtualBox do you use?
– Vlastimil
Dec 1 '17 at 10:17










1 Answer
1






active

oldest

votes

















up vote
0
down vote













This works for me on Stretch (Debian 9). If it doesn't work for you, you'll need to update your question with contrasting information:




  1. First ensure that contrib repository has been added to your sources.list. If the following command returns nothing you need to add it.



    grep -rq 'stretch/.* contrib' /etc/apt/sources.list,.d 2>/dev/null && echo ok


    Expected output



    ok



  2. Update the repository and install the necessary set of packages.



    apt-get update
    apt-get install build-essential module-assistant
    module-assistant prepare



  3. Mount and run the VirtualBox Guest Additions image. Ensure the DVD image is available by going to the Guest window and then using the menu Devices > Insert Guest Additions Image... If you get an error here that you cannot understand, report it back in your question.



    mount /media/cdrom
    bash /media/cdrom/VBoxLinuxAdditions.run


    Expected output



    mount: /dev/sr0 is write-protected, mounting read-only

    Verifying archive integrity... All good.
    Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
    VirtualBox Guest Additions installer
    ...



  4. Check that the modules have been loaded into the running kernel. You may need to reboot to see this take effect (but I didn't).



    lsmod | grep vb


    Expected output (ignore the column of high-valued numbers)



    vboxvideo 36864 1
    ttm 98304 1 vboxvideo
    drm_kms_helper 155648 1 vboxvideo
    drm 360448 4 vboxvideo,ttm,drm_kms_helper
    vboxsf 45056 0
    vboxguest 286720 1 vboxsf






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403646%2fvirtualbox-guest-additions-debian-9%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    This works for me on Stretch (Debian 9). If it doesn't work for you, you'll need to update your question with contrasting information:




    1. First ensure that contrib repository has been added to your sources.list. If the following command returns nothing you need to add it.



      grep -rq 'stretch/.* contrib' /etc/apt/sources.list,.d 2>/dev/null && echo ok


      Expected output



      ok



    2. Update the repository and install the necessary set of packages.



      apt-get update
      apt-get install build-essential module-assistant
      module-assistant prepare



    3. Mount and run the VirtualBox Guest Additions image. Ensure the DVD image is available by going to the Guest window and then using the menu Devices > Insert Guest Additions Image... If you get an error here that you cannot understand, report it back in your question.



      mount /media/cdrom
      bash /media/cdrom/VBoxLinuxAdditions.run


      Expected output



      mount: /dev/sr0 is write-protected, mounting read-only

      Verifying archive integrity... All good.
      Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
      VirtualBox Guest Additions installer
      ...



    4. Check that the modules have been loaded into the running kernel. You may need to reboot to see this take effect (but I didn't).



      lsmod | grep vb


      Expected output (ignore the column of high-valued numbers)



      vboxvideo 36864 1
      ttm 98304 1 vboxvideo
      drm_kms_helper 155648 1 vboxvideo
      drm 360448 4 vboxvideo,ttm,drm_kms_helper
      vboxsf 45056 0
      vboxguest 286720 1 vboxsf






    share|improve this answer
























      up vote
      0
      down vote













      This works for me on Stretch (Debian 9). If it doesn't work for you, you'll need to update your question with contrasting information:




      1. First ensure that contrib repository has been added to your sources.list. If the following command returns nothing you need to add it.



        grep -rq 'stretch/.* contrib' /etc/apt/sources.list,.d 2>/dev/null && echo ok


        Expected output



        ok



      2. Update the repository and install the necessary set of packages.



        apt-get update
        apt-get install build-essential module-assistant
        module-assistant prepare



      3. Mount and run the VirtualBox Guest Additions image. Ensure the DVD image is available by going to the Guest window and then using the menu Devices > Insert Guest Additions Image... If you get an error here that you cannot understand, report it back in your question.



        mount /media/cdrom
        bash /media/cdrom/VBoxLinuxAdditions.run


        Expected output



        mount: /dev/sr0 is write-protected, mounting read-only

        Verifying archive integrity... All good.
        Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
        VirtualBox Guest Additions installer
        ...



      4. Check that the modules have been loaded into the running kernel. You may need to reboot to see this take effect (but I didn't).



        lsmod | grep vb


        Expected output (ignore the column of high-valued numbers)



        vboxvideo 36864 1
        ttm 98304 1 vboxvideo
        drm_kms_helper 155648 1 vboxvideo
        drm 360448 4 vboxvideo,ttm,drm_kms_helper
        vboxsf 45056 0
        vboxguest 286720 1 vboxsf






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        This works for me on Stretch (Debian 9). If it doesn't work for you, you'll need to update your question with contrasting information:




        1. First ensure that contrib repository has been added to your sources.list. If the following command returns nothing you need to add it.



          grep -rq 'stretch/.* contrib' /etc/apt/sources.list,.d 2>/dev/null && echo ok


          Expected output



          ok



        2. Update the repository and install the necessary set of packages.



          apt-get update
          apt-get install build-essential module-assistant
          module-assistant prepare



        3. Mount and run the VirtualBox Guest Additions image. Ensure the DVD image is available by going to the Guest window and then using the menu Devices > Insert Guest Additions Image... If you get an error here that you cannot understand, report it back in your question.



          mount /media/cdrom
          bash /media/cdrom/VBoxLinuxAdditions.run


          Expected output



          mount: /dev/sr0 is write-protected, mounting read-only

          Verifying archive integrity... All good.
          Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
          VirtualBox Guest Additions installer
          ...



        4. Check that the modules have been loaded into the running kernel. You may need to reboot to see this take effect (but I didn't).



          lsmod | grep vb


          Expected output (ignore the column of high-valued numbers)



          vboxvideo 36864 1
          ttm 98304 1 vboxvideo
          drm_kms_helper 155648 1 vboxvideo
          drm 360448 4 vboxvideo,ttm,drm_kms_helper
          vboxsf 45056 0
          vboxguest 286720 1 vboxsf






        share|improve this answer












        This works for me on Stretch (Debian 9). If it doesn't work for you, you'll need to update your question with contrasting information:




        1. First ensure that contrib repository has been added to your sources.list. If the following command returns nothing you need to add it.



          grep -rq 'stretch/.* contrib' /etc/apt/sources.list,.d 2>/dev/null && echo ok


          Expected output



          ok



        2. Update the repository and install the necessary set of packages.



          apt-get update
          apt-get install build-essential module-assistant
          module-assistant prepare



        3. Mount and run the VirtualBox Guest Additions image. Ensure the DVD image is available by going to the Guest window and then using the menu Devices > Insert Guest Additions Image... If you get an error here that you cannot understand, report it back in your question.



          mount /media/cdrom
          bash /media/cdrom/VBoxLinuxAdditions.run


          Expected output



          mount: /dev/sr0 is write-protected, mounting read-only

          Verifying archive integrity... All good.
          Uncompressing VirtualBox 5.2.8 Guest Additions for Linux........
          VirtualBox Guest Additions installer
          ...



        4. Check that the modules have been loaded into the running kernel. You may need to reboot to see this take effect (but I didn't).



          lsmod | grep vb


          Expected output (ignore the column of high-valued numbers)



          vboxvideo 36864 1
          ttm 98304 1 vboxvideo
          drm_kms_helper 155648 1 vboxvideo
          drm 360448 4 vboxvideo,ttm,drm_kms_helper
          vboxsf 45056 0
          vboxguest 286720 1 vboxsf







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 4 at 15:08









        roaima

        39.9k546109




        39.9k546109



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403646%2fvirtualbox-guest-additions-debian-9%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?