1
My host OS is Ubuntu 12.04 and I am running a LAMP stack there. I have several Windows virtual machines (XP and Windows7) running in Virtual Box so I can test IE6, IE7, etc..
I frequently move this laptop between a few wireless networks and sometimes I am without an internet connection. I pause and save the VM execution state. Regardless, I want the virtual machines to be able to access the sites I am hosting locally on Ubuntu. The virtual machines do not need regular internet access. On the host I can point the browser at localhost or any subdirectory that apache is serving and view pages I've set up already. What is the best configuration for this?
Should I use Bridged or NAT virtual adaptors and should the guests use static IP's or DHCP ? I've also considered using ad-hoc networks between guests and host, but I think this will require that the host disconnect from any other networks (with internet access).
How do i configure the guests' hosts-file, because the address of the host will be changing often. At home it's something like
192.168.1.X
(static), at the university network we get10.X.X.X
(dhcp), and like I said sometimes I have no connectivity (friends house). – xst – 2012-09-23T19:31:49.523On the virtual network, it will be something like
192.168.159.1
and not change until you go change it yourself. The external adress of the host (which you pointed out changes) has no effect seen from the virtual network. – Eroen – 2012-09-23T19:40:02.073