r/AlpineLinux • • Oct 24 '19

Use Alpine Linux as a Hypervisor (with KVM, QEMU and libvirt) on AMD64 and ARM64

I wrote a tutorial on how to install and use KVM, QEMU and libvirt on Alpine Linux, effectively turning it in to a lightweight hypervisor. Maybe someone will find it useful. :)

https://lunar.computer/posts/kvm-qemu-libvirt-alpine/

16 Upvotes

5 comments sorted by

2

u/Corrivatus Oct 24 '19

An arm hypervisor? This sounds really neat, would you mind sharing your hardware specs and how many virtual hosts you're getting out of it?

I typically use RHEL7/8 as my hypervisors because of the baked in selinux, I haven't gotten comfortable enough with it yet to set it up myself, but it would be nice to use Alpine in its place!

2

u/kosmonavtik Oct 24 '19

I've only tried it out on my NVIDIA Jetson Nano Developer Kit as a proof-of-concept (I only booted an Alpine image on Alpine):

  • Quad-core ARM® Cortex®-A57 MPCore processor

  • 4 GB 64-bit LPDDR4 1600MHz - 25.6 GB/s

  • NVIDIA Maxwell™ architecture with 128 NVIDIA CUDA® cores

2

u/Corrivatus Oct 31 '19

Very neat little kit and concept! What're you hoping to do with it, if you don't mind me asking? Or is it more an exploration for the sake of exploration?

1

u/kosmonavtik Oct 31 '19

The ARM64 was just a proof-of-concept and doing it for the sake of doing it (and learning about the ARM64 architecture). I do use Alpine Linux day to day as my hypervisor operating system (on x86_64) using libvirt, KVM and QEMU. :)

1

u/Trukour Nov 10 '19

Couldn't this be useful as a Hackintosh hypervisor? Theoretically, the problem with most Hackintosh is hardware compatibility -- a virtual machine helps the issue, but struggles with overhead and efficiency -- I'd be interested to see how this compared to other builds.