How to run OSM on Vagrant

From OSM Public Wiki
Revision as of 15:24, 7 June 2018 by Marchettim (talk | contribs) (Created page with "Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/osm The OSM vagrant image supports the virtualbox provider. Make sure vagrant (https://w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/osm

The OSM vagrant image supports the virtualbox provider.

Make sure vagrant (https://www.vagrantup.com) and virtualbox (https://www.virtualbox.org/) is installed.

1) Create the initial the Vagrantfile:

 vagrant init osm/osm --box-version 4.0.1

2) If you would like to access the OSM Web client externally from the virtualbox VM, you can open up port 80 by editing the generated Vagrantfile.

ie. uncoment this line:

 # config.vm.network "forwarded_port", guest: 80, host: 8080

4) Start OSM:

 vagrant up

5) ssh to OSM:

 vagrant ssh