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

migrated from serverfault.com Apr 3 '16 at 2:00

This question came from our site for system and network administrators.

  • 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 3 '16 at 2:19
  • Darius, it is by default on NAT. assume VM will just work. please see update pic – Tom Apr 3 '16 at 3: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 3 '16 at 6:19
  • M A G I C ! T H A N K S D a v e ! – Tom Apr 3 '16 at 6:56
  • @dave_thompson_085 Doesn't it qualify as an answer instead of a comment? – Mateusz Piotrowski Aug 23 '16 at 0:26

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.