I'm trying to set up FreeBSD as a VirtualBox guest. I've done a lot of searching and re-creating VMs, twice I've actually had SSH access but I lost it on a reboot after a lot of other setup (Ruby, Github, etc.).
Host: Win7 64 bit
Guest: FreeBSD 64bit 9.1; 1024 MB RAM; 10 GB disk space
VM Network Adapter: Bridged adapter, deny promiscuous mode
Install options: choose no to IPv4 and DHCP setup. sshd enabled
First boot change: /etc/rc.conf to look like:
Change /etc/resolv.conf to:
In /etc/ssh/sshd_config uncomment PermitRootLogin and change to yes, then reboot.
At this point
From the host I cannot ping the VM, connect via WinSCP, or SSH. With
I have also attempted to use DHCP but similar results.
Host: Win7 64 bit
Guest: FreeBSD 64bit 9.1; 1024 MB RAM; 10 GB disk space
VM Network Adapter: Bridged adapter, deny promiscuous mode
Install options: choose no to IPv4 and DHCP setup. sshd enabled
First boot change: /etc/rc.conf to look like:
Code:
hostname=".personalVM"
sshd_enable="YES"
dumpdev="NO"
ifconfig_em0="inet 192.168.1.64 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
Change /etc/resolv.conf to:
Code:
nameserver 192.168.1.1
In /etc/ssh/sshd_config uncomment PermitRootLogin and change to yes, then reboot.
At this point
ifconfig -a
shows em0 having the IP address I set. From the guest VM I can ping http://www.google.com as well as the host machine (192.168.1.6, only works when firewall is off).From the host I cannot ping the VM, connect via WinSCP, or SSH. With
ping
I get a request timeout.I have also attempted to use DHCP but similar results.
tcpdump
shows all sorts of activity but I can't seem to correlate entries with ping
or ssh
traffic.