I want to set up a homeserver, however I currently don´t own any Hardware that I could use to install a Server on. What I do currently have is some spare time and my Laptop.
My Question is:
Can I setup the whole server enviroment in a VM on my Laptop and save it as some portable config? When I do have server hardware I just want to get it up and running quickly.
Thanks in advance
I definitely recommend nix. In fact, I prototyped my NixOS server in a VM and then committed my config to a git repository to clone on the real server later
If you copy the contents of the virtual hard disk used by to VM to a real disk, then you can just boot your server from that real disk. You’ll probably have to reconfigure some hardware and network stuff but it should be super simple.
Nix might be the answer for that, or ansible. You’ll still have to reinstall, but the second time will be super easy.


