Skip to content

FaaS microVMs #112

Description

@korewaChino

Implement ability to use OCI images as a root with microVMs, for FaaS use cases

requires virtiofsd to run providing the root mount, and kernel flags to allow virtiofs support

virtiofsd \
  --socket-path /tmp/virtiofs.sock \
  --shared-dir ./root \
  --sandbox chroot
cloud-hypervisor \
  --kernel vmlinux \
  --fs tag=rootfs,socket=/tmp/virtiofs.sock \
  --cmdline "console=hvc0 root=rootfs rootfstype=virtiofs rw" \
  --memory shared=on

linux buildconfig

make x86_64_defconfig

# paravirt boot entry for CH direct boot
./scripts/config --enable CONFIG_PVH

# virtio
./scripts/config --enable CONFIG_VIRTIO
./scripts/config --enable CONFIG_VIRTIO_PCI
./scripts/config --enable CONFIG_VIRTIO_NET
./scripts/config --enable CONFIG_VIRTIO_BLK
./scripts/config --enable CONFIG_VIRTIO_CONSOLE
./scripts/config --enable CONFIG_VIRTIO_BALLOON

# overlayfs
./scripts/config --enable CONFIG_OVERLAY_FS

# FUSE and virtiofs

./scripts/config --enable CONFIG_FUSE_FS
./scripts/config --enable CONFIG_VIRTIO_FS

make olddefconfig
make -j$(nproc) vmlinux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions