Skip to content

Soikr/microvm-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microvm-examples

Extremely simple examples for microvm, easily appliable to your configs

I only started playing around with microvms the day before making this repo, so im no expert.

Warning

This is a simplified snippet of my current homelab.

Most vm configs can be safely applied, host configurations are in ./nixos

Rebuilding

Rebuilding is as easy as sudo nixos-rebuild switch --flake .#Avalanche

Note

This will apply the changes to the microvms as well since i implemented declarative deployment

Updating VMs

Did you change some vm configuration? When rebuilding the host (#Avalanche) it may say the microvms didnt restart.

Restarting the microvms requires sudo microvm -Ru (microvm name)

For example, you can restart the Minecraft microvm after tweaking its configs and rebuilding the host with: sudo microvm -Ru Minecraft

To do

  1. Extra services like wireguard
  2. Minecraft vm better managed imperatively

Make a few notes on imperative configuration

Remove declarative deployment for minecraft

Better minecraft example to better reflect a real configuration

  1. Configuration cleanup
  2. Additional removal info
  3. Eventually programmed networking alternative

Extra

Not sure why but removal of microvms is iffy. These may help:

astro/microvm.nix#181

removing-microvms

Useful links:

https://astro.github.io/microvm.nix/

https://github.com/astro/microvm.nix

You can message me on discord: soikr

About

Simple examples for microvm.nix - Reflecting my knowledge

Topics

Resources

Stars

Watchers

Forks

Languages