Thanks .. with two network adapters (NAT and host-only .. in that order .. it seems there is a difference if order is changed)
I'm now able to ping in both directions host <--> guest.
IP addresses: host 192.168.56.1 and guest 192.168.56.101
I can access guest LAMP from host via http://192.168.56.101/
This blog was helpful.
http://christophermaier.name/blog/20...ith-virtualbox
Host
The contents of /etc/network/interfaces in host:-
Code:
# the loopback network interface
auto lo
iface lo inet loopback
# the primary network interface
auto eth0
iface eth0 inet dhcp
Guest
The contents of /etc/network/interfaces in guest:
Code:
# the loopback network interface
auto lo
iface lo inet loopback
# the primary network interface
auto eth1
iface eth1 inet static
address 192.168.56.101
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
# note: gateway and dns-nameservers are not defined here .. should they be?
Cannot connect from guest to Internet
My current issue is I'm not not able to ping from guest to external Internet .. e.g. getting updates into the guest OS.
What must I now setup to get Internet access?
It seems that with only a cable modem (no router) I can't use Bridged Networking as a third adapter type.
I'm now reading up on VBoxManage scripts so I can better dump relevant troubleshooting information.
my ultimate requirement:
ping host to guest (this now works) ping -c 4 192.168.56.101
ping guest to host (this now works) ping -c 4 192.168.56.1
ping guest to Internet (this has yet to work) ping -c 4 8.8.8.8 (Network Unreachable)
I'm not sure if changing NAT type under File > Preferences > Network might help.
Bookmarks