Skip to content

First Setup

Olivier van Helden edited this page Nov 23, 2026 · 8 revisions

Run the interactive wizard after installation:

opensim setup

Choose one of these setup types:

  • Grid: a grid service and one or more simulators
  • Standalone: one simulator that also acts as its own grid
  • Simulator: a simulator joining an existing grid

The wizard presents the questions in one form, prefilled with engine defaults. Review the proposed configuration before applying it. In a terminal without dialog support, answers are collected with plain prompts; enter a field number to edit it, :back to return, or :quit to stop.

To prepare answers for review without applying the setup:

opensim setup --prepare setup.json

To prefill the wizard from a saved answer file, use --config. To apply a prepared setup without asking again, use:

opensim setup --apply setup.json

A region the grid has already

To run on this server a region the grid has already (restored, or moved from another server), answer yes to "Take over the region of this name the grid has already" in the wizard, or give --existing. The region keeps its UUID, place, size and owner, as the grid keeps them: no temporary region, nothing left on the map or in search. The setup refuses it while the simulator that runs it elsewhere answers: stop that one first.

Its content comes with it, with one of these:

  • --oar FILE: an archive of the region (opensim save oar on the old server), loaded once the region runs.
  • --dump FILE: the dump of the database of the old simulator (.sql or .sql.gz, of opensim backup or mysqldump). The database of the new simulator is made from it before it starts, so the region keeps all it had: objects, terrain, parcels, estate. Only for a new simulator, whose database is empty.
opensim setup --existing --oar /path/to/Welcome.oar

The wizard asks the grid to join and the region name as usual; give the name of the region the grid has. On a server that runs a simulator of the grid already, the same in one command:

opensim simulator add my-grid moved --region "Welcome" --existing --dump /path/to/old-simulator.sql.gz --apply
opensim region add my-grid my-grid.moved --name "Second" --existing --oar /path/to/Second.oar --apply

Without --apply, these say what they would write and change nothing. With --oar or --dump, the simulator starts once it is written, and the command waits until the region is loaded.

When the old simulator was stopped cleanly, the grid took its region out (all but the regions with a role, such as the default one): there is nothing to take over, and --existing says so. Add it as a new region instead, without --existing. With --dump, the region keeps its UUID, the one of the dump; give --location X,Y to keep its place on the map:

opensim simulator add my-grid moved --region "Second" --location 1000,1001 --dump /path/to/old-simulator.sql.gz --apply

Existing region configuration

To stage an existing region from its Region.ini:

opensim setup --region-config /path/to/Region.ini --prepare setup.json
opensim setup --apply setup.json

This preserves the region UUID and settings and leaves the simulator disabled. Restore its database and files, then stop the original source before enabling the migrated instance.

The setup needs write access to the configured OpenSim directories. Package installation and setup run with different privileges: setup should run as the account that owns the OpenSim data.

Clone this wiki locally