!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

621 Members
NixOS ❤️ systemd171 Servers

Load older messages


SenderMessageTime
7 Feb 2025
@elvishjerricco:matrix.orgElvishJerriccoah ok that'll do then18:00:15
@arianvp:matrix.orgArianI can fix that too; but then will also have to default Audit=null in the stage-1 kernel config18:00:29
@elvishjerricco:matrix.orgElvishJerriccoyea best leave stage 1 out of it entirely if we can18:00:45
@arianvp:matrix.orgArianhow is the stage-1 journal configured anyway? if at all?18:00:50
@elvishjerricco:matrix.orgElvishJerriccoit's not :P18:00:56
@arianvp:matrix.orgArianthen I suggest we just don’t ship the socket in stage-118:01:11
@elvishjerricco:matrix.orgElvishJerriccothough I think there's an open issue about maybe duplicating the stage 2 config in stage 118:01:15
@arianvp:matrix.orgArian(which I think is already the case today?)18:01:30
@elvishjerricco:matrix.orgElvishJerriccoYea, I think we currently don't ship that socket and I agree we probably shouldn't18:01:47
@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

Show newer messages


Back to Room ListRoom Version: 6