How to connect to internet from Ubuntu which is installed in a virtual machine using VMWare Workstation?











up vote
0
down vote

favorite












I have installed Ubuntu 9.04 on a virtual machine using VMWare Workstation. I have Windows 7 as my host OS.



I want to connect to internet from Ubuntu. Can anyone please gives steps for connecting to internet through guest OS?










share|improve this question




























    up vote
    0
    down vote

    favorite












    I have installed Ubuntu 9.04 on a virtual machine using VMWare Workstation. I have Windows 7 as my host OS.



    I want to connect to internet from Ubuntu. Can anyone please gives steps for connecting to internet through guest OS?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have installed Ubuntu 9.04 on a virtual machine using VMWare Workstation. I have Windows 7 as my host OS.



      I want to connect to internet from Ubuntu. Can anyone please gives steps for connecting to internet through guest OS?










      share|improve this question















      I have installed Ubuntu 9.04 on a virtual machine using VMWare Workstation. I have Windows 7 as my host OS.



      I want to connect to internet from Ubuntu. Can anyone please gives steps for connecting to internet through guest OS?







      internet virtual-machine internet-connection ubuntu-9.04 vmware-workstation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 29 '13 at 18:01









      Keltari

      48.8k17112161




      48.8k17112161










      asked Nov 25 '10 at 4:59









      Shekhar

      2964716




      2964716






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote













          Have you enabled a network adaptor in the VM settings? NAT is the simplest option but bridged mode just as easy to set up if you have a DHCP server running on the network.



          Is the network running in the guest? Do you have an IP address? If not:



          sudo /etc/init.d/networking restart


          If you have an IP address in the guest it could the firewall on the host is causing the problem.






          share|improve this answer





















          • I get an error: stop: Job failed while stopping start: Job is already running: networking
            – Igor G.
            Mar 31 '15 at 18:45




















          up vote
          0
          down vote













          Workstation sets up bridge network VMnet0 for Bridge Networking for the guests. Bridged networking connects a virtual machine to a network by using the network adaptor on the host system.
          You can enable it by right click on your Ubuntu Virtual Machine or VM>Settings
          click on Network Adaptor and select Bridged, restart the guest if needed.






          share|improve this answer























          • No, restarting doesn't do anything.
            – Igor G.
            Mar 31 '15 at 18:47










          • The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
            – vng21092
            Feb 9 '16 at 14:52


















          up vote
          0
          down vote













          In your VMWare, go to Edit>Virtual Network Edits and create an add a new Network of type NAT.



          Now, on your host goto Control Panel > Network & Sharing Center > Change Adapter Settings and look for your current connection that has internet access.



          Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down.



          Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection. Now, reconnect to check if the connection is established.



          Reference [Video]: How to setup Internet Connection for Virtual Machines in VMWare






          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%2f214888%2fhow-to-connect-to-internet-from-ubuntu-which-is-installed-in-a-virtual-machine-u%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













            Have you enabled a network adaptor in the VM settings? NAT is the simplest option but bridged mode just as easy to set up if you have a DHCP server running on the network.



            Is the network running in the guest? Do you have an IP address? If not:



            sudo /etc/init.d/networking restart


            If you have an IP address in the guest it could the firewall on the host is causing the problem.






            share|improve this answer





















            • I get an error: stop: Job failed while stopping start: Job is already running: networking
              – Igor G.
              Mar 31 '15 at 18:45

















            up vote
            0
            down vote













            Have you enabled a network adaptor in the VM settings? NAT is the simplest option but bridged mode just as easy to set up if you have a DHCP server running on the network.



            Is the network running in the guest? Do you have an IP address? If not:



            sudo /etc/init.d/networking restart


            If you have an IP address in the guest it could the firewall on the host is causing the problem.






            share|improve this answer





















            • I get an error: stop: Job failed while stopping start: Job is already running: networking
              – Igor G.
              Mar 31 '15 at 18:45















            up vote
            0
            down vote










            up vote
            0
            down vote









            Have you enabled a network adaptor in the VM settings? NAT is the simplest option but bridged mode just as easy to set up if you have a DHCP server running on the network.



            Is the network running in the guest? Do you have an IP address? If not:



            sudo /etc/init.d/networking restart


            If you have an IP address in the guest it could the firewall on the host is causing the problem.






            share|improve this answer












            Have you enabled a network adaptor in the VM settings? NAT is the simplest option but bridged mode just as easy to set up if you have a DHCP server running on the network.



            Is the network running in the guest? Do you have an IP address? If not:



            sudo /etc/init.d/networking restart


            If you have an IP address in the guest it could the firewall on the host is causing the problem.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 25 '10 at 23:49









            bitslave

            1,04877




            1,04877












            • I get an error: stop: Job failed while stopping start: Job is already running: networking
              – Igor G.
              Mar 31 '15 at 18:45




















            • I get an error: stop: Job failed while stopping start: Job is already running: networking
              – Igor G.
              Mar 31 '15 at 18:45


















            I get an error: stop: Job failed while stopping start: Job is already running: networking
            – Igor G.
            Mar 31 '15 at 18:45






            I get an error: stop: Job failed while stopping start: Job is already running: networking
            – Igor G.
            Mar 31 '15 at 18:45














            up vote
            0
            down vote













            Workstation sets up bridge network VMnet0 for Bridge Networking for the guests. Bridged networking connects a virtual machine to a network by using the network adaptor on the host system.
            You can enable it by right click on your Ubuntu Virtual Machine or VM>Settings
            click on Network Adaptor and select Bridged, restart the guest if needed.






            share|improve this answer























            • No, restarting doesn't do anything.
              – Igor G.
              Mar 31 '15 at 18:47










            • The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
              – vng21092
              Feb 9 '16 at 14:52















            up vote
            0
            down vote













            Workstation sets up bridge network VMnet0 for Bridge Networking for the guests. Bridged networking connects a virtual machine to a network by using the network adaptor on the host system.
            You can enable it by right click on your Ubuntu Virtual Machine or VM>Settings
            click on Network Adaptor and select Bridged, restart the guest if needed.






            share|improve this answer























            • No, restarting doesn't do anything.
              – Igor G.
              Mar 31 '15 at 18:47










            • The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
              – vng21092
              Feb 9 '16 at 14:52













            up vote
            0
            down vote










            up vote
            0
            down vote









            Workstation sets up bridge network VMnet0 for Bridge Networking for the guests. Bridged networking connects a virtual machine to a network by using the network adaptor on the host system.
            You can enable it by right click on your Ubuntu Virtual Machine or VM>Settings
            click on Network Adaptor and select Bridged, restart the guest if needed.






            share|improve this answer














            Workstation sets up bridge network VMnet0 for Bridge Networking for the guests. Bridged networking connects a virtual machine to a network by using the network adaptor on the host system.
            You can enable it by right click on your Ubuntu Virtual Machine or VM>Settings
            click on Network Adaptor and select Bridged, restart the guest if needed.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 19 '13 at 12:43

























            answered May 19 '13 at 12:06









            mygnu

            18114




            18114












            • No, restarting doesn't do anything.
              – Igor G.
              Mar 31 '15 at 18:47










            • The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
              – vng21092
              Feb 9 '16 at 14:52


















            • No, restarting doesn't do anything.
              – Igor G.
              Mar 31 '15 at 18:47










            • The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
              – vng21092
              Feb 9 '16 at 14:52
















            No, restarting doesn't do anything.
            – Igor G.
            Mar 31 '15 at 18:47




            No, restarting doesn't do anything.
            – Igor G.
            Mar 31 '15 at 18:47












            The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
            – vng21092
            Feb 9 '16 at 14:52




            The bridged option should work, I've done the same thing with many Virtual Machines and they've worked fine. Have you checked the state of the network adapter within Ubuntu? Try something like "ip link" and check the state of your ethernet adapter, it'll probably be something along the lines of "enp---", check if the state is UP or DOWN. If its down, do a "sudo ip link set up xxx" where xxx is the adapter name. And then pull a "sudo systemctl restart dhcpcd", and give it a little time and see if anything happens.
            – vng21092
            Feb 9 '16 at 14:52










            up vote
            0
            down vote













            In your VMWare, go to Edit>Virtual Network Edits and create an add a new Network of type NAT.



            Now, on your host goto Control Panel > Network & Sharing Center > Change Adapter Settings and look for your current connection that has internet access.



            Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down.



            Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection. Now, reconnect to check if the connection is established.



            Reference [Video]: How to setup Internet Connection for Virtual Machines in VMWare






            share|improve this answer

























              up vote
              0
              down vote













              In your VMWare, go to Edit>Virtual Network Edits and create an add a new Network of type NAT.



              Now, on your host goto Control Panel > Network & Sharing Center > Change Adapter Settings and look for your current connection that has internet access.



              Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down.



              Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection. Now, reconnect to check if the connection is established.



              Reference [Video]: How to setup Internet Connection for Virtual Machines in VMWare






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                In your VMWare, go to Edit>Virtual Network Edits and create an add a new Network of type NAT.



                Now, on your host goto Control Panel > Network & Sharing Center > Change Adapter Settings and look for your current connection that has internet access.



                Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down.



                Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection. Now, reconnect to check if the connection is established.



                Reference [Video]: How to setup Internet Connection for Virtual Machines in VMWare






                share|improve this answer












                In your VMWare, go to Edit>Virtual Network Edits and create an add a new Network of type NAT.



                Now, on your host goto Control Panel > Network & Sharing Center > Change Adapter Settings and look for your current connection that has internet access.



                Right-click the network connection and go under Sharing. Allow the sharing and choose the NAT Network from the drop-down.



                Now, on VMWare, go to the settings of Virtual Machine. Under Network, choose Custom Network and select the same NAT connection. Now, reconnect to check if the connection is established.



                Reference [Video]: How to setup Internet Connection for Virtual Machines in VMWare







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 31 '17 at 18:28









                Luzan Baral

                10613




                10613






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f214888%2fhow-to-connect-to-internet-from-ubuntu-which-is-installed-in-a-virtual-machine-u%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

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    RAC Tourist Trophy