|
I implemented support for it would be neat to replace that usage with vmnet-helper, which doesn't suffer some of the architectural problems of |
Replies: 3 comments 8 replies
|
The only way to integrate with qemu is using --fd: Line 159 in 56935f2 If may be possible to use 2 sockets if we change the helper to use 2 sockets instread of one, but I don't think it make sense. It is better to change QEMU to support single socket in addition to the way it works now. I don't think you can create a socketpair in bash so you need to use something else for the wrapper. You can write a simple wrapper in Go, see the minikube vmnet integration for example: |
|
Looking in the current code: QEMU_WRAPPER=("$(brew --prefix socket_vmnet)/bin/socket_vmnet_client" "$SOCKET_VMNET_SOCKET")
ARGS+=("-netdev" "socket,id=net0,fd=3")Maybe we are missing something like socket_vmnet_client that will be part of vment-helper installation? This can be a tiny program creating the socketpair, starting vment-helper, and running qemu with fd=3. |
vment-clientCommand lineExample qemu usageUsing qemu command line from integration test: This command will obtain new mac address for every run, even if you use the same vm name. vmnet-client flow
@tamird what do think? |
vment-client
Command line
Example qemu usage
Using qemu command line from integration test:
https://github.com/nirs/vmnet-helper/actions/runs/13608770252/job/38043387504