-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
AF_VSOCK support #983
Comments
Links:
|
2016-04-02 17:48:08: antoine uploaded file
|
The vsock bits have been reverted in December 2015: VSOCK: revert virtio-vsock until device spec is finalized, which makes it very hard to test. And it's not immediately obvious because you get this unhelpful error:
You then have to figure out with strace that the device does not exist.. To fix this, you either have to download the kernel tree they are using (see [http://qemu-project.org/Features/VirtioVsock]), or a newer kernel source and apply RFC,v5,4/5 VSOCK: Introduce vhost_vsock.ko. (for example the Fedora rawhide kernels - the patch applies cleanly there still, bar the maintainers file which can be skipped anyway) |
2016-04-04 06:06:54: antoine uploaded file
|
Once I figured out that you MUST use the kernel and qemu versions from [http://qemu-project.org/Features/VirtioVsock] (other combinations may or may not work - this one definitely does, the patched kernel is needed at both ends too), it wasn't too difficult: done in r12309. Usage:
Note: I thought the connections using vsock were from guest to host only, but that is not the case: Re: AF_VSOCK status (will need re-testing). @smo: let's discuss. Debugging:
|
See also #1159 comment:1 for the new |
Conversely, you can run a server in the guest and connect to it using the assigned CID. xpra start :100 --start-child="xterm" --bind-vsock=auto:10000 And we can connect to it from the host using: xpra attach vhost:4:10000 |
r12698 adds it to the man page. |
VSOCK is included in kernel 4.8, here was the pull request: vhost: new features for 4.8 |
2016-11-18 00:41:29: smo commented
|
2016-11-18 06:29:54: antoine uploaded file
|
Seems that even qemu 2.7 in Fedora 25 does not have vsock builtin. |
2016-11-19 04:26:23: antoine commented
|
Reply: Re: AF_VSOCK status in qemu upstream: you can use qemu.git/master .. I have also made a copr repository for Fedora available here with qemu-kvm, kernel, and other packages with virtio-vsock support : [https://copr.fedorainfracloud.org/coprs/stefanha/vsock/] |
This has been tested, see #1387 for a follow up - closing. |
When using the ProxyServer, or just when connecting to/from a virtual machine in general, it would be very nice to support VSOCK.
One could also envisage running virtual machines without any networking whatsoever (or even the host, and let the VM have the NIC instead), only the VSOCK would be used for display forwarding.
Links:
Usage:
Not sure about the kernel + python support.
This may require cythonizing:
The text was updated successfully, but these errors were encountered: