It seems you haven't configured the VirtualBox VM's network adapter during installation. Otherwise a /etc/rc.conf "ifconfig" entry would have been created, and /etc/resolv.conf would have been populated with the USB tethered devices router address as the nameserver.cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
Or did you configure the interface with a static IP address manually?
Use ee(1) - easy editor instead.I found /etc/rc.conf but don't know which editor to use, "nano" is not present
Familiarize yourself with the FreeBSD handbook. For a FreeBSD newbie it should be the primary source of information how to handle the operating system. You don't need to read the whole handbook to find a specific topic, just search for keywords.
You need an text editor? Look it up in the handbook. The online handbook has a search text box on the top left, above the table of contents. Or use the internet browser search function in the Single HTML page.
The handbook is also available as a 3rd party packages, including other documentation:
misc/freebsd-doc-en, package name "en-freebsd-doc".
Description
Code:
The whole documentation set from the FreeBSD Documentation Project:
Handbook, FAQ, articles and more.
Searching for an text editor in the handbook you will find the 3.10. Text Editors chapter. There are two text editors in base FreeBSD, the aforementioned ee(1) editor, and vi(1), a more sophisticated text editor.
If you have problems understanding the documentation, or a documentation doesn't reflect real world application, just ask.
