From nobody Thu Jun 19 16:50:18 2025 X-Original-To: freebsd-virtualization@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 4bNRVS4T2vz5ytkP for ; Thu, 19 Jun 2025 16:52:32 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNRVR6FVwz3Rw9 for ; Thu, 19 Jun 2025 16:52:31 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q+Zwz9sJ; spf=pass (mx1.freebsd.org: domain of bogorodskiy@gmail.com designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=bogorodskiy@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-60780d74c8cso1527267a12.2 for ; Thu, 19 Jun 2025 09:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750351944; x=1750956744; darn=freebsd.org; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=UQQHEJROepFkGF3G2+pQxpMLsHyT6hPPA1eBNpWKHOQ=; b=Q+Zwz9sJ5ih3Gd+0zGWlMsLyfsjV0gwfUvoiARn+JSn90MaGXT1E5ZGbC6k7XjOJGQ 9QkOSH/ldBSeW8bIrCGmPRSogWeEO9TblnIaNr3I9NrfgyJUtmLhihCn/60Rf3EckOeE PAY8WHb9K3rNVo17EKuK1LxQxu/Jw047rzSYgxGvpwasqH7DXFIp0ci4lq3VglkbypmM DL/9+1w3bCj6a9JYeYiuncW5NnT9km4QKG/gCb1zslEvi6EpxxtFTYHVRyQuLH2+cXTq NW/+R8nPDSM+ABsHMIuMpsL1g+RoxUkrzPjKutnhL7aaAYmPWzcsqMB5TLoOzdbXs8OH vkdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750351944; x=1750956744; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UQQHEJROepFkGF3G2+pQxpMLsHyT6hPPA1eBNpWKHOQ=; b=OhUad76Q907nKS76A6gmCe/ntLAHNv+SCQ1i902t1FL4nMs00J4vf1ZYztThRG6QX9 EYZIXAkmZBYgKbe2EJqVCtQL+KG1sbdZtw6KMzFOLPo3K+auZJHmzt1nZTwhUG0kBGZM uXYF01gTPROgtqOiQJKwfksgQ5RFQYM5x26cqZ3+fNizyAUPItLkZrGexoROzeTQJJxn Cw2nMEwn7VTOl6WzlG+J/PTQ9XWNGNlLiTeCT/QY33Kzo8HDX4cxqb6EksPM+EJ9j7OA 7fy6okt0e9wAmIhygLP2aHGY/0KmjbFhkqDKJhofCj+3cfViPmUFMFuFAsGqlU0Nh4SU qrtQ== X-Gm-Message-State: AOJu0YzBXjE8Jbgv4xxV/HvUI9heGcMcDN8ogZRJOrCPwRxidLWUNM6O okWixeeKTmq2JPE31Qjtq3lWddUQzgRA+Oie8JiLrnIWejFYpBN6s6T//zOokEteYKS7FA== X-Gm-Gg: ASbGncsH9zyRQ6d/9j2gYgxi7l1BQ1vITH+yWSfrJ7uo2Hk0kA5hBfJJ6WzwhbooPyt ZDBgLSAGCMg5vRFwE89camoRaqUvIE8qV+rTyJndi4kK09prs5fzq56dHgjhBtayfrj2XapJG4V czGmBJBBCB+eB67q8AkABe1G6S0GWVK+HF6iDphPGAyO4fToxe4SIqfSCSRdc3hjzHqPiHNZS11 TRo1IAH3VsWtb5qghYcGnWOzoFqkPcdKBhOLYcA6PfwvxnSEiUrw6UEj2qngWz/NtQP4Iz9orWH wKSWCN3cFcJZuRfbxi5QehA8zVnFzD62KiLrEZS/1pAkXC7xt9oYEgi9USHL5U+l9g9iDCD/aKU NXFmGvOQVd0xMqf4b X-Google-Smtp-Source: AGHT+IGtZwypefxM4RtrUZOqou8zpL3Ak4MriYY8gQnMa7IjFSiPPpvLJtKnH/6GO6PM1lFRRfcToA== X-Received: by 2002:a05:6402:2351:b0:608:48b0:5e88 with SMTP id 4fb4d7f45d1cf-608d0947f2dmr21105158a12.18.1750351944046; Thu, 19 Jun 2025 09:52:24 -0700 (PDT) Received: from tulp (80-115-115-199.cable.dynamic.v4.ziggo.nl. [80.115.115.199]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-60a18c9482asm169184a12.41.2025.06.19.09.52.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 09:52:23 -0700 (PDT) Date: Thu, 19 Jun 2025 18:50:18 +0200 From: Roman Bogorodskiy To: freebsd-virtualization@freebsd.org Subject: bhyve: detecting TCP console support Message-ID: List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [1.24 / 15.00]; NEURAL_HAM_SHORT(-0.97)[-0.971]; NEURAL_SPAM_MEDIUM(0.97)[0.965]; NEURAL_SPAM_LONG(0.85)[0.849]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[novel@freebsd.org,bogorodskiy@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[novel@freebsd.org,bogorodskiy@gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52d:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DOM_EQ_FROM_DOM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bNRVR6FVwz3Rw9 X-Spamd-Bar: + Hi, Is there a way to check if the given bhyve binary supports tcp console, such as "... -l com1,tcp="? I've been using various workarounds to detect bhyve features for quite some time, including parsing of the "bhyve -h" output or running "bhyve -s 0," and see if reports unknown device etc, but apparently none of that works for the tcp console. Am I missing something or is it really not possible? Thanks, Roman From nobody Fri Jun 20 01:47:34 2025 X-Original-To: freebsd-virtualization@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 4bNgMy1d7dz5yHP3 for ; Fri, 20 Jun 2025 01:47:42 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNgMx4FLpz3x8m; Fri, 20 Jun 2025 01:47:41 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Authentication-Results: mx1.freebsd.org; none Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 55K1lYWg086996 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Jun 2025 18:47:34 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 55K1lYjT086994; Thu, 19 Jun 2025 18:47:34 -0700 (PDT) (envelope-from jmg) Date: Thu, 19 Jun 2025 18:47:34 -0700 From: John-Mark Gurney To: Roman Bogorodskiy Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve: detecting TCP console support Message-ID: <20250620014734.GC4297@funkthat.com> References: List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Thu, 19 Jun 2025 18:47:34 -0700 (PDT) X-Rspamd-Queue-Id: 4bNgMx4FLpz3x8m 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:32354, ipnet:208.87.223.0/24, country:US] Roman Bogorodskiy wrote this message on Thu, Jun 19, 2025 at 18:50 +0200: > Hi, > > Is there a way to check if the given bhyve binary supports tcp console, > such as "... -l com1,tcp="? > > I've been using various workarounds to detect bhyve features for quite > some time, including parsing of the "bhyve -h" output or running "bhyve > -s 0," and see if reports unknown device etc, but apparently none > of that works for the tcp console. > > Am I missing something or is it really not possible? Likely the current best way is to use `uname -U`, and have a table to check which version the feature was added. Less than ideal, in that you'll have to dig that info up, but not entirely terribly hard to do. Use git blame to figure out commit hash when a feature was added, then use: git show :sys/sys/param.h | grep __FreeBSD_version to fetch it. Annoyingly, this will may need to be done for each stable branch as features are backported. This obviously doesn't solve the problem where someone in place upgraded bhyve, but that shouldn't be common, and if they did that, they should know that they might break things. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."