Skip to content

--socket does not work with qemu #291

Description

@DUOLabs333
  1. Run sudo ./build/vmnet-helper --socket connect.sock --interface-id 2835E074-9892-4A79-AFFB-7E41D2605678 --operation-mode=shared
  2. In another tab/window/etc., run
sudo env "DYLD_FALLBACK_LIBRARY_PATH=qemu/lib" qemu/bin/qemu-system-aarch64 \
-M virt,accel=hvf -m 3G \
-cpu host \
-drive file=debian-12-nocloud-arm64.qcow2 \
-netdev stream,id=vlan,addr.type=unix,addr.path=/Users/system/vmnet-helper/connect.sock,server=off \
-device virtio-net,netdev=vlan,mac=5a:94:ef:e4:0c:ee \
-smp 4 \
-nographic \
-bios edk2-aarch64-code.fd \
-boot menu=off
  1. See that if you try to run iperf in the guest, you get iperf3: error - unable to connect to server: Network is unreachable and the output of vmnet-helper is stuck at INFO [main] waiting for client on "connect.sock"

I also tried reversing 1 and 2 (so that the QEMU process is started first, opening a listening socket, rather than connecting to an existing one), but the outcome remains the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions