Declaratively installed VM?
Declaratively installed VM?
I still unfortunately need a windows VM as backup Is it possible to declaratively setup a VM given a path/url to a virtual disk image
No, not by default. There's other people's work that lets you do this, but you're likely best off doing it yourself by generating qemu config files and systemd services for them through Nix.
2 0 ReplySomething like Ansible+Proxmox will do what you want. https://vectops.com/2020/01/provision-proxmox-vms-with-ansible-quick-and-easy/
2 0 ReplyI'm looking to do this with nix config, would rather not mix and match if at all possible
3 0 Reply
Maybe Vagrant might be helpful.
1 0 ReplyCan vagrant do windows well? Was under the impression it wasn't really meant for it and not sure how licensing would work for the windows instance
Currently using the key built into my machine, if there's a way to automatically pull that and shove it into the VM that would be perfect
1 0 ReplyNever tried myself. There seems to be some stuff on https://app.vagrantup.com/boxes/search?order=desc&page=1&provider=&q=windows&sort=updated&utf8=%E2%9C%93. Do not know if this will be helpful or fits your needs.
0 0 Reply
There's this "beauty": https://git.m-labs.hk/M-Labs/wfvm
1 0 ReplyThat actually seems to be exactly what I wanted
2 0 Reply
Maybe this can be of use for you, it's not declarative but it is in Nix, it shouldn't be too hard for someone to make it declarative: https://github.com/matejc/win11
1 0 ReplyAnyone tried QuickEmu? I consider it semi declarative.
1 0 Reply