LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Networking with Guest OS and Host OS in Virtualbox (https://www.linuxquestions.org/questions/linux-networking-3/networking-with-guest-os-and-host-os-in-virtualbox-925180/)

mmdullah 01-22-2012 11:02 PM

Networking with Guest OS and Host OS in Virtualbox
 
I have a laptop with Windows XP OS. I use Oracle Virtualbox for virtualization.

Guest Operating Systems are: Ubuntu10.04 (lucid) and Centos5.

In my laptop I use LAN (172.16.1.7/ 255.255.252.0) IP address with my LAN. I have no right to change this IP.

I use wimax (wireless modem) for network access which assignes IP from DHCP server.
and through this modem I use internet.

I have installed web server and postgree sql server both on (Ubuntu and CentOS guest).


My requirements.

1. I have applications on host XP written in c# language and need to access postgre sql server on (ubuntu and/or centos guest)

2. I must be able to access websites hosted on ubuntu and/or centos from LAN ( my host laptop and LAN pcs)

3. LAN pcs and guest os (ubuntu and centos) will be able to access internet via wireless modem.


what kind of network I can configure so that my requirements are served.

note: it will be good if sample config commands are shown sequentially.

Thanks in advance.

ukiuki 01-23-2012 12:25 AM

If you want your vitual machine to be seen from internet and intranet the easiest way to to use an lan card just for your virutal machine(so you need 2 lan cards), easiest way is USB lan sticks. now if you want to use just the one lan card you will need to go through the command prompt for VitualBox.
http://www.virtualbox.org/manual/ch08.html

Regards

jefro 01-23-2012 03:28 PM

If the lan doesn't have a gateway that may make it a bit easier.

I'd attach the wimax to the VM and use one of the OS's to direct all traffic. You point browsers to it's address. I think I'd start with nat connections in the vm.


All times are GMT -5. The time now is 04:18 PM.