You can get some inspiration from NixOps libvirtd backend. Also, I think little changes to NixOps will allow to start/stop non-NixOS images too.
Though I've run into issues with network of libvirtd machines (DHCP problems)... 2017-05-15 20:26 GMT+03:00 Justin Humm <justin.h...@posteo.de>: > Hello everyone, > > I'm looking for a best practice for declarative VMs in libvirt/qemu. What > I want > to do: > > * define volumes with an OS image (not NixOS) on it > * access the fs on the volume once, change some files (e.g. ssh keys) > * boot the vm > * define networks, which connect the vms with each other > > Would be lovely to have this done entirely in Nix, but I haven't seen > anything like that yet. Does anybody have an approach, which works good and > is declarative? > > Best and thanks, > Justin > > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > https://mailman.science.uu.nl/mailman/listinfo/nix-dev > >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev