0
I have a Vagrant box (using Virtual Box) running locally on my laptop. My laptop (the host) is running Mac OS 10.11.6; the guest is running Ubuntu 16.04.
Currently, the guest is accessible from the host only, using the following stanza in the Vagrantfile:
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.13.37"
I want to make the Vagrant box accessible to other computers (on the home network only). Of course, it will only be accessible when my laptop is up and running on the home network and the vagrant box is running, but that's fine for my purposes.
I specifically want the vagrant box to be accessible at a fixed IP from the other computers on the home network. (It will be accessed from a laptop running Ubuntu 18.04 and another laptop running Windows 10, not that it matters.)
This commented-out stanza in the config file looks like it might be related to what I want:
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
However, searching online I couldn't find documentation or answers for vagrant describing the "predictable IP" part of my needs.
How can I configure this vagrant box to have an IP reachable from the rest of the home network (but only from the home network)?