Force VM rebuild
onny opened this issue · 3 comments
onny commented
Hey,
I guess NixOS is caching somehow the state of a VM and only applies changes if you run it again.
How can I force a rebuild or delete the KVM images manually?
Regards
Jonas
onny commented
For clarification why I struggle with this issue: I'm using nixos-shell to test a module and it works great so far! The module / service is a web app which creates a Mysql database and uses it. To test it correctly, I want to start the module again with a fresh and clean database setup, without retaining the old entries.
Mic92 commented
You can reset your virtual machine by deleting nixos.qcow2
in the same directory.
onny commented
Oh nice thank you. Already tried that but somehow missed it. nixos-shell is so fast that I couldn't believe it ;)