2

I have ubuntu 12.04 LTS installed in as a VM in Oracle virtual box. I am able to browse from firefox but trying to connect from command prompt to update is failing. I also tried to change software sources but even then it is erroring out. The error is "Please check your Internet Connection".

PS : I am using NAT for networking.

What might be is issue and how to correct it?

Shash
  • 1,061
  • 2
  • 15
  • 27

1 Answers1

2

If you're using the default network type it's NAT. To keep NAT, you have to set up port forwarding like this. If you want to act more like a regular computer connected to your network, you want bridged like this.

The most common configuration for direct host to guest connectivity and internet connectivity is one host-only and one NAT interface.

My preferred configuration is bridged and host only, so I can access the machine directly and other machines on the network can access it if need be.

RobotHumans
  • 30,112