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

4 points · 11 comments · view on lemmy.world

11 Comments

manitcor@lemmy.intai.tech · 2 pts · 3y (1 reply)

Something like Ansible+Proxmox will do what you want. https://vectops.com/2020/01/provision-proxmox-vms-with-ansible-quick-and-easy/

flashgnash@lemm.ee · 3 pts · 3y

I'm looking to do this with nix config, would rather not mix and match if at all possible

gecko@tiny.lizard.supply · 2 pts · 3y

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.

0x0me@programming.dev · 1 pts · 3y (3 replies)

Maybe Vagrant might be helpful.

flashgnash@lemm.ee · 1 pts · 3y (2 replies)

Can 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

0x0me@programming.dev · 0 pts · 3y (1 reply)

Never 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.

flashgnash@lemm.ee · 1 pts · 3y

Might work if I build my own image for it, don't really want to use virtualbox it's never really performed well for me

Atemu@lemmy.ml · 1 pts · 2y (1 reply)

There's this "beauty": https://git.m-labs.hk/M-Labs/wfvm

flashgnash@lemm.ee · 2 pts · 2y

That actually seems to be exactly what I wanted

matejc@matejc.com · 1 pts · 3y

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

baremetal@lemmy.ml · 1 pts · 2y

Anyone tried QuickEmu? I consider it semi declarative.