package mirage

  1. Overview
  2. Docs

Description

MirageOS is a library operating system that constructs unikernels for secure, high-performance network applications across a variety of cloud computing and mobile platforms. Code can be developed on a normal OS such as Linux or MacOS X, and then compiled into a fully-standalone, specialised unikernel that runs under the Xen hypervisor.

Since Xen powers most public cloud computing infrastructure such as Amazon EC2 or Rackspace, this lets your servers run more cheaply, securely and with finer control than with a full software stack.

Tags

org:mirage org:xapi-project

Published: 24 Sep 2018

README

MirageOS

MirageOS is a library operating system that constructs unikernels for secure, high-performance network applications across a variety of cloud computing and mobile platforms. Code can be developed on a traditional OS such as Linux or MacOS X, and then compiled into a fully-standalone, specialised unikernel that runs under the Xen or KVM hypervisors as well as lightweight hypervisors like BSD's bhyve. Xen and KVM power many public clouds; MirageOS unikernels are currently running on Amazon's Elastic Compute Cloud and Google Compute Engine, and maybe others!

The most up-to-date documentation can be found at the homepage. The site is self-hosted, and is itself a useful example. Simpler skeleton applications are also available online.

This repository

This repository includes:

  • a command-line tool to create and deploy applications with MirageOS; and

  • in types/, a library of type signatures that compliant applications use.

There are several diverse backends in MirageOS that require rather specialised build steps (from Xen to KVM unikernels), and this complexity is wrapped up in the tool.

To work with mirage, you'll need to either install prerequisites locally or use the Docker image.

Local install

You will need the following:

  • a working OCaml compiler (4.03.0 or higher).

  • the OPAM source package manager (1.2.2 or higher).

  • an x86_64 or armel Linux host to compile Xen kernels, or FreeBSD, OpenBSD or MacOS X for the userlevel version.

Docker image

There is a maintained Docker image at unikernel/mirage. You can also use the Dockerfile in this repository:

docker build -t mirage .
docker run -v <your-source>:/src opam config exec -- mirage

Using mirage

There are two stages to using mirage:

  • a configure phase where necessary code is generated and dependencies are determined.

  • an optional depends phase where OPAM package dependencies are satisfied.

  • a build phase where the compiler and any support scripts are run.

You can find documentation, walkthroughs and tutorials over on the MirageOS website. The install instructions are a good place to begin!

Dependencies (8)

  1. mirage-runtime >= "3.2.0" & < "3.3.0"
  2. logs
  3. astring
  4. bos
  5. functoria >= "2.2.0" & < "4.0"
  6. ipaddr >= "2.6.0" & < "5.0.0"
  7. jbuilder >= "1.0+beta10"
  8. ocaml >= "4.04.2"

Dev Dependencies

None

Used by (5)

  1. conan >= "0.0.2"
  2. conan-cli >= "0.0.2"
  3. docteur < "0.0.2"
  4. docteur-unix < "0.0.3"
  5. nbd = "3.0.0"

Conflicts (10)

  1. charrua-client >= "0.11"
  2. mirage-random >= "1.2.0"
  3. mirage-unix >= "3.1.0"
  4. tcpip < "3.5.0"
  5. mirage-solo5 < "0.4.0"
  6. jbuilder = "1.0+beta18"
  7. crunch < "1.2.2"
  8. io-page < "1.4.0"
  9. cstruct < "1.0.1"
  10. nocrypto < "0.4.0"
OCaml

Innovation. Community. Security.