Host a Domain from a Local or Cloud Linux Server

The Vircadia packages can help you get your own domain up and running quickly.


You can run these same commands on an existing Vircadia domain to upgrade it if the original domain was installed using the package. Packages are currently available for the following distributions:

Ubuntu Server 18.04 LTS

sudo apt-get update && sudo apt-get install ./vircadia-server_2021.1.2-20210525-b020558-0ubuntu1-1_amd64.deb

Amazon Linux 2

sudo yum install

Unlisted Distribution

If you do not see your distribution listed here, you may compile your own server from source using the Vircadia builder.


The installation packages will create a domain at the default port location and configure a service to keep it running on that machine.

For the list of network ports that you will need to open and manage, see here.

Connect a web browser to the server at port 40100. (If you are on the machine that the server is running on, this would be http://localhost:40100) Complete the initial setup wizard and you should have a functioning domain.


The program files are installed in /opt/vircadia:

  • /opt/vircadia contains the executables

  • /opt/vircadia/lib contains libraries required for operation

  • /opt/vircadia/plugins is currently used for audio codecs

  • /opt/vircadia/resources is required for the administrative website

The executables in this folder (with the exception of new-server) cannot be launched from the command prompt without first setting LD_LIBRARY_PATH=/opt/vircadia/lib.

The file /etc/opt/vircadia/default.conf contains any environment variables necessary to running the domain.

All content is stored under /var/lib/vircadia/default. All files underneath /var/lib/vircadia are owned by the user vircadia, which is also the user that runs all domain-related processes.


The installation packages setup the following systemd services to manage the Vircadia domain:

  • vircadia-domain-server@default.service: Manages the core domain server

  • vircadia-assignment-client@default.service: Spawns and manages the assignment clients

  • Controls startup and shutdown of the above services

The service is the only one that is set to auto-start. Starting or stopping it will bring the other two services down.

The first two services log a large amount of data to their service journal. Checking their logs (via systemctl status) is a good way to ensure they are operating properly.

Multiple domains

The installation package is configured to permit multiple domains to run on a single server at different port numbers. New servers can be created using the following command:

/opt/vircadia/new-server <name> <base-port>

where name is a word used to name and manage the domain and base-port must be the the first of a range of four contiguous port numbers not overlapping with any other use on the system.

Assuming you created a new server with the name second-bite, this would setup the following:

  • Environment variables in /etc/opt/vircadia/second-bite.conf

  • Content stored in /var/lib/vircadia/second-bite

  • Services launched as vircadia-domain-server@second-bite.service, vircadia-assignment-client@second-bite.service, and

Legacy Services

There are a number of tweaks that are made to the default configuration to simplify storage and the ability to run multiple domains on one server. In case you would like to remove this logic and run the servers closer to how the original High Fidelity domain servers were running, this is provided as an option.

  • Systemd services named vircadia-domain-server.service, vircadia-assignment-client.service, and (without the @name) have simplified configuration

  • No file is provided to specify environment variables for the server

  • Content would be stored in /var/lib/vircadia/.local