Thursday, January 28, 2021

Show HN: krunvm – Create and run lightweight VMs from OCI images

krunvm

krunvm is a CLI-based utility for managing lightweight VMs created from OCI images, using libkrun and buildah.

Features

  • Minimal footprint
  • Fast boot time
  • Zero disk image maintenance
  • Zero network configuration
  • Support for mapping host volumes into the guest
  • Support for exposing guest ports to the host

Demo

asciicast

Supported platforms

  • Linux/KVM on x86_64.
  • Linux/KVM on AArch64.
  • macOS/Hypervisor.framework on ARM64.

Installation

macOS

brew tap slp/krun
brew install krunvm

Fedora

dnf copr enable -y slp/libkrunfw
dnf copr enable -y slp/libkrun
dnf copr enable -y slp/krunvm
dnf install -y krunvm

Building from sources

Dependencies

Building

cargo build --release

Limitations

Networking

Networking support is limited to TCP IPv4

The current implementation of TSI (Transparent Socket Impersonation) in libkrun is limited to TCP and IPv4. This is expected to improve soon.

Domain name resolution is broken on musl-based distributions

As a consequence of the previous point, libkrun-based VMs need to use TCP for connecting to the DNS servers. musl libc does not support domain name resolution using TCP, so on distributions based on this library (such as Alpine), name resolution is broken.



from Hacker News https://ift.tt/3puKzQP

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.