Ephemeral Playground

Ever wanted a throw-away VM that spins quickly? One good example of this use case is practice playground VM on learning sites. In this project, we will create a CLI that provisions a throw-away VM for us. It uses firecracker microVM underneath to provision and destroy the VMs. Getting Started Firecracker has pretty good getting started guide. I will use it as a reference to get started. First step is to look if /dev/kvm is available on the host machine. This is the important requirement to use firecracker. The presence of KVM module can be checked using lsmod | grep kvm command. The following command checks if you have read and write access to /dev/kvm. ...

12 min · 2486 words · dudeperf3ct