| raw e-mail | index | archive | help
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=<tcpconf>"? > > 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,<dev>" 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 <rev>: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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>