diff --git a/doc/src/anleitung/microvm.md b/doc/src/anleitung/microvm.md index 1775767..9856ed0 100644 --- a/doc/src/anleitung/microvm.md +++ b/doc/src/anleitung/microvm.md @@ -23,18 +23,21 @@ In order to test persistent microvms locally we need to create them using the `` This is necessary to be able to mount persistent /etc and /var volumes on those hosts. Do the following: +Prepare your host by including `microvm.nixosModules.host` in your `flake.nix` [Microvm Docs](https://astro.github.io/microvm.nix/host.html) + + ```bash -# go into our repo and start the default dev shell (or us direnv) +# go into our repo and start the default dev shell (or use direnv) nix develop .# # create a microvm on your host (on the example of durruti) sudo microvm -c durruti -f git+file:///home/username/path/to/infrastructure/repo # start the vm -sudo systemctl start microvm@durruti.serivce +sudo systemctl start microvm@durruti.service # this may fail, if so we most probably need to create /var /etc manually, then restart -sudo mkdir /var/lib/microvms/durruti/{var, etc} +sudo mkdir -p /var/lib/microvms/durruti/{var,etc} # now you can for example get the rsa host key from /var/lib/microvms/durruti/etc/ssh/