Vagrantfile and ansible for setting up of
Shell Awk
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Try Personium on your machine

These procedures set up a Personium Unit on 1VM using vagrant + ansible.

You can easily set up on your machine and try to explore the Personium APIs.

Confirmed environment

The setup procedures described here are tested in the following environment.

Environment Windows VirtualBox Vagrant Installation time
1 8.1 x64 RAM 8GB 5.2.8 2.1.0 7 hrs
2 10 x64 RAM 16GB 5.2.14 2.1.2 2 hrs

Setup procedures

Ok, let's start to set up Personium!

  1. Download and install VirtualBox. (Download page)

  2. Download and install Vagrant. (Download page)

  3. Clone this repository. (
    * If Japanese is included in the path of the git clone directory, vagrant up commnd will fail. Please do not include Japanese in the path.

    $ git clone
  4. Change to setup-vagrant directory under the local repository you cloned, and run vagrant up.
    * Depending on your network bandwidth and CPU power, this procedure may take at least 2 hours to complete.
    * Sometimes tomcat will failed to start because it takes more than 60 seconds. But tomcat is usually running, so please ignore the failure and go to the next step.
    * If your network is behind a proxy server, please configure the proxy settings for vagrant and Ansible before running vagrant up.
    How to Setting in proxy environment

    $ cd ./setup-vagrant
    $ vagrant up
  5. Verify that your Personium Unit-Manager is up and running.

    1. Access the following URL from the browser.    https://localhost:1210/Unit-Manager/login.html
      * Please refer to the link for Unit-Manager.。
  6. Verify that your Personium is up and running.

    1. Execute the following command

      $ curl -X POST "https://localhost:1210/__ctl/Cell" -d "{\"Name\":\"sample\"}" -H "Authorization:Bearer example_master_token" -H "Accept:application/json" -i -sS -k
    2. If Personium works fine, 201 response is returned as below. a cell is successfully created!

      HTTP/1.1 201 Created
      Date: Mon, 26 Jan 2015 12:32:13 GMT
      Content-Type: application/json
      Transfer-Encoding: chunked
      Connection: keep-alive
      Access-Control-Allow-Origin: *
      DataServiceVersion: 2.0
      ETag: W/"1-1422275532964"
      Location: http://localhost:1210/__ctl/Cell('sample')
      X-Dc-Version: 1.3.20
      Server: PCS
  7. If you want ssh connection to the virtual server created by Vagrant, execute the following command.

    $ vagrant ssh

Information about the Personium Unit

If you follow the above procedures, your Personium Unit is constructed with the following specifications.

Personium Unit
OS and Middleware on VM
  • OS
    CentOS 7.2 x86_64

  • Middleware

    Category Name Version
    java JDK 8u131 --
    tomcat tomcat 8.0.44 web
    commons-daemon 1.0.15 --
    nginx nginx 1.13.3 proxy
    Headers More 0.32 --
    logback logback 1.0.3 --
    slf4j 1.6.4 --
    memcached memcached 1.4.21 cache
    elasticsearch elasticsearch 2.4.1 db & search engine