Skip to content

So tiny linux for testing virtualization (Virtual I/O aka VIRTIO) purpose

Notifications You must be signed in to change notification settings

Code-Hex/puipui-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PUI PUI Linux

puipui

This is the minimum linux for testing the apple virtualization framework (https:/Code-Hex/vz). So I assumed to support architectures are only x86_64 and aarch64 (arm64).

This vmlinux is actually very very small other than linux distributions.

Since file size is very small in totally, I can do testing on the any CI with download them.

Kernel

What's supported:

  • Internet
  • VIRTIO (Virt device I/O)
    • virtio blk device
    • virtio console (via hvc drivers. e.g. console=hvc0)
    • virtio filesystem (virtfs)
    • af_vsock

Initramfs

Our initramfs has a very simple init system controlled by fs/init script on this repository root. this script will do:

  • Mount any file systems (proc, sysfs and devfs).
  • Setup console which is an user specified by a console kernel parameter.
    • Find devices and add them to /etc/inittab and /etc/securetty.

You can use it with other linux distributions.

Usage

Build all

$ ./puipui-linux-tool

Update Kernel config

$ ./puipui-linux-tool -u

Hack

This tool is used musl cross compiler. On arm64 environment the tool will be downloaded those pre build toolchains from https:/Code-Hex/musl-cross-make-arm64

About

So tiny linux for testing virtualization (Virtual I/O aka VIRTIO) purpose

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages