From nobody Thu Jun 20 23:20:11 2024 X-Original-To: freebsd-questions@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 4W4xLS055vz5Nxfj for ; Thu, 20 Jun 2024 23:20:48 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resdmta-c2p-566138.sys.comcast.net (resdmta-c2p-566138.sys.comcast.net [IPv6:2001:558:fd00:56::e]) (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 4W4xLR2nkqz4JR7 for ; Thu, 20 Jun 2024 23:20:47 +0000 (UTC) (envelope-from ararslan@comcast.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b=QxRVvQG6; dmarc=pass (policy=none) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of ararslan@comcast.net designates 2001:558:fd00:56::e as permitted sender) smtp.mailfrom=ararslan@comcast.net Received: from resomta-c2p-555482.sys.comcast.net ([96.102.18.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resdmta-c2p-566138.sys.comcast.net with ESMTPS id KQgesPzzo5wfbKR5BsZiqI; Thu, 20 Jun 2024 23:20:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1718925645; bh=yXOr6dbAXxBjQgtaP9pochQGg+4BOTF8x1wyjldn9x4=; h=Received:Received:From:Content-Type:Mime-Version:Subject: Message-Id:Date:To:Xfinity-Spam-Result; b=QxRVvQG6P1a6YR+eDhMn4gIN84ms6JCtUr7AfroAce6GLrz6xt+Q7LZ1+YbJ7sge3 iL9aopOd+DEU7lGqeHsCPynX/D6CB3Wfk3kD95X7k9Vj9J9e04TuICali9liVnxF2L aW5VE8VNWeiFvXjINN4Pkn2it8zi3b14Hn6+RnROYa0+DglzuDdE9kk6E06wW+d5SG 5Mj/2lTVK0aMH1ThDmMbj9cGrBHdJFgmyc+DR3l2iDYTkN9VzvHJ4/l5oKxQcsQ+9D IsgOTE0vFqbPBWdh3YkuXHNOF2wQVp1UZuViivaKVlre+Ejlj/5bwR2oRXHiTHVUtd RG1476Xj7p0eA== 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-555482.sys.comcast.net with ESMTPSA id KR4osJv81Xf9zKR4osndpV; Thu, 20 Jun 2024 23:20:23 +0000 From: Alex Arslan Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Diagnosing virtual machine network issues Message-Id: Date: Thu, 20 Jun 2024 16:20:11 -0700 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3774.600.62) X-CMAE-Envelope: MS4xfOFCH86w/rrWjQD6HKDZTpMhQcCb1yHPg+FYFAxyMxzozMStXENG3r5g4A1jgK/vHPXqtkG4TWMR8g6rOAFbeInr4tk6D3EL1pSR/1kzawA+WEIEiWHM 6W63v1nfmfNfKcjRTHXytCM6mpr7I5QxjE2GdvL44u0G5Majo8YS0F6glKqcwVdiNRd8D5UvCpuwwEvfSrtnrmc5SDMQTNoOxmI= X-Spamd-Bar: / X-Spamd-Result: default: False [-1.00 / 15.00]; HFILTER_HELO_5(3.00)[resdmta-c2p-566138.sys.comcast.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,none]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fd00:56::/64:c]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[comcast.net]; FREEMAIL_FROM(0.00)[comcast.net]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[comcast.net:dkim]; 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-questions@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2001:558:fd00:56::e:from] X-Rspamd-Queue-Id: 4W4xLR2nkqz4JR7 Hello, 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=