Ubuntu guest best practice for postgreSQL access from host

Discussions about using Linux guests in VirtualBox.
Post Reply
mrhobbeys
Posts: 43
Joined: 24. Nov 2008, 03:38

Ubuntu guest best practice for postgreSQL access from host

Post by mrhobbeys »

I have been trying a few different things without success but i have to admit I am not exactly sure what I am doing.

I want to install PostgreSQL on my Ubuntu Guest and access the DB from my Windows 7 installation.
If I get all this working I will repeat the process with a live system.

So far I have installed PostgreSQL and confirmed it is working. Now I am lost as to how to get Win7 to communicate. I think I need a Static IP :?: Has anyone already done this or similar?
mrhobbeys
Posts: 43
Joined: 24. Nov 2008, 03:38

Re: Ubuntu guest best practice for postgreSQL access from host

Post by mrhobbeys »

I do need for the guest to have a static IP....
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu guest best practice for postgreSQL access from host

Post by Perryg »

If there is a router in the network set the guest network to bridged and the best way is to set the IP adddress as static so it will not change.
If there is no router then for testing purpose you can use host-only network in the guest and add a 2nd adapter set to NAT if the guest needs to get to the Internet.

See Chapter 6. Virtual networking in your VirtualBox users guide.

As for setting up the guest that actually falls outside the scope of this forum. Depending on what the guest is you can ask the forum there for tutoring.
For Ubuntu that would be http://ubuntuforums.org/
Post Reply