this post was submitted on 14 Aug 2023
5 points (72.7% liked)

Nix / NixOS

1765 readers
2 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

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

top 12 comments
sorted by: hot top controversial new old
[–] manitcor@lemmy.intai.tech 2 points 1 year ago (1 children)
[–] flashgnash@lemm.ee 3 points 1 year ago

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

[–] matejc@matejc.com 2 points 1 year ago

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

[–] oessessnex@programming.dev 2 points 1 year ago

You can use libvirt. It's not exactly declarative but you can automate it.

[–] gecko@tiny.lizard.supply 2 points 1 year ago

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.

[–] Atemu@lemmy.ml 1 points 9 months ago (1 children)
[–] flashgnash@lemm.ee 2 points 9 months ago

That actually seems to be exactly what I wanted

[–] 0x0me@programming.dev 1 points 1 year ago (1 children)
[–] flashgnash@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (1 children)

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 1 points 1 year ago (1 children)

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 points 1 year ago

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

[–] baremetal@lemmy.ml 1 points 1 year ago

Anyone tried QuickEmu? I consider it semi declarative.