LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-23-2012, 12:02 AM   #1
mmdullah
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 01-23-2012, 01:25 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,029

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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
 
Old 01-23-2012, 04:28 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,970

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 01:51 PM
Virtualbox host 10.04 guest question texas.chef94 Linux - Virtualization and Cloud 17 10-02-2011 08:28 PM
VirtualBox: Slackware64 host and guest; NFS mount from host fails catkin Linux - Virtualization and Cloud 0 11-15-2010 07:54 AM
VirtualBox Networking (NAT) not working on XP host with Mandriva guest FreeRadical2600 Linux - Newbie 9 10-29-2008 09:12 AM
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 03:24 PM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration