GithubHelp home page GithubHelp logo

sousandrei / firesquid Goto Github PK

View Code? Open in Web Editor NEW
57.0 5.0 4.0 29.41 MB

Simple AWS Firecracker MicroVM Orchestrator

License: MIT License

Rust 97.62% Shell 2.38%
aws-firecracker-orchestrator aws-firecracker firecracker firecracker-microvms firecracker-containerd firecracker-vm orchestrator microvm microvms hacktoberfest

firesquid's Introduction

Logo

Simple AWS Firecracker orchestrator

Report Bug or Request Feature


Build Status

Table of Contents

About the Project

FireSquid is a simple AWS Firecracker orchestrator. It abstracts the hard part making it a breeze to spawn your very own fleet of micro-vms!

Features

  • REST API
  • Multiple vms from the same kernel
  • Lightweight
  • Customizable

Upcoming:

  • Fine grained networking
  • Package release and distribution
  • Choices between which kernel to use for which machine

Assets 📦

Here are some assets to get you started. The default folder for assets is just called assets in the same folder as FireSquid.

Grab the assets listed in the official firecracker guide. There is a script provided in this repo to set this up

curl -fsSL https://raw.githubusercontent.com/sousandrei/firesquid/main/scripts/getassets.sh | sh

Help wanted 🤝

All contributions are welcome!

If you are using or plan to use Firecracker or FireSquid please don't hesitate to reach out so we can foster a collaboration ecosystem around Firecracker.

Sponsors ❤️

you?

License

See LICENSE for more details.

firesquid's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar sousandrei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

firesquid's Issues

Gracefully shutdown

Listen to interrupt signal
Send shutdown signal to all vms
Wait for their processes to end
Send shutdown signal to hyper server

Treatnig unwraps

Treating errors that are suppressed with unwraps throughout the code

Run as a system service

Investigate how to Run as a service on Linux
Create a .service file
Prioritize ubuntu initially

Separate state

separate all state and state operations into a new module
investigate the going from String to &str in the state

Permissions

Hey, cool project!

I tried the application and had some issues with permissions.

The first issue is that I couldn't download Linux Kernel 5.9-rc2 that is listed in the Asset section of the README.

The error was:

<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.</Details>
</Error>

So I grabbed the kernel and rootfs from Getting Started with Firecracker instead (and Firecracker v0.23.0).

Then I started the app with cargo run and sent this request:

~/.../firesquid >>> curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"vm_name":"test"}' \      
  http://localhost:3000          

The response was:

{"success":true}%

But this was printed to the console:

thread 'tokio-runtime-worker' panicked at 'Failed to spawn vm child process: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/vm/child.rs:29:10

Any idea why I got a permission denied error?

I would be happy to provide more information if needed.

Update documentation

Add a how to use section on readme
Add a guide on how to create a boot drive
Add a guide to compile the linux kernel for firecracker

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.