!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

623 Members
NixOS ❤️ systemd171 Servers

Load older messages


SenderMessageTime
7 Feb 2025
@elvishjerricco:matrix.orgElvishJerriccoso no action required, it seems18:02:15
@arianvp:matrix.orgAriangood callout though18:02:24
@terrorjack:matrix.orgterrorjack joined the room.22:46:14
8 Feb 2025
@terrorjack:matrix.orgterrorjack set a profile picture.02:24:25
@terrorjack:matrix.orgterrorjack removed their profile picture.02:24:59
@marcel:envs.net@marcel:envs.net joined the room.20:27:51
9 Feb 2025
@informatic:hackerspace.plinfowski joined the room.22:34:51
@tired:fairydust.space@tired:fairydust.space left the room.22:50:18
11 Feb 2025
@arianvp:matrix.orgArian hmm I wanna try to get systemd-vmspawn work 11:57:38
@arianvp:matrix.orgArian

it looks for firmware config in /usr/share/qemu/firmware and /etc/qemu/firmware

which obviously doesn’t work. but I have two options here:

  1. Make it in NixOS config to re-expose ${qemu}/share/qemu to /etc/qemu
  2. Patch systemd and add a dependency on qemu
11:59:20
@arianvp:matrix.orgArianoption 1 seems better right? it’s calling qemu as a binary — it just needs to be able to discover the configs shipped with qemu11:59:45
@elvishjerricco:matrix.orgElvishJerriccoDepends on if you want to use this within the nix build sandbox, I guess12:02:01
@k900:0upti.meK900Can you not give it a firmware at runtime?12:02:08
@k900:0upti.meK900Also IIRC libvirt does something like that already with /run/libvirt/firmware12:03:00
@k900:0upti.meK900So maybe there should be one standard place for that12:03:10
@arianvp:matrix.orgArianyeh there’s a —firmware argumentb12:03:41
@arianvp:matrix.orgArianbut by default it points to /etc/qemu/firmware12:03:50
@arianvp:matrix.orgArianit’s just annoying to have to pass that in explicitly12:03:57
@arianvp:matrix.orgArian qemu needs to be installed in environment.systemPackages anyway. so might as well expose /etc/qemu/firmware I guess 12:04:14
@arianvp:matrix.orgArian

$ systemd-vmspawn --linux /run/current-system/kernel --tpm no --initrd /run/current-system/initrd 
░ Spawning VM nixos-stuff on /mnt/Projects/nixos-stuff.
░ Press Ctrl-] three times within 1s to kill VM.
Couldn't find OVMF firmware blob with Secure Boot support, falling back to OVMF firmware blobs without Secure Boot support.
qemu-kvm: -device vmgenid,guid=cc36b80c-97fa-4233-ad99-c246a2f48443: 'vmgenid' is not a valid device model name
12:13:06
@arianvp:matrix.orgArianurghh does qemu-kvm-aarch64 not support vmgenid?12:13:17
@qyliss:fairydust.spaceAlyssa RossIt's ACPI ­— do aarch64 VMs use ACPI?12:16:38
@raitobezarius:matrix.orgraitobezariusI think I saw ACPI support for aarch64 in the kernel recently13:51:45
@qyliss:fairydust.spaceAlyssa RossOh yeah I'm not saying you can't do ACPI on aarch6413:58:52
@antifuchs:asf.computerantifuchs I have a nixos test that tries to assert that a socket unit startup doesn't finish until a certain condition is met. If I do a machine.start() in the test code, the test waits forever until the socket's execstart finishes; is there a way to get backdoor.service not to depend on that socket being fully up? 15:28:28
@antifuchs:asf.computerantifuchs * I have a nixos test that tries to assert that a socket unit startup doesn't finish until a certain condition is met. If I do a machine.start() in the test code, the test waits forever until the socket's execstart finishes (which it won't, because the condition for it finishing happens later in the test); is there a way to get backdoor.service not to depend on that socket being fully up? 15:29:35
@antifuchs:asf.computerantifuchstrying to do it with the initrdBackdoor, but that feels kinda wonky15:33:05
@antifuchs:asf.computerantifuchshrm, nope: now switch_root() hangs indefinitely (:15:35:14
@antifuchs:asf.computerantifuchs * I have a nixos test that tries to assert that a socket unit startup doesn't finish until a certain condition is met. If I do a machine.start() in the test code, the test waits forever until the socket's ExecStartPre finishes (which it won't, because the condition for it finishing happens later in the test); is there a way to get backdoor.service not to depend on that socket being fully up? 16:09:45
@aloisw:julia0815.dealoisw
In reply to @k900:0upti.me
Also IIRC libvirt does something like that already with /run/libvirt/firmware
/run/libvirt/nix-ovmf, also /var/lib/qemu/firmware lately (which causes issues).
18:11:12

Show newer messages


Back to Room ListRoom Version: 6