Internet share between guests Virtualbox Windows VM's

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











up vote
0
down vote

favorite












I have an ubuntu 18.04 as my host machine and two Virtualbox VM's, the first is a Windows 7 VM which I use to connect to my company VPN and the second is a Windows 10 machine which I use for development.



Normally both VM's have internet access via a NAT connection.



What I want to do is to share the VPN from Windows 7 VM with the Windows 10 VM, for that I thought of having two network for both VM's, one is the NAT one that already existed, and the other would be an internal or host-only network which both VM's can communicate.



So, the idea is that I normally would use the NAT network in the Win 10 VM, and when I need to access the company private network, I would disable this network and enable the internal one.



Then, I would fire the Win 7 VM and connect to VPN, an that communication I would share with the Win 10 VM via the internal network.



My question is how to do this connection sharing.



Using a host-only connection and setting a static ip, I can ping each VM, but whenever I try to enable the internet sharing feature for this network in the VM Win 7, I can't access the internet (or the private company network).



So it seems that I'm doing something wrong with my network configuration to not be able to access the internet sharing.



Finally, my question is how can I configure the network for this scenario? Most of the articles that I found online is talking about internet sharing between host and guest, but I couldn't find one which talk about internet sharing between guest and guest.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I have an ubuntu 18.04 as my host machine and two Virtualbox VM's, the first is a Windows 7 VM which I use to connect to my company VPN and the second is a Windows 10 machine which I use for development.



    Normally both VM's have internet access via a NAT connection.



    What I want to do is to share the VPN from Windows 7 VM with the Windows 10 VM, for that I thought of having two network for both VM's, one is the NAT one that already existed, and the other would be an internal or host-only network which both VM's can communicate.



    So, the idea is that I normally would use the NAT network in the Win 10 VM, and when I need to access the company private network, I would disable this network and enable the internal one.



    Then, I would fire the Win 7 VM and connect to VPN, an that communication I would share with the Win 10 VM via the internal network.



    My question is how to do this connection sharing.



    Using a host-only connection and setting a static ip, I can ping each VM, but whenever I try to enable the internet sharing feature for this network in the VM Win 7, I can't access the internet (or the private company network).



    So it seems that I'm doing something wrong with my network configuration to not be able to access the internet sharing.



    Finally, my question is how can I configure the network for this scenario? Most of the articles that I found online is talking about internet sharing between host and guest, but I couldn't find one which talk about internet sharing between guest and guest.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have an ubuntu 18.04 as my host machine and two Virtualbox VM's, the first is a Windows 7 VM which I use to connect to my company VPN and the second is a Windows 10 machine which I use for development.



      Normally both VM's have internet access via a NAT connection.



      What I want to do is to share the VPN from Windows 7 VM with the Windows 10 VM, for that I thought of having two network for both VM's, one is the NAT one that already existed, and the other would be an internal or host-only network which both VM's can communicate.



      So, the idea is that I normally would use the NAT network in the Win 10 VM, and when I need to access the company private network, I would disable this network and enable the internal one.



      Then, I would fire the Win 7 VM and connect to VPN, an that communication I would share with the Win 10 VM via the internal network.



      My question is how to do this connection sharing.



      Using a host-only connection and setting a static ip, I can ping each VM, but whenever I try to enable the internet sharing feature for this network in the VM Win 7, I can't access the internet (or the private company network).



      So it seems that I'm doing something wrong with my network configuration to not be able to access the internet sharing.



      Finally, my question is how can I configure the network for this scenario? Most of the articles that I found online is talking about internet sharing between host and guest, but I couldn't find one which talk about internet sharing between guest and guest.










      share|improve this question













      I have an ubuntu 18.04 as my host machine and two Virtualbox VM's, the first is a Windows 7 VM which I use to connect to my company VPN and the second is a Windows 10 machine which I use for development.



      Normally both VM's have internet access via a NAT connection.



      What I want to do is to share the VPN from Windows 7 VM with the Windows 10 VM, for that I thought of having two network for both VM's, one is the NAT one that already existed, and the other would be an internal or host-only network which both VM's can communicate.



      So, the idea is that I normally would use the NAT network in the Win 10 VM, and when I need to access the company private network, I would disable this network and enable the internal one.



      Then, I would fire the Win 7 VM and connect to VPN, an that communication I would share with the Win 10 VM via the internal network.



      My question is how to do this connection sharing.



      Using a host-only connection and setting a static ip, I can ping each VM, but whenever I try to enable the internet sharing feature for this network in the VM Win 7, I can't access the internet (or the private company network).



      So it seems that I'm doing something wrong with my network configuration to not be able to access the internet sharing.



      Finally, my question is how can I configure the network for this scenario? Most of the articles that I found online is talking about internet sharing between host and guest, but I couldn't find one which talk about internet sharing between guest and guest.







      virtualbox connection-sharing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 7 at 4:50









      Sassa

      1011




      1011

























          active

          oldest

          votes











          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%2f460951%2finternet-share-between-guests-virtualbox-windows-vms%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460951%2finternet-share-between-guests-virtualbox-windows-vms%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