Skip to content

vsock communication between DomU and DomD #2

@hayashi-90

Description

@hayashi-90

@yhamamachi san

Is vsock communication between DomU and DomD supported?

On v4hsbc_xen_kernel612 branch latest,
I have tried to verify vsock connectivity between DomU and DomD using socat,
but it did not work (No such device).

DomD side:

root@sparrow-hawk-domd:~# socat -v -d -d VSOCK-LISTEN:12345, STDIO
2025/05/29 19:11:03 socat[958] N VSOCK CID=2
2025/05/29 19:11:03 socat[958] N listening on AF=40 cid:4294967295 port:12345

DomU side:

root@virtio-armv8-xt:~# socat - VSOCK-CONNECT:2:12345
2025/05/29 19:11:24 socat[253] E connect(5, AF=40 cid:2 port:12345, 16): No such device

Then I found the commit that seems disabling vsock on DomU.
Finally, I reverted the change and tried it again, but it still didn’t connect (No such device =>Connection timed out).

DomD side:

root@sparrow-hawk-domd:~# socat -v -d -d VSOCK-LISTEN:12345, STDIO
2025/05/29 19:06:52 socat[896] N VSOCK CID=2
2025/05/29 19:06:52 socat[896] N listening on AF=40 cid:4294967295 port:12345

DomU side:

root@virtio-armv8-xt:~# socat - VSOCK-CONNECT:2:12345
2025/05/29 19:08:08 socat[312] E connect(5, AF=40 cid:2 port:12345, 16): Connection timed out

How can we enable vsock communication between DomU and DomD?
thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions