6 Mar 2025 |
@elvishjerricco:matrix.org | there's a PR | 19:33:46 |
raitobezarius | ah cool | 19:33:47 |
@elvishjerricco:matrix.org | I just haven't reviewed it yet | 19:33:53 |
@elvishjerricco:matrix.org | (it's high on my todo list but I have few spoons) | 19:34:09 |
raitobezarius | (resting is awesome) | 19:34:17 |
Arian | I think vsock is built-in and not a module? | 19:34:51 |
Arian | So it doesn't need loading | 19:34:56 |
@elvishjerricco:matrix.org | oh | 19:34:59 |
Arian | Not 100% sure. Raito will know | 19:35:13 |
@elvishjerricco:matrix.org | well I was about to say something that you've just invalidated :P | 19:35:15 |
@elvishjerricco:matrix.org | I was going to say that needing to load the module probably breaks initrd testing | 19:35:47 |
@elvishjerricco:matrix.org | which admittedly is kinda rare | 19:36:00 |
@elvishjerricco:matrix.org | and fixable | 19:36:21 |
@elvishjerricco:matrix.org | ish | 19:36:28 |
@elvishjerricco:matrix.org | assuming systemd can handle waiting for the module to load | 19:37:03 |
@elvishjerricco:matrix.org | but maybe it's not a module at all | 19:37:12 |
@elvishjerricco:matrix.org | Arian: seems like no: /run/booted-system/kernel-modules/lib/modules/6.12.13/kernel/net/vmw_vsock/vsock.ko.xz | 19:38:35 |
gdamjan | for the server, it's just a .socket that's generated by systemd-ssh-generator
https://www.freedesktop.org/software/systemd/man/257/systemd-ssh-generator.html
so the generator needs to run after the module is loaded IMHO | 19:41:04 |
@elvishjerricco:matrix.org | wait wut | 19:41:42 |
@elvishjerricco:matrix.org | clearly I don't understand systemd-ssh-generator and its relationship to vsoc | 19:42:06 |
@elvishjerricco:matrix.org | * clearly I don't understand systemd-ssh-generator and its relationship to vsock | 19:42:08 |
gdamjan | and on my Arch VM - seems to be generated by default | 19:42:19 |
@elvishjerricco:matrix.org | needing to load a module means the generator won't do the right thing | 19:43:12 |
gdamjan | for the client side (ssh client, but actually VM host), you need the systemd-ssh-proxy executable and some ssh config magic (shipped with systemd) | 19:43:14 |
@elvishjerricco:matrix.org | i'm so confused | 19:43:53 |
gdamjan | ah, and also the generator needs to find that sshd is "installed" | 19:44:29 |
gdamjan | not sure, but didn't the kernel automatically load socket modules ? | 19:44:44 |
@elvishjerricco:matrix.org | ok so we have a .socket unit, which depends on a vsock, and we're hoping the kernel auto-loads the module? | 19:45:48 |
@elvishjerricco:matrix.org | (really, the .socket unit should just depend on modprobe@whatever-the-vsock-module-is-called.service ) | 19:46:32 |
gdamjan | considering I haven't configured any vsock module to be loaded explicitly, and yet they are :) | 19:46:43 |