From nobody Tue Jul 30 21:53:28 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYTWx1jClz5S3hY for ; Tue, 30 Jul 2024 21:54:05 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resqmta-c2p-570110.sys.comcast.net (resqmta-c2p-570110.sys.comcast.net [IPv6:2001:558:fd00:56::b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYTWw18sdz3wsX for ; Tue, 30 Jul 2024 21:54:04 +0000 (UTC) (envelope-from ararslan@comcast.net) Authentication-Results: mx1.freebsd.org; none Received: from resomta-c2p-555954.sys.comcast.net ([96.102.18.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-c2p-570110.sys.comcast.net with ESMTPS id YtyKsAXzOghfMYunCsAZWc; Tue, 30 Jul 2024 21:54:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1722376442; bh=xPgUCHaepCFX4Xn/LoJ2aWQKAVXVbFCXJJO5sIZNkCE=; h=Received:Received:From:Message-Id:Content-Type:Mime-Version: Subject:Date:To:Xfinity-Spam-Result; b=WJzi7Z7R0PpaOvtj7s5frT78hsP3O9CHOxxl8b87igaobb4puH/6VlZQLCg77tlWM zZHvgkulZ8SScnVu+x3qRxbOCkHdghesdqStYXPUGmfNLwnAJ6/yFLORGs86aC22py Yp9JaVqQ2VnswE7m+FXyk189iTwNm2m7Mhzr1Ov2iowgrL7lSqQXrRRxrk0jJK3m0J qkkdt5B9VZQXgicaUH6jpOdfQ04CDSNhZk2KfKO7Kcfsf/sqHdpmfRD7ox6cdxKkkY l5nvx52huG+BOlpMOG0c/wnsexXwxouMkE+zXkOVH0Q+opAuKfsX4MtTWaI0I0v8a3 sAECIX8K2dsGg== Received: from smtpclient.apple ([67.160.29.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-c2p-555954.sys.comcast.net with ESMTPSA id Yumosrx9bHLd3YumqsAYUj; Tue, 30 Jul 2024 21:53:40 +0000 From: Alex Arslan Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_ABE8E1E7-5527-4C1F-88D6-08A485B4B25D" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Diagnosing virtual machine network issues Date: Tue, 30 Jul 2024 14:53:28 -0700 In-Reply-To: <2B0A1E6F-7B89-4F7C-9ECE-ABA94E476D5A@iitbombay.org> Cc: FreeBSD Hackers To: Bakul Shah References: <4a5a177a-5356-453c-8a09-f1d63d5d2e16@sentex.net> <4AB1C33B-DD93-4484-B63A-9FF8FE612B15@comcast.net> <799c7a15-52b8-4b44-bcbd-5ab6a3ef97a6@gmail.com> <0747ED5F-2ED6-461C-9C0B-CFD0EE480D82@comcast.net> <2B0A1E6F-7B89-4F7C-9ECE-ABA94E476D5A@iitbombay.org> X-Mailer: Apple Mail (2.3774.600.62) X-CMAE-Envelope: MS4xfIqEhx5ZZnJGGOjtqLp5hDJZEBT1OlmKy92e7ax3aa3LLLTE0QdQiFqu6wDXIbh2WFyT2ARSv8HEXBMHhZPOicDpC4sYNpwXdCKkmwkKVC2KBMnLmgSF 5WzgmblYZkau8p7PTJFjw+hDbBa8EinNek0zw2NbgLsHF00H25hjpTOfxWSvza/5HaaOnaPK7rZupeGIqdtHp0CgYbEL/erN+7Rz/GTvP/jrmPuDNXIo/2OO X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US] X-Rspamd-Queue-Id: 4WYTWw18sdz3wsX --Apple-Mail=_ABE8E1E7-5527-4C1F-88D6-08A485B4B25D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 30, 2024, at 2:22=E2=80=AFPM, Bakul Shah = wrote: >=20 >> On Jul 30, 2024, at 2:11=E2=80=AFPM, Alex Arslan = wrote: >>=20 >>> Can you provide more context? I'm not seeing earlier messages = anywhere in my email folders. Is this a Qemu issue? >>=20 >> The original message is from just over a month ago, archived here: >> = https://lists.freebsd.org/archives/freebsd-hackers/2024-June/003378.html >> Basically, we have FreeBSD 13.2 VMs running under KVM on a Linux = machine. >> Some code is using libcurl to make a request to an invalid domain and = is >> testing that the error is a resolution failure. This test passes on = all >> platforms except specifically in these FreeBSD VMs; I can't reproduce >> locally on FreeBSD. That made me think that there's an issue with how = the >> VM was set up, prompting the original message and discussion. Then = what >> I recently found was that we set a 30-second timeout for the libcurl >> request, which FreeBSD hits in the VM, as it evidently spends a full >> 30 seconds attempting to resolve the host, while e.g. Linux reports a >> resolution failure immediately. >=20 > What does /etc/resolv.conf look like on the FreeBSD VM? Just a comment and a name server line: $ cat /etc/resolv.conf # Generated by resolvconf nameserver 192.168.122.1= --Apple-Mail=_ABE8E1E7-5527-4C1F-88D6-08A485B4B25D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jul 30, = 2024, at 2:22=E2=80=AFPM, Bakul Shah <bakul@iitbombay.org> = wrote:

On Jul 30, 2024, at 2:11=E2=80=AFPM, Alex Arslan = <ararslan@comcast.net> wrote:

Can = you provide more context?  I'm not seeing earlier messages anywhere = in my email folders.  Is this a Qemu issue?

The = original message is from just over a month ago, archived = here:
https://lists.freebsd.org/archives/freebsd-hackers/2024-June/0033= 78.html
Basically, we have FreeBSD 13.2 VMs running under KVM on a = Linux machine.
Some code is using libcurl to make a request to an = invalid domain and is
testing that the error is a resolution failure. = This test passes on all
platforms except specifically in these = FreeBSD VMs; I can't reproduce
locally on FreeBSD. That made me think = that there's an issue with how the
VM was set up, prompting the = original message and discussion. Then what
I recently found was that = we set a 30-second timeout for the libcurl
request, which FreeBSD = hits in the VM, as it evidently spends a full
30 seconds attempting = to resolve the host, while e.g. Linux reports a
resolution failure = immediately.

What = does /etc/resolv.conf look like on the FreeBSD = VM?

Just a comment and a = name server line:

$ cat /etc/resolv.conf
# = Generated by resolvconf
nameserver = 192.168.122.1
= --Apple-Mail=_ABE8E1E7-5527-4C1F-88D6-08A485B4B25D--