2

I downloaded and installed FreeBSD 10.2 on to an Oracle VM. First thing I am trying to run pkg, it gives me an error with:

No address record
A pre-built version of pkg could not be found for your system.

enter image description here

Then I try to ping google, it gives me an error with:

Host name lookup failure

enter image description here

I am new to FreeBSD, not sure if internet is automatically hooked up? Or what do I need to do to make internet working?

P.S. do I need to do any manual configurations with /etc/rc.conf and /etc/resolv.conf? Those two files don't exist in my /etc folder at the moment.

UPDATE: enter image description here enter image description here

Tom
  • 121
  • Does the oracle VM set to have internet access? Network adapter is set to available? Connected? And what setting (bridged / NAT / no network)?. Result of your ifconfig (to see if you get any IP address) – Darius Apr 03 '16 at 02:19
  • Darius, it is by default on NAT. assume VM will just work. please see update pic – Tom Apr 03 '16 at 03:29
  • 4
    em0 is down and has no address(es) assigned so of course network access fails. Did you delete things from /etc? I'm not sure about resolv.conf but I thought there wasn't any way to install without creating at least a minimal /etc/rc.conf -- and that is where ifconfig_em0=(whatever) should be, although I think (not recently tested) you can get install to miss that line. There's no point in tweaking config on a NAT interface, so try ifconfig em0 up; dhclient em0 and see what you get. – dave_thompson_085 Apr 03 '16 at 06:19
  • M A G I C ! T H A N K S D a v e ! – Tom Apr 03 '16 at 06:56
  • @dave_thompson_085 Doesn't it qualify as an answer instead of a comment? – Mateusz Piotrowski Aug 23 '16 at 00:26

0 Answers0