From nobody Fri Jun 28 15:53:36 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 4W9g3Z35Nxz5Nm3Q for ; Fri, 28 Jun 2024 15:54:18 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resqmta-a2p-658917.sys.comcast.net (resqmta-a2p-658917.sys.comcast.net [IPv6:2001:558:fd01:2bb4::3]) (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 4W9g3X56ZYz4VCX for ; Fri, 28 Jun 2024 15:54:16 +0000 (UTC) (envelope-from ararslan@comcast.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b=f4Fijlob; dmarc=pass (policy=none) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of ararslan@comcast.net designates 2001:558:fd01:2bb4::3 as permitted sender) smtp.mailfrom=ararslan@comcast.net Received: from resomta-a2p-647654.sys.comcast.net ([96.103.145.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-a2p-658917.sys.comcast.net with ESMTPS id NCYzsuthnNvD7NDvMsWQc5; Fri, 28 Jun 2024 15:54:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1719590048; bh=XcHLrnP3mQ5TXh1k0QwzJL1ibm3GZGe1RVOrqvvbDkw=; h=Received:Received:From:Content-Type:Mime-Version:Subject: Message-Id:Date:To:Xfinity-Spam-Result; b=f4FijlobZ4csjq0VrxwJkv2UNhJLXQDs2c7LBmJnNUfXKpTp3cFJVVgGCEM3rr0rR IySaqzKEox1aeRH6w5rfWLX0WOC8Znqutijw1dMM7ixS7E+sqmKM1XX7ieq4fmwKeN rsai6lNRO81jBvGBJ61lc/kgdW7GxS1dBZIOHQ4ZmNEWgRpEcG4HaKN7qcG1QTUH2U tKJ6SiSRcenoXN1WwDqOhpYXMKoQyBcYKaAvrhX+RT60zNckmTETdE5to8k681ENlQ Mi2Dohnnug8aYWegtlAAJ/G7p66NzgtEAoWo8L1aJIub3OgxcSn/joCVJSEte1Jy6l oeWQVHZCSv9og== 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-a2p-647654.sys.comcast.net with ESMTPSA id NDv0sTEaziPPSNDv1s9nGN; Fri, 28 Jun 2024 15:53:47 +0000 From: Alex Arslan Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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: Diagnosing virtual machine network issues Message-Id: Date: Fri, 28 Jun 2024 08:53:36 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3774.600.62) X-CMAE-Envelope: MS4xfD2iY8r94WkdJH8e2Gul4lwMsss7IOSir1Zvs4lokygeX9xSuyREfa6BrK3XspSJnIZ2v9bDW+PrCUS59j8aD498Cv8u2oYinTGLx+jJ5DNfE9czAzvz /2JGz5dUCmqUA3qR3HkU1XUQofM+r2uklVup26CyFYhZ04rlUxTFDJPguHP3YLhe4XadMEglw9NZ1uFulnEMr3mR/OYJjHvzDIo= X-Spamd-Bar: / X-Spamd-Result: default: False [-0.93 / 15.00]; HFILTER_HELO_5(3.00)[resqmta-a2p-658917.sys.comcast.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.932]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,none]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fd01:2bb4::/64]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[comcast.net]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; FREEMAIL_ENVFROM(0.00)[comcast.net]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[comcast.net:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[comcast.net:dkim] X-Rspamd-Queue-Id: 4W9g3X56ZYz4VCX Hello, I originally posted the following to freebsd-questions but was = encouraged to repost here instead. I work on the Julia language (https://julialang.org) and am the de facto maintainer of its FreeBSD support. Our continuous integration runs jobs = in FreeBSD 13.2 AMD64 virtual machines with KVM on Linux. This same Linux machine also runs Windows jobs in VMs with KVM as well as Linux jobs = using a custom sandboxing setup. We've noticed a number of network-related issues that only occur on the FreeBSD VMs and cause tests to fail. Currently we reliably see a test failure that expects a host resolution failure via libcurl from https://domain.invalid but on the FreeBSD VMs we instead get a timeout. Previously we've also seen timeouts when making requests to httpbingo and GitHub. However, I've never been able to reproduce any of these test failures, which makes me suspect there's an issue with how we've set up networking for the VMs. Can anybody provide guidance for how to determine what, if anything, = could be misconfigured? I apologize for the vagueness of this question; I'm = not really familiar with anything networking- or virtualization-related, so I'm not sure what information would be helpful to include here. The complete setup lives in = https://github.com/JuliaCI/sandboxed-buildkite-agent in the freebsd-kvm directory. In base-image/freebsd13.pkr.hcl [1], which uses Packer to build a base qcow2 image, we set net_device =3D = "virtio-net". In buildkite-worker/kvm_machine.xml.template [2], we set the target = device to vnet0 with bridge virbr0. Thank you very much for your time! Best, Alex [1]: = https://github.com/JuliaCI/sandboxed-buildkite-agent/blob/main/freebsd-kvm= /base-image/freebsd13.pkr.hcl [2]: = https://github.com/JuliaCI/sandboxed-buildkite-agent/blob/main/freebsd-kvm= /buildkite-worker/kvm_machine.xml.template=