stefanha / nc-vsock

netcat-like utility for AF_VSOCK
GNU General Public License v2.0
30 stars 12 forks source link

Unable to connect from host to host #1

Closed KarthikNedunchezhiyan closed 4 years ago

KarthikNedunchezhiyan commented 4 years ago

I tried to listen vsock on host and also connect from host, I got connect: Invalid argument error

Terminal 1: nc-vock -l 9003

Terminal 2: nc-vsock 2 9003 connect: Invalid argument

am i missing anything?

stefanha commented 4 years ago

Loopback on the host has only been supported since Linux v5.6. Is your host kernel recent?

Does lsmod on the host show that the vhost_vsock kernel module is loaded?

KarthikNedunchezhiyan commented 4 years ago

tnx @stefanha after upgrading the kernel to v5.6 I am able to use loopback on host VMADDR_CID_LOCAL