Over the last few days I have been putting together a virtual machine image of an Ubuntu 12.04 install set up to act as an OSM tileserver and Nominatim server. The Virtualbox virtual machine image boots up and after logging in and running the ‘startx’ command to start the graphical environment, has a “configuration wizard” script on the desktop.
Running this wizard will prompt you to download an OSM PBF extract to the desktop. This PBF file will then be loaded into either a tile rendering database, or a Nominatim database, or both. The configuration is entirely point and click and took about 30 minutes to have a fully functional tileserver and Nominatim server with up to date coastlines downloaded automatically for the Washinton, DC, extract (about a 10 mb PBF extract, processed on a typical dual core PC). I wrote a wiki page about how I set up the virtual machine starting from the bare Ubuntu 12.04 64 bit desktop build to the fully functional server.
The 2.2 gb virtual machine image can be downloaded via BitTorrent using the following torrent file or magnet link. You will find a Readme file in the torrent telling you how to import and boot the image in Virtualbox and further instructions in the VM image itself.
http://data.osm-hr.org/OSM_Server_v0.1.torrent
magnet:?xt=urn:btih:IYDWGYFZYN5CLYRYZOSPH7A7IOKLKPNY&tr=udp://tracker.openbittorrent.com:80
I hope people find this VM fun and useful to play around with. Hopefully now when people want a quick testserver for an app they are developing, or people who want to scrape tiles, or do bulk geocoding can easily download and run this VM on their own hardware, and avoid placing undue load on the OSM community’s donated servers.
Please share any comments or feedback about the VM either in the comments here, or on the talk page on the wiki.
-AndrewBuck
مناقشة
تعليق من robbieonsea في 13 سبتمبر 2012 في 19:31
Good stuff!
I’ve always thought about doing something similar, but other things have taken priority.
I thought maybe the setup for the VM (as far as possible) should be configured itself (and as such held under source control eg in github) rather than a collection of [Wiki] instructions.
Vagrant seems a good open system for defining Virtual Box images, see: http://vagrantup.com/
but I can’t say I’ve actually used it.
تعليق من Gnonthgol في 14 سبتمبر 2012 في 12:18
Great work. Next version have to include OSRM and TileMill and maybe a version of the rails port for completeness as well. Maybe I will start developing on that image in the future.
تعليق من geekasylum في 15 سبتمبر 2012 في 14:28
Thanks Andrew for pointing me to this - great work. I’ll play with it gleefully in the very near future. “)
تعليق من ngt في 19 سبتمبر 2012 في 17:35
Hey, just started the vm and it is up and running! But I wonder where I can find the rendered tiles g
تعليق من free_as_a_bird في 23 سبتمبر 2012 في 18:11
Hey Andrew!
Thanks a lot for that wonderful compilation of tools!!!
Can’t remember exactly how much time I spent with trial&error when I tried to setup a tirex / rendering server manually..
Having this a ready-to-go Rendering & Nominatim server is really a major benefit!
In case you need a helping hand on testing, extending, etc. please let me know
Best regards Toby
تعليق من japharl في 29 سبتمبر 2012 في 20:53
So far, so good. A few minor suggestions for future builds…
Best, Zak
تعليق من Guttorm Flatabø في 22 أكتوبر 2012 في 19:59
I recommend you take a look av vagrant, as robbieonsea mentioned. It makes the whole makingn, distribution and use process a bit simpler. I made a box for running Waymarked Trails with it the other day.
If you started out with the Ubuntu server 12.04 box you’d probably manage to make it much smaller in size. It looked like you installed a lot of software not needed to serve tiles.
تعليق من racer005 في 2 سبتمبر 2013 في 05:21
Dear friend, thank you very much! This server work great!
Please write a root password!?
تعليق من ZoranR في 14 ديسمبر 2013 في 10:14
Hi. I downloaded the vm and it’s up and running, but for some reason when I download the pbf it’s imported to the database (or at least its says it is) and when I get to the part of showing the tiles I don’t see any generated tiles? I tried it a few times and every time with the same result. Coastline file is also downloaded. And the weird part is that when the import to Nominatim happens it works? I can search the data through Nominatim. Do you have any idea what is going on? What I’m doing wrong?