Lennart Poettering on Nostr: …the AF_VSOCK "CID" (which is like an IP address, i.e. an identifier for the local ...
…the AF_VSOCK "CID" (which is like an IP address, i.e. an identifier for the local VM) you can specify a friendly machine name, if the VM in question is registered with systemd-machined. systemd-vmspawn sets things up that way out of the box, of course. That means, with current off-the-shelf systemd inside a VM and on the host you can now just do "ssh machine/foobar" to connect to a local VM called "foobar", via AF_VSOCK, i.e. independently of any fragile network.
Published at
2024-12-17 08:39:58Event JSON
{
"id": "7ac02f1de62b3ffc2163d4be7a51bd6ce79797820d2b64c3f3e744c2bfb44779",
"pubkey": "1d95c32d9a9d95a54f98eb2eaa156f3d3a71dc49eca2c960b2b89962758f1cc0",
"created_at": 1734424798,
"kind": 1,
"tags": [
[
"e",
"61f94625fa412df7597f3e873380a7adb95ea5f0b4e2cd157d300e379d2e20c7",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/pid_eins/statuses/113667263582402333",
"activitypub"
]
],
"content": "…the AF_VSOCK \"CID\" (which is like an IP address, i.e. an identifier for the local VM) you can specify a friendly machine name, if the VM in question is registered with systemd-machined. systemd-vmspawn sets things up that way out of the box, of course. That means, with current off-the-shelf systemd inside a VM and on the host you can now just do \"ssh machine/foobar\" to connect to a local VM called \"foobar\", via AF_VSOCK, i.e. independently of any fragile network.",
"sig": "38742d9c1634bb10abfc16ba60e7933e8d21ec41b98c576b3e0d9a1299039ff0cc5c4cb61347d1bb144995845edd05b6db1117f498a3c2c1fedc2322c843e63d"
}