I can entirely accept that this question is terrible.. However, I'm looking for advice on where to even start.

I'm using Vagrant and Virtualbox through the help of puphpet.com on a Macbook air. As long as my wireless adapter is on, and it has a connection to something, everything works fine.

However - if I'm traveling, let's say, and I'm on an airplane.. I can't seem to access the remote host outside of vagrant ssh'ing into it.

I see the vboxnet0 adapter.. but it's like without my mac having a network of its own, I can't ping the box or access it's web resources (with hardwired hostnames to ips) ..

What am I missing? How can I use Vagrant/Virtualbox without any internet connectivity.. More specifically, I'd like to access the sites I have setup on Vagrant/Virtualbox through my macbook air.

That make any sense? Thanks!

  • It doesn't make sense in my ears. Where is the VBox machine - on your macbook? About what "remote host" are you talking?
    – guntbert
    Commented Jan 12, 2014 at 21:38
  • Yes - on my macbook. Remote host = guest OS (in my case, a ubunutu instance). If I try and hit (IP for guest host nginx) without SOME kind of network connection on my macbook, it won't work. I can, however, 'vagrant ssh' into the instance so I know its up.
    – dpluscc
    Commented Jan 20, 2014 at 14:38
  • Have you manage to solve this issue?
    – ovidb
    Commented Apr 6, 2017 at 21:17

1 Answer 1


It sounds like a problem with the hosts file on your macbook. If you go into your Vagrantfile, there should be a line with something like config.vm.network "private_network", ip: "". Add this address to your /etc/hosts file with the hostname you want for the box, and you should be up and running. Alternatively, you could use the ip address assigned to your box directly as long as you are using the correct address. If you are using a puphpet manifest, it will most likely be set to like above.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .