Code Monkey home page Code Monkey logo

uigniter's Introduction

Uigniter

Light weight orchestration tools for OSv unikernels, backed by Firecracker.

  • Uigniterd: the uigniter server which boots and manages OSv/firecracker instances, controlled via a RESTful API
  • Uigniterctl: the command line tool to communicate with uigniterd (not developed yet)

Prerequisites

  • A Linux machine with KVM enabled
  • Firecracker installed (in env PATH)

Getting started

Build from source

git clone https://github.com/richardlee159/uigniter.git
cd uigniter/uigniterd
go build

Run uigniter server

sudo ./uigniterd

Now the server is listening on 127.0.0.1:6666.

Note that Uigniter loads OSv kernels and disk images from a root repository folder: /var/lib/uigniter . For now, it's created automatically but managed manually, so you need to copy your OSv kernels into /var/lib/uigniter/kernel and images into /var/lib/uigniter/image .

Usage

  • create new instance

    POST http://127.0.0.1:6666/vm/create

    The request body is json format. For example:

    {
        "image_name": "hello",
        "cmdline": "hello",
        "read_only":true
    }

    will use the image /var/lib/uigniter/image/hello.raw and the kernel /var/lib/uigniter/kernel/kernel.elf .

    Get status code 201 if success, and the response body will tell you the id and ipv4 address of the running instance (in json format, of course) .

  • stop an instance

    POST http://127.0.0.1:6666/vm/{id}/stop

    Get status code 201 if success.

uigniter's People

Contributors

richardlee159 avatar

Stargazers

Niranjan Anandkumar avatar Cqshinn avatar

Watchers

 avatar

Forkers

enixdark

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.