• Stars
    star
    140
  • Rank 260,713 (Top 6 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

small Linux VM, ready to run containers, for macOS on ARM

virt

small Linux VM, ready to run containers, for macOS on ARM

Usage

  • on macOS
    • curl -Lo- https://github.com/apinske/virt/releases/download/v0.10/virt.tar.gz | tar xzf -
    • ./virt
  • in VM
    • apk upgrade
    • ./setup-vdb.sh
    • ./setup-podman.sh
      • to test: podman run --rm -it alpine
    • ./setup-rosetta.sh
      • to test: podman run --rm -it --arch amd64 alpine
    • ./setup-k3d.sh
      • to test: kubectl create deployment nginx --image nginx
    • $HOME is mounted at /mnt/virt/home
  • ssh
    • apk add dropbear && reboot
    • ssh root@$(ndp -an | grep $(cat .virt.mac) | awk '{print $1}')

Components

Kernel

  • based on 6.1 longterm
  • small set of features
  • only virtio drivers

Userland

  • based on Alpine 3.18
  • stripped down

Hypervisor

  • based on Apple Virtualization.framework