Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-22 Thread Justin Humm
Thanks alot for that clarification Leo. 


signature.asc
Description: signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-22 Thread Justin Humm
Thanks for that hint, will try out NixOps asap.

Best,
Justin


signature.asc
Description: signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Danylo Hlynskyi
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 :

> 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


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Leo Gaspard
Well, if the only issue is it being far from completion, [1] should be a
working implementation of it, with all the features if I remember correctly.

However, I must say I've been putting more attention on the RFC than on
the implementation lately, waiting to be sure the RFC is OK before
making the last adjustments, especially a long-due rebase :)

That said, you said "define volumes with an OS image (not NixOS)", which
would imply neither this module nor [2] pointed out by Volth actually is
a good choice for you. Unfortunately, I don't know (yet?) of a module
that would allow you to do what you are looking for.

Leo Gaspard / Ekleog


[1] https://github.com/Ekleog/nixpkgs/tree/vms

[2] https://github.com/Nekroze/kvms.nix


On 05/16/2017 06:29 PM, Justin Humm wrote:
> Thanks for the hint. I've already seen this, and it is quite exactly
> what I want, but I considered it too far away from completion for my use
> case.
> 
> Does anyone use declarative VMs right now?
> 
> Best,
> Justin
> 
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
> 



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Volth
https://github.com/Nekroze/kvms.nix

On 5/16/17, Justin Humm  wrote:
> Thanks for the hint. I've already seen this, and it is quite exactly
> what I want, but I considered it too far away from completion for my use
> case.
>
> Does anyone use declarative VMs right now?
>
> Best,
> Justin
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Justin Humm
Thanks for the hint. I've already seen this, and it is quite exactly
what I want, but I considered it too far away from completion for my use
case.

Does anyone use declarative VMs right now?

Best,
Justin


signature.asc
Description: signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-16 Thread Profpatsch
On 17-05-15 07:26pm, Justin Humm wrote:
> Hello everyone,
> 
> I'm looking for a best practice for declarative VMs in libvirt/qemu. What I 
> want
> to do:

Might be of interest https://github.com/NixOS/rfcs/pull/12


-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Declarative VMs in libvirt/Qemu

2017-05-15 Thread Justin Humm
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



signature.asc
Description: signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev