Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
/ uigniter Public archive

OSv unikernel manager, backed by Firecracker.

License

Notifications You must be signed in to change notification settings

richardlee159/uigniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

OSv unikernel manager, backed by Firecracker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages