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.
Then I try to ping google, it gives me an error with:
Host name lookup failure
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.




em0is down and has no address(es) assigned so of course network access fails. Did you delete things from/etc? I'm not sure aboutresolv.confbut I thought there wasn't any way to install without creating at least a minimal/etc/rc.conf-- and that is whereifconfig_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 tryifconfig em0 up; dhclient em0and see what you get. – dave_thompson_085 Apr 03 '16 at 06:19