-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: How to use AF_VSOCK in a Windows VM? #534
Comments
Hi @elmarco, As far as I understand the driver installation is not installing (yet) the viosocklib.dll that registers Virtio Socket Provider.
I think @irudakov77 can provide more info on the subject. Best regards, |
Hi @elmarco,
Best regards, |
The value of AF_VSOCK will never conflict with other Windows values? Iow, is the value registered with Microsoft, or are they following a numbering? It would be nice if they included it in their winsock2.h.. |
Of course it will, but not today or even tomorrow. I get this value from Linux and use it at the time of development because it is grater than the current AF_MAX. It can easily conflict with other third-party socket provider AFs. Conflict can be avoided by requesting AF value from the viosock driver, it was planned to implement at the very end of development, but I can do it now. I liked the idea to "register" AF_VSOCK with Microsoft, thanks. But this will not be quick and the result is not guaranteed. Regards, |
In the latest release virtio-win-0.1.248-1, there is still no viosock driver. Any plan in 2024? @YanVugenfirer @irudakov77 |
Not being very familiar with Windows in general, I thought I could simply add a virtio-vsock device, install the latest drivers (from https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso?) and follow https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/make-integration-service to connect to the host via VSOCK.
Alas,
winsock2.h
still doesn't define AF_VSOCK, and there seems to be a mix of concern in that documentation page. Then I looked at this repository and found viosocklib-test.c.What are the steps to get
socket(AF_VSOCK, SOCK_STREAM, 0)
working from a Windows VM. Is there some virtio-win specific documentation available?cc @irudakov77
thanks
The text was updated successfully, but these errors were encountered: