From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Feng To: passt-user@passt.top Subject: qemu couldn't connect the unix domain socket Date: Tue, 26 Oct 2021 13:28:27 +0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5272694039284353440==" --===============5272694039284353440== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I just tested the master code, the passt just exited without any error. ``` $ ./passt Outbound interface: ens192 ARP: address: 00:50:56:be:9d:1f DHCP: assign: 192.168.64.217 mask: 255.255.240.0 router: 192.168.64.1 search: . UNIX domain socket bound at /tmp/passt_1.socket You can now start qrap: ./qrap 5 kvm ... -net socket,fd=3D5 -net nic,model=3Dvirtio or directly qemu, patched with: qemu/0001-net-Allow-also-UNIX-domain-sockets-to-be-used-as-net.patch as follows: kvm ... -net socket,connect=3D/tmp/passt_1.socket -net nic,model=3Dvirtio 21-10-26 13:23:43 root(a)192.168.64.217:~/passt(master=E2=9C=97) ``` Another terminal: ``` $ bash x.sh recv: Connection reset by peer Probe of /tmp/passt_1.socket failed connect: No such file or directory Probe of /tmp/passt_2.socket failed connect: No such file or directory Probe of /tmp/passt_3.socket failed ... ``` ``` $ cat x.sh ./qrap 5 /root/qemu-master/build/qemu-system-x86_64 -uuid 1869b108-42b3-42a7-852e-70261d73f6a9 -name guest=3D1869b108-42b3-42a7-852e-70261d73f6a9 -cpu host -enable-kvm -smp 4 -device pci-bridge,chassis_nr=3D1,id=3Dpci.0 -device pci-bridge,chassis_nr=3D1,id=3Dpci.1 -device virtio-scsi-pci,id=3Dscsi0,bus=3Dpci.0,addr=3D0x10 -fsdev local,security_model=3Dmapped,id=3Dfsdev-fs0,path=3D/root -device virtio-9p-pci,id=3Dfs0,fsdev=3Dfsdev-fs0,mount_tag=3Dfs0 -device intel-iommu,device-iotlb=3Don,intremap=3Don -M q35,accel=3Dkvm,kernel-irqchip=3Dsplit -serial mon:stdio -nographic -m size=3D2048M,maxmem=3D32G,slots=3D128 -device virtio-balloon -drive file=3D/root/fedora34.qcow2,format=3Dqcow2,cache=3Dnone,aio=3Dnative,if=3Dnon= e,id=3Ddrive-virtio-disk1,file.locking=3Doff -device virtio-blk-pci,scsi=3Doff,drive=3Ddrive-virtio-disk1,id=3Dvirtio-disk= 1,bootindex=3D1 -vnc 0.0.0.0:101 -chardev socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/domain-222-29ec19c9-d330= -4949-b/monitor.sock,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -qmp tcp:0.0.0.0:2235,server,nowait -device virtio-serial-pci,id=3Dvirtio-serial0,max_ports=3D16 -net socket,fd=3D5 -net nic,model=3Dvirtio ``` Thanks, Feng Li --===============5272694039284353440==--