Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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 at 14:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.