Hi,
I'm trying out passt with custom QEMU (we emulate a proprietary device).
On one terminal I'm running latest passt (3eb26fe):
./passt --debug -f -t 55556:22 -s /tmp/passt.socket
On another terminal I'm running our qemu-system-x86_64 with:
-device virtio-net-pci,netdev=net0 -netdev stream,id=net0,server=off,addr.type=unix,addr.path=/tmp/passt.socket
QEMU starts and the VM boots, but without network:
[FAILED] Failed to start NetworkMan...[0m - Network Manager Wait Online.
On passt side I see this log:
No external routable interface for IPv6
Outbound interface (IPv4): ens160
MAC:
host: 00:50:56:87:50:45
DHCP:
assign: 192.168.120.119
mask: 255.255.255.0
router: 192.168.120.1
DNS:
192.168.3.240
0.8229: UNIX domain socket bound at /tmp/passt.socket
0.8245: You can now start qemu (>= 7.2, with commit 13c6be96618c):
0.8247: kvm ... -device virtio-net-pci,netdev=s -netdev stream,id=s,server=off,addr.type=unix,addr.path=/tmp/passt.socket
0.8250: or qrap, for earlier qemu versions:
0.8252: ./qrap 5 kvm ... -net socket,fd=5 -net nic,model=virtio
143.3596: accepted connection from PID 1704978
144.3168: TCP: index 0, SOCK_ACCEPTED: CLOSED -> SYN_RCVD
144.3168: TCP: hash table insert: index 0, sock 41, bucket: 59909, next: (nil)
144.3169: TCP: index 0: ACK_FROM_TAP_DUE
144.3170: TCP: index 0, timer expires in 10.000s
154.3170: TCP: index 0, handshake timeout
154.3170: TCP: index 0, reset at tcp_timer_handler:2965
154.3170: TCP: index 0, CLOSED: SYN_RCVD -> CLOSED
154.3171: TCP: hash table remove: index 0, sock 41, bucket: 59909, new: (nil)
154.3172: TCP: hash table compaction: maximum index was 0 (0x5600919ac500)
159.3257: TCP: index 0, SOCK_ACCEPTED: CLOSED -> SYN_RCVD
159.3257: TCP: hash table insert: index 0, sock 41, bucket: 134652, next: (nil)
159.3258: TCP: index 0: ACK_FROM_TAP_DUE
159.3258: TCP: index 0, timer expires in 10.000s
169.3258: TCP: index 0, handshake timeout
169.3258: TCP: index 0, reset at tcp_timer_handler:2965
169.3259: TCP: index 0, CLOSED: SYN_RCVD -> CLOSED
169.3259: TCP: hash table remove: index 0, sock 41, bucket: 134652, new: (nil)
169.3259: TCP: hash table compaction: maximum index was 0 (0x5600919ac500)
174.3371: TCP: index 0, SOCK_ACCEPTED: CLOSED -> SYN_RCVD
...
Looks like a handshake timeout.
Am I doing something wrong?
Thanks,
Amir
The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.
The new version with tag 2022_11_04.e308018 includes the following changes:
e308018 test/memory/passt: Change passt.avx2 path to /bin in test itself
11efaef passt, qrap, README: Update notes and documentation for AF_UNIX support in qemu
6c16977 test/perf: Finally drop workaround for virtio_net TX stall
667397d test: Switch to qemu -netdev stream option instead of using qrap
1401962 test: Wait for network before starting passt in two_guests setup
db74679 udp: Check for answers to forwarded DNS queries before handling local redirects
73f50a7 conf: Split the notions of read DNS addresses and offered ones
7656a6f conf: Adjust netmask on mismatch between IPv4 address/netmask and gateway
de93acb tcp: Correct function comments for address types
f7653a1 Use endian-safer typing in struct tap4_l4_t
7c7b68d Use typing to reduce chances of IPv4 endianness errors
dd3470d Use IPV4_IS_LOOPBACK more widely
dd09cce Minor improvements to IPv4 netmask handling
2b793d9 Correct some missing endian conversions of IPv4 addresses
40fc9e6 test: Add memory/passt test cases
ce2a0a5 test/lib: Add "td" directive, handled by table_value()
bfd311a test/lib/perf_report: Use own flag to track initialisation
2d4468e tap: Support for detection of existing sockets on ramfs
e76e65a test/lib: Move screen-scraping setup and layout functions to _ugly files
ea5e046 README: Add Podman, vhost-user links, and links to Bugzilla queries
10cabe3 passt.1: Fix typo: "addressses", reported by Lintian
https://passt.top/passt/log/?qt=range&q=2022_10_26.f212044..2022_11_04.e308…
Packages:
- Copr (CentOS Stream, EPEL, Fedora, Mageia, openSUSE):
https://copr.fedorainfracloud.org/coprs/sbrivio/passt/build/5010835/
permanent mirror: https://passt.top/builds/copr/0^20221104.ge308018/
- Debian package, from x86_64 static build:
https://passt.top/builds/latest/x86_64/passt_0e308018-1_all.deb
- Fedora updates:
https://bodhi.fedoraproject.org/updates/?packages=passt
- Package for other RPM-based distributions, from x86_64 static build:
https://passt.top/builds/latest/x86_64/passt-ge308018-1.x86_64.rpm
- x86_64 static binaries:
https://passt.top/builds/latest/x86_64/
--
Stefano