| 6 Mar 2025 |
@elvishjerricco:matrix.org | specifically because they don't need nixos | 20:03:26 |
gdamjan | right, and they take the "live" environment into consideration | 20:04:08 |
gdamjan | so if I move the same nixos image from bare metal to a vm vsock will start working | 20:04:49 |
@elvishjerricco:matrix.org | yea it's "discoverable" in a way | 20:05:35 |
@elvishjerricco:matrix.org | I just had a nice conversation with Kent Overstreet about systemd generators | 20:07:27 |
raitobezarius | In reply to @gdamjan:spodeli.org raitobezarius: note 258 will have one more vsock implementation vsock-mux/ https://github.com/systemd/systemd/pull/32941 oh gosh i needed that so hard | 20:07:38 |
raitobezarius | i just fixed it in my thing | 20:07:45 |
@elvishjerricco:matrix.org | which is unusual. He's normally quite difficuult | 20:08:04 |
Arian | ThingOS | 20:08:04 |
@elvishjerricco:matrix.org | * which is unusual. He's normally quite difficult | 20:08:09 |
raitobezarius | gdamjan i decided to stop to rely on my shitty memory and fact checked the kernel | 20:08:35 |
raitobezarius | you're right that vsock is a driver in vhost/ | 20:08:39 |
raitobezarius | config VHOST_VSOCK
tristate "vhost virtio-vsock driver"
depends on VSOCKETS && EVENTFD
select VHOST
select VIRTIO_VSOCKETS_COMMON
default n
help
This kernel module can be loaded in the host kernel to provide AF_VSOCK
sockets for communicating with guests. The guests must have the
virtio_transport.ko driver loaded to use the virtio-vsock device.
To compile this driver as a module, choose M here: the module will be called
vhost_vsock.
| 20:09:19 |
raitobezarius | vsock is a either a kernel driver or baked into the kernel | 20:09:27 |
raitobezarius | so sorry Arian i got it wrong | 20:09:38 |
raitobezarius | In reply to @elvishjerricco:matrix.org I have a lot to learn about vsock I think vsock is life | 20:09:59 |
raitobezarius | (seriously) | 20:10:02 |
@elvishjerricco:matrix.org | ok I think I have a lot of very important things to learn about vsock :P | 20:10:30 |
Arian | It's just a socket but it shows up on both the guest and the host | 20:10:45 |
@elvishjerricco:matrix.org | yea that sounds like wizardry | 20:11:08 |
gdamjan | the host has an address of 2 always | 20:11:24 |
raitobezarius | but this is exactly the wizardry you need when you run a datacenter at home | 20:11:23 |
gdamjan | address or CID | 20:11:30 |
gdamjan | the only stupid issue is, you have to manage guest CIDs manually :/ | 20:12:03 |
gdamjan | if using low-level tools like qemy/cloud-hypervisor etc | 20:12:19 |
@elvishjerricco:matrix.org | lol I just mean that wizardry indicates there's a lot of stuff to learn | 20:12:38 |
Arian | Also known as a fun time | 20:14:16 |
gdamjan | ЧД | 20:14:22 |
gdamjan | * :) | 20:14:27 |
Arian | Speaking of fun times. Networking in my Linux vm running in macos virtualization framework is fast *except for* S3 | 20:15:23 |