From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Feng To: passt-user@passt.top Subject: Re: qemu couldn't connect the unix domain socket Date: Thu, 28 Oct 2021 12:25:29 +0800 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1953114049318508082==" --===============1953114049318508082== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Add cc. On Tue, Oct 26, 2021 at 1:28 PM Li Feng wrote: > > 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=3Dvirt= io > 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=3Dn= one,id=3Ddrive-virtio-disk1,file.locking=3Doff > -device virtio-blk-pci,scsi=3Doff,drive=3Ddrive-virtio-disk1,id=3Dvirtio-di= sk1,bootindex=3D1 > -vnc 0.0.0.0:101 -chardev > socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/domain-222-29ec19c9-d3= 30-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 --===============1953114049318508082==--