!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

574 Members
NixOS ❤️ systemd158 Servers

Load older messages


SenderMessageTime
11 Feb 2025
@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
@aloisw:julia0815.dealoisw
In reply to @qyliss:fairydust.space
It's ACPI ­— do aarch64 VMs use ACPI?
Depends on who runs the VM I guess, the Hetzner Cloud ones do and they seem to be standard KVM with UEFI.
18:14:17
@qyliss:fairydust.spaceAlyssa RossYou can do UEFI with devicetree though18:18:13
@qyliss:fairydust.spaceAlyssa Rossand I think that's what QEMU does18:18:16
@rosscomputerguy:matrix.org@rosscomputerguy:matrix.org
In reply to @aloisw:julia0815.de
Depends on who runs the VM I guess, the Hetzner Cloud ones do and they seem to be standard KVM with UEFI.
Yeah, I think those are Ampere machines. I'm pretty sure mine has ACPI.
18:29:31
@aloisw:julia0815.dealoiswI don't think the host hardware matters inside a VM. Unsure whether they use QEMU though.18:32:11
@arianvp:matrix.orgArianYeh seems qemu only does acpi for intel20:15:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.org You could do systemd.services.backdoor.unitConfig.DefaultDependencies = false;. I tried to add that as a general thing one time but a bunch of tests broke so we undid that. But there's no reason the backdoor needs to wait for things like basic.target; those tests that broke just made assumptions about file systems already being mounted and stuff 20:15:10
@arianvp:matrix.orgArianSystemd folks told me vmspawn is basically untested and they never tried it on aarch6420:15:27
@arianvp:matrix.orgArianMkosi qemu wrapper is also broken on aarch64 20:15:38
@raitobezarius:matrix.orgraitobezariusin true systemd fashion20:27:04
@antifuchs:asf.computerantifuchsoooh, is it basic.target that gets waited on there? I guess that's my culprit20:39:46
@arianvp:matrix.orgArian

in true systemd fashion
I made the mistake at looking all issues tagged with journal in the systemd issue tracker today

21:43:25
@arianvp:matrix.orgArian *

in true systemd fashion

I made the mistake at looking all issues tagged with journal in the systemd issue tracker today

21:43:32
@arianvp:matrix.orgArianI’m convinced it’s physically impossible to logship journal logs without occasional corruption21:43:55
12 Feb 2025
@arcayr:mischief.expertarcayr joined the room.02:50:36
@magic_rb:matrix.redalder.orgmagic_rb so ive got a weird setup where i've got some disks on my server which are unlocked by me after the rest of the system boots up. therefore for example /mnt/disk1 wont be available until i unlock it. But when I do need the equivalent of machinectl bind uk3s /mnt/disk1/infrastructure/buildbot /data/buildbotto be ran. I'm not sure whats the best way to automate that in systemd. Maybe a service unit depending onmnt-disk1-infrastructure-buildbot.mount`? 07:49:51
@gdamjan:spodeli.orggdamjanautomate what?15:58:25

Show newer messages


Back to Room ListRoom Version: 6