Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to create a Vagrant base box following the 2 resources here:

Using Ubuntu 12.10 (with LAMP) as the OS, I have 1 problem. I couldn't ping the vagrant IP which is although I could SSH via vagrant ssh.

How do I set it up such that I could access the web server from my host?

VirtualBox: 4.2.10
Guest OS: Ubuntu12.10
Host: OSX 10.8.3

share|improve this question

4 Answers 4

You can't just access a Vagrant box with its IP address from the host system. Vagrant's networking is meant to define an abstraction layer that works across multiple providers.

The easiest way to access services on your Vagrant box is to configure port forwarding. In your Vagrantfile, see the section Vagrant.configure and set values for :forwarded_port. For example, the following configuration forwards port 4567 on your local system to port 80 on the Vagrant box:

Vagrant.configure("2") do |config| = "precise32"
  config.vm.provision :shell, :path => "" :forwarded_port, host: 4567, guest: 80

After making this change, run vagrant reload to apply the changes. After applying the change, you should be able to point your web browser to to have the Vagrant Apache instance serve a web page. You can read a bit more about this in the Vagrant V2 documentation or on the Vagrant networking page.

share|improve this answer

I found the solution:

Just needed to setup port forwarding.

share|improve this answer
While this obviously answers the question, it would be preferred if you would summarize the contents of that link, and post the link as just a reference; that way, if the link goes down, this answer still has merit – Canadian Luke Nov 28 '13 at 16:48

I think this source can help :

good luck ;)

share|improve this answer
Please describe procedure here because links often end up being dead. – tumchaaditya Jan 13 '14 at 22:38
Please, do not provide answers that are just links. Here's some reasons:… – That Brazilian Guy Jan 13 '14 at 22:39

on Ubuntu 12 host/Ubuntu 12 guest the following worked for me with discourse

I add host IP determined by vagrant and guest IP determined by Vagrant to firewall exceptions

share|improve this answer
Please give details and not just one-line answers. – Kevin Panko Feb 10 '14 at 22:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.