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
Something like Ansible+Proxmox will do what you want. https://vectops.com/2020/01/provision-proxmox-vms-with-ansible-quick-and-easy/
2ReplyI'm looking to do this with nix config, would rather not mix and match if at all possible
3Reply
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
2ReplyYou can use libvirt. It's not exactly declarative but you can automate it.
2ReplyNo, 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.
2ReplyMaybe Vagrant might be helpful.
1ReplyCan 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
1ReplyNever 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.
1Reply
Anyone tried QuickEmu? I consider it semi declarative.
1ReplyThere's this "beauty": https://git.m-labs.hk/M-Labs/wfvm
0ReplyThat actually seems to be exactly what I wanted
1Reply