HELP: Cannot see the actual IP address of the FreeBSD installer in VirtualBox

Can somebody please help me with this:
I got into the habit of installing operating systems via SSH, from the Terminal of an already working machine. I do it for Arch Linux, I do it for Gentoo, so I want to be able to do it for FreeBSD as well.
This way I can make my life much easier by having the convenience of Copy/Paste or Drag-n-drop. That is besides the fact that it looks much better in a Terminal than it does in the TTY-CLI of the installer itself...
The above method works fine for FreeBSD when you install it onto metal (physical hardware), but I was unable to get it to work for VirtualBox installs. I ran into this problem:
"ip a" does not work in FreeBSD, and "ifconfig -a" is only showing me the port forwarding address of the installer (10.0.2.15), not its actual IP address (e.g. 192.168.56.101).
Thus I cannot SSH into the VirtualBox installer, to do it easier from the host system Terminal, as described above.
Does anybody know how can I see the actual IP address of the installer? Thanks.
 
and "ifconfig -a" is only showing me the port forwarding address of the installer (10.0.2.15), not its actual IP address (e.g. 192.168.56.101).
This makes very little sense. ifconfig(8) shows you what address the interface has. It cannot know if it's translated or not (NAT on Virtualbox?).
 
This makes very little sense. ifconfig(8) shows you what address the interface has. It cannot know if it's translated or not (NAT on Virtualbox?).

SirDice@
Actually, it makes perfect sense if you actually understood my problem...
The port forwarding address of the installer (10.0.2.15) is the only thing revealed by
Code:
ifconfig -a

As you say, ifconfig might not know how to make the difference, but in most Linux OSes, when I run

Code:
ip -a

it shows both the port forwarding address of the VM installer (10.0.2.15), as well as the actual VM IP address (e.g. 192.168.56.101).
In fact, I need the ACTUAL IP ADDRESS (example: 192.168.56.101) of the VM in order to be able to SSH connect into it.
For now, I used a guessing game, and was able to find it, but as far as actually SHH-connecting into the installer, no luck so far.
I have tried:

Code:
service sshd stop
service sshd disable
service sshd enable
service sshd start

Always it's showing the sshd service as up and running,

Code:
service sshd status

always returns:
Code:
sshd is running as pid xyzw (xyzw being a random number)

Also tried editing /etc/ssh/sshd_config and changing the line to:

Code:
PermitRootLogin yes

I restarted the installer multiple times, after each edit.
So far, no joy.
I simply cannot SSH-connect into the damn installer.

What am I missing here???
 
Back
Top