title: How to connect with host PostgreSQL from vagrant virtualbox machine
body: <p>I have a VirtualBox machine running Ubuntu 12.04 in a Mac OS X host machine. In my host machine (Mac OS X), I have PostgreSQL installed. I would like to connect to this PostgreSQL server <strong>from</strong> my Ubuntu virtual machine (I know normally it's the opposite way).</p>
  
  <p>I guess I should configure some networking parameters in VirtualBox itself. All I get from <a href="http://docs.vagrantup.com/v2/networking/private_network.html">Vagrant docs</a> is I need to assign my vm a static IP to use a private network. But once created, how do I reach my host from my guest? </p>
  
  <p>I didn't find anything like that in vagrant docs. So, there's probably a good reason for that. Does it make sense? I don't want to duplicate PostgreSQL installation. Just use my current existent one.</p>