Coder Social home page Coder Social logo

virgo's Introduction

virgo

wercker status

This is an example of using the DeferPanic Unikernel IaaS API.

Here we make a docker-like application to get and run unikernels locally on your mac.

Quick Start:

  1. Install

  2. virgo signup [email protected] username mypassword

  3. ./virgo pull eyberg/go

Slightly Longer Web Start:

  1. Sign up for a free account at https://deferpanic.com .

  2. Cut/Paste your token in ~/.dprc.

  3. Watch the demo video @ https://youtu.be/P8RUrx4jE5A .

  4. Fork/Compile/Run a unikernel on deferpanic and then run it locally.

Install:

go get github.com/deferpanic/dpcli/dpcli
go install github.com/deferpanic/dpcli/dpcli
go install

echo "mytoken" > ~/.dprc

Pull a Unikernel Project:

virgo pull html

Run a Unikernel Project:

Run command requires root privileges.

sudo virgo run html

# for headless mode use flag
sudo virgo run --headless html

Kill a local Unikernel Project:

Kill command also requires root privileges.

sudo virgo kill html

Fetch the log for the Unikernel Project:

virgo log html

List all Unikernels that are Installed:

virgo images

List the Running Unikernels:

virgo ps

List all local Unikernels:

virgo list

Remove a local Unikernel Project:

sudo virgo rm html

Dependencies:

This works on OSX and Linux.

For OSX - this has been tested on {El Capitan, Sierra}. For bridge/outgoing connections you'll want to pay attention to this section.

Note: If you are running Sierra you really should upgrade to Go 1.7 - there are multiple issues.

It's known to work on {10.11.4, 10.11.5, 10.11.6, 10.12.

Qemu:

brew install qemu

TunTapOSx:

wget https://downloads.sourceforge.net/tuntaposx/tuntap_20150118.tar.gz

If you want to enable HAX (intel hardware acceleration) on Mac you have to options:

You can either roll your own kernel extension or you can download a dmg:

Roll Your Own Extension

  1. boot into recovery mode (reboot && cmd-shift-R) and disable system integrity either of the two following methods:
csrutil enable --without kext
csrutil disable
  1. git clone https://github.com/intel/haxm

  2. build the kernel extension: (note: substitute the 10.13 for whatever is in sw_vers -productVersion)

xcodebuild -config Release -sdk macosx10.13

  1. sudo chown -R root:wheel intelhaxm.kext

  2. sudo kextutil intelhaxm.kext

Download a signed dmg

https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x

  1. You should now be able to see that hax is working: qemu-system-x86_64 -accel hax

virgo's People

Contributors

christarazi avatar julianpistorius avatar pmuens avatar

Watchers

James Cloos avatar Grant Griffiths avatar  avatar

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.