

GitHub - firecracker-microvm/firecracker-go-sdk: Go Firecracker SDK
source link: https://github.com/firecracker-microvm/firecracker-go-sdk
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
A basic Go interface to the Firecracker API
This package is a Go library to interact with the Firecracker API. There is
also a command-line application that can be used to control Firecracker microVMs
called firectl
.
There are some Firecracker features that are not yet supported by the SDK. These are tracked as GitHub issues with the firecracker-feature label . Contributions to address missing features are welcomed.
Developing
Please see HACKING
Building
This library requires Go 1.11 and Go modules to build. A Makefile is provided
for convenience, but is not required. When using the Makefile, you can pass
additional flags to the Go compiler via the EXTRAGOARGS
make variable.
Tools
There's a basic command-line tool, built as cmd/firectl/firectl
that lets you
run arbitrary Firecracker MicroVMs via the command line. This lets you run a
fully functional Firecracker MicroVM, including console access, read/write
access to filesystems, and network connectivity.
Usage of ./cmd/firectl/firectl:
--firecracker-binary= Path to Firecracker binary
--firecracker-console= Console type (stdio|xterm|none) (default: stdio)
--kernel= Path to the kernel image (default: ./vmlinux)
--kernel-opts= Kernel commandline (default: ro console=ttyS0 noapic reboot=k panic=1 pci=off nomodules)
--root-drive= Path to root disk image
--add-drive= Path to additional drive, suffixed with :ro or :rw, can be specified multiple times
--tap-device= NIC info, specified as DEVICE:MAC
--vmm-log-fifo= FIFO for Firecracker logs
--log-level= vmm log level (default: Debug)
--metrics-fifo= FIFO for Firecracker metrics
-d, --debug Enable debug output
-h, --help Show usage
$ ./cmd/firectl/firectl --firecracker-binary=./firecracker-0.10.1 --firecracker-console=stdio --root-drive=openwrt-x86-64-rootfs-squashfs.img --tap-device=vmtap33/9a:e4:f6:b0:2d:f3 --add-drive drive-2.img:ro -d --vmm-log-fifo=/tmp/fc-logs.fifo --metrics-fifo=/tmp/fc-metrics
Network configuration
Firecracker, by design, only supports Linux tap devices. The SDK provides facilities to attach a tap device to the Firecracker VM, but the client is responsible for further configuration.
License
This library is licensed under the Apache 2.0 License.
Recommend
-
48
README.md
-
57
README.md firecracker-containerd This repository enables the use of a container runtime, containerd, to manage
-
37
现在的技术环境下,容器具有快速启动时间和高密度,VM 可以对硬件虚拟化,具有更好的安全性,并对工作负载具有更好的隔离性。容器和 VM 的特性现在还不可兼得。 现在 AWS 开源了 Firecracker,一种利用 KVM 的新虚拟化技术,专门...
-
61
虚拟化面临着一系列新挑战 时至今日,我们的客户可以利用无服务器计算来构建应用程序,而无需分神于基础设施的配置或者管理工作。开发人员可以利用AWS Fargate或者AWS Lambda的无服务器函数将其代码打包为无服务器容器。根据客...
-
45
At this year's re:Invent ( see here for live recap ), AWS annouced that it was open sourcing Firecracker. If you’ve never heard of Fire...
-
50
README.md Weave Ignite
-
31
In November 2018 AWS published an Open Source tool called Firecracker , mostly a virtual machine monitor re...
-
5
Attacking Firecracker: AWS' microVM Monitor Written in RustBy: Valent...
-
2
README.md English...
-
7
Deploying App Stack to Firecracker MicroVM InfraPicture this: an innovative way to deploy your app stack that combines the best of both worlds — the security of traditional VMs and the speed of contain...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK