Skip to content
Discussion options

You must be logged in to vote

I also have this use case and the easiest solution I found was to use vsock for this connectivity and to use my PR for this.

On the host machine, you have to listen to this socket like so:

...
Listen: [ "vsock://local:1234" ]
...

Then you can start your QEMU machine like so:

qemu-system-x86_64 ... -device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=3

For the VM config you have to configure your outside node as a vsock peer:

...
Peers: ["vsock://local:1234"]
...

I hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oooo-ps
Comment options

Answer selected by oooo-ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants