bkann
February 2nd, 2009, 09:29 PM
Hi -
Apologies in advance if I'm missing something basic.
I am using Ubuntu as the host, WinXP as the virtual machine. I'm using Ubuntu for a variety of Web development tasks, but I have found it quicker to prototype my databases using MS Access in Windows in conjunction with some 3rd-party SQL tools. Ultimately, the result is Apache with PHP on the Ubuntu machine, and a MySQL database on the Windows VM.
This is important because I have two network cards configured on the VM, both in 'host interface' mode. The first is set up for DHCP so that I can get an IP on whatever network I'm connecting to. The second adapter is set up with a static IP (which happens to match my home network specs, but I don't think this is important). I do this so that PHP/Apache on Ubuntu can query MySQL on Windows thru the static address and I don't have to specify new connection parameters every time I get a new DHCP lease.
When I have access to a network, this setup is amazingly convenient for me. However, I found today that, when no network is present (eg., I'm on a plane), this configuration fails. Ubuntu can't find the static address, can't resolve the Windows box's name, etc. I don't know how to route to the Win VM, so my servers can't query MySQL on that box. My dev site therefore fails.
I don't know if I've described this very well. My goal would be to be able to have a completely autonomous setup when necessary... where Apache on Ubuntu can talk to VB Windows over a static IP or resolvable name even when no real network is present. This must be possible(?)
Many thanks in advance for any help you might be able to provide!
Apologies in advance if I'm missing something basic.
I am using Ubuntu as the host, WinXP as the virtual machine. I'm using Ubuntu for a variety of Web development tasks, but I have found it quicker to prototype my databases using MS Access in Windows in conjunction with some 3rd-party SQL tools. Ultimately, the result is Apache with PHP on the Ubuntu machine, and a MySQL database on the Windows VM.
This is important because I have two network cards configured on the VM, both in 'host interface' mode. The first is set up for DHCP so that I can get an IP on whatever network I'm connecting to. The second adapter is set up with a static IP (which happens to match my home network specs, but I don't think this is important). I do this so that PHP/Apache on Ubuntu can query MySQL on Windows thru the static address and I don't have to specify new connection parameters every time I get a new DHCP lease.
When I have access to a network, this setup is amazingly convenient for me. However, I found today that, when no network is present (eg., I'm on a plane), this configuration fails. Ubuntu can't find the static address, can't resolve the Windows box's name, etc. I don't know how to route to the Win VM, so my servers can't query MySQL on that box. My dev site therefore fails.
I don't know if I've described this very well. My goal would be to be able to have a completely autonomous setup when necessary... where Apache on Ubuntu can talk to VB Windows over a static IP or resolvable name even when no real network is present. This must be possible(?)
Many thanks in advance for any help you might be able to provide!