Sharing folder in Virtualbox

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











up vote
1
down vote

favorite












I'm running Debian 9 as Host and I installed correctly Windows 7 as guest by using Oracle VirtualBox (v. 5.2.6); both the OSs work fine and I need to have a folder shared between those 2 operative systems.



In order to be able to get this, I followed these steps:




  1. GuestAddition installation, by running, as super-user:



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



  2. Creating the candidate folder /home/quant/Scrivania/VirtualBox/Data by modifying the Oracle VirtualBox Manager settings (Shared Folders);



  3. mounting the device by running:



    mount -t vboxsf Data /home/quant/Scrivania/VirtualBox/Data/



At the point (3), I got the following error message in the terminal:



/sbin/mount.vboxsf: mounting failed with the error: No such device


It seems like the folder does not exist although I manually create the local folder and set it as shared folder in the VirtualBox manager.



Someone could suggest a solution?



Hope I has been clear when I asked the question. Thanks you all in advice!







share|improve this question




















  • For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
    – ErikF
    Feb 26 at 4:23














up vote
1
down vote

favorite












I'm running Debian 9 as Host and I installed correctly Windows 7 as guest by using Oracle VirtualBox (v. 5.2.6); both the OSs work fine and I need to have a folder shared between those 2 operative systems.



In order to be able to get this, I followed these steps:




  1. GuestAddition installation, by running, as super-user:



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



  2. Creating the candidate folder /home/quant/Scrivania/VirtualBox/Data by modifying the Oracle VirtualBox Manager settings (Shared Folders);



  3. mounting the device by running:



    mount -t vboxsf Data /home/quant/Scrivania/VirtualBox/Data/



At the point (3), I got the following error message in the terminal:



/sbin/mount.vboxsf: mounting failed with the error: No such device


It seems like the folder does not exist although I manually create the local folder and set it as shared folder in the VirtualBox manager.



Someone could suggest a solution?



Hope I has been clear when I asked the question. Thanks you all in advice!







share|improve this question




















  • For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
    – ErikF
    Feb 26 at 4:23












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm running Debian 9 as Host and I installed correctly Windows 7 as guest by using Oracle VirtualBox (v. 5.2.6); both the OSs work fine and I need to have a folder shared between those 2 operative systems.



In order to be able to get this, I followed these steps:




  1. GuestAddition installation, by running, as super-user:



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



  2. Creating the candidate folder /home/quant/Scrivania/VirtualBox/Data by modifying the Oracle VirtualBox Manager settings (Shared Folders);



  3. mounting the device by running:



    mount -t vboxsf Data /home/quant/Scrivania/VirtualBox/Data/



At the point (3), I got the following error message in the terminal:



/sbin/mount.vboxsf: mounting failed with the error: No such device


It seems like the folder does not exist although I manually create the local folder and set it as shared folder in the VirtualBox manager.



Someone could suggest a solution?



Hope I has been clear when I asked the question. Thanks you all in advice!







share|improve this question












I'm running Debian 9 as Host and I installed correctly Windows 7 as guest by using Oracle VirtualBox (v. 5.2.6); both the OSs work fine and I need to have a folder shared between those 2 operative systems.



In order to be able to get this, I followed these steps:




  1. GuestAddition installation, by running, as super-user:



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



  2. Creating the candidate folder /home/quant/Scrivania/VirtualBox/Data by modifying the Oracle VirtualBox Manager settings (Shared Folders);



  3. mounting the device by running:



    mount -t vboxsf Data /home/quant/Scrivania/VirtualBox/Data/



At the point (3), I got the following error message in the terminal:



/sbin/mount.vboxsf: mounting failed with the error: No such device


It seems like the folder does not exist although I manually create the local folder and set it as shared folder in the VirtualBox manager.



Someone could suggest a solution?



Hope I has been clear when I asked the question. Thanks you all in advice!









share|improve this question











share|improve this question




share|improve this question










asked Feb 25 at 22:50









Quant.Pi

115




115











  • For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
    – ErikF
    Feb 26 at 4:23
















  • For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
    – ErikF
    Feb 26 at 4:23















For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
– ErikF
Feb 26 at 4:23




For a sanity check, are the VirtualBox modules loaded (check lsmod|grep vbox)?
– ErikF
Feb 26 at 4:23










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:




  • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

  • Boot the Guest operating system in VirtualBox.

  • Select Devices -> Shared Folders...

  • Choose the 'Add' button.

  • Select ~/share

  • Optionally select the 'Make permanent' option



After you have completed that process, open your terminal on the host and run:



sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host


(/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
If that step completes successfully on your Windows guest you should be able to run:



net use x: \vboxsvr[whatever your share folder's name is]



Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!






share|improve this answer



























    up vote
    0
    down vote



    accepted










    I simply solved by following those steps; first of all install Oracle Virtual Box as follows:



    1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list

    2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively


    3. run from the terminal:



      • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -


      • apt update


      • apt-get install virtualbox-5.2


      • apt-get install dkms



    After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu




    Device > Insert ISO image for GuestAdditions




    and follow what suggested by the installation guide. Finally, go through




    Devices > Shared Folder




    and select the path in which is contained the folder you need to share.



    Hope this helps.






    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%2f426559%2fsharing-folder-in-virtualbox%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:




      • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

      • Boot the Guest operating system in VirtualBox.

      • Select Devices -> Shared Folders...

      • Choose the 'Add' button.

      • Select ~/share

      • Optionally select the 'Make permanent' option



      After you have completed that process, open your terminal on the host and run:



      sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host


      (/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
      If that step completes successfully on your Windows guest you should be able to run:



      net use x: \vboxsvr[whatever your share folder's name is]



      Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!






      share|improve this answer
























        up vote
        0
        down vote













        Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:




        • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

        • Boot the Guest operating system in VirtualBox.

        • Select Devices -> Shared Folders...

        • Choose the 'Add' button.

        • Select ~/share

        • Optionally select the 'Make permanent' option



        After you have completed that process, open your terminal on the host and run:



        sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host


        (/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
        If that step completes successfully on your Windows guest you should be able to run:



        net use x: \vboxsvr[whatever your share folder's name is]



        Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:




          • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

          • Boot the Guest operating system in VirtualBox.

          • Select Devices -> Shared Folders...

          • Choose the 'Add' button.

          • Select ~/share

          • Optionally select the 'Make permanent' option



          After you have completed that process, open your terminal on the host and run:



          sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host


          (/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
          If that step completes successfully on your Windows guest you should be able to run:



          net use x: \vboxsvr[whatever your share folder's name is]



          Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!






          share|improve this answer












          Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:




          • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

          • Boot the Guest operating system in VirtualBox.

          • Select Devices -> Shared Folders...

          • Choose the 'Add' button.

          • Select ~/share

          • Optionally select the 'Make permanent' option



          After you have completed that process, open your terminal on the host and run:



          sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host


          (/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
          If that step completes successfully on your Windows guest you should be able to run:



          net use x: \vboxsvr[whatever your share folder's name is]



          Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 25 at 23:44









          kemotep

          1,0941616




          1,0941616






















              up vote
              0
              down vote



              accepted










              I simply solved by following those steps; first of all install Oracle Virtual Box as follows:



              1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list

              2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively


              3. run from the terminal:



                • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -


                • apt update


                • apt-get install virtualbox-5.2


                • apt-get install dkms



              After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu




              Device > Insert ISO image for GuestAdditions




              and follow what suggested by the installation guide. Finally, go through




              Devices > Shared Folder




              and select the path in which is contained the folder you need to share.



              Hope this helps.






              share|improve this answer
























                up vote
                0
                down vote



                accepted










                I simply solved by following those steps; first of all install Oracle Virtual Box as follows:



                1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list

                2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively


                3. run from the terminal:



                  • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -


                  • apt update


                  • apt-get install virtualbox-5.2


                  • apt-get install dkms



                After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu




                Device > Insert ISO image for GuestAdditions




                and follow what suggested by the installation guide. Finally, go through




                Devices > Shared Folder




                and select the path in which is contained the folder you need to share.



                Hope this helps.






                share|improve this answer






















                  up vote
                  0
                  down vote



                  accepted







                  up vote
                  0
                  down vote



                  accepted






                  I simply solved by following those steps; first of all install Oracle Virtual Box as follows:



                  1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list

                  2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively


                  3. run from the terminal:



                    • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -


                    • apt update


                    • apt-get install virtualbox-5.2


                    • apt-get install dkms



                  After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu




                  Device > Insert ISO image for GuestAdditions




                  and follow what suggested by the installation guide. Finally, go through




                  Devices > Shared Folder




                  and select the path in which is contained the folder you need to share.



                  Hope this helps.






                  share|improve this answer












                  I simply solved by following those steps; first of all install Oracle Virtual Box as follows:



                  1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list

                  2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively


                  3. run from the terminal:



                    • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -


                    • apt update


                    • apt-get install virtualbox-5.2


                    • apt-get install dkms



                  After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu




                  Device > Insert ISO image for GuestAdditions




                  and follow what suggested by the installation guide. Finally, go through




                  Devices > Shared Folder




                  and select the path in which is contained the folder you need to share.



                  Hope this helps.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 4 at 17:18









                  Quant.Pi

                  115




                  115






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426559%2fsharing-folder-in-virtualbox%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?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay