From nobody Sat Mar 28 09:22:00 2026 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 4fjXBh6r4Mz6WCl8 for ; Sat, 28 Mar 2026 09:23:56 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 4fjXBh3Xv0z4Hjt for ; Sat, 28 Mar 2026 09:23:56 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b982518b73fso464112366b.1 for ; Sat, 28 Mar 2026 02:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774689830; x=1775294630; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=C9HVRu6nJXYe8exEQP+dMA6Pp9/0hRYFh5razImZF1I=; b=UF9Uz3JjGO7b+9AIhqHuXQIIebH4OBQqnqL0SriUPsFBaAdYdwzpBAj9TI5JiWEi0r X8yMfLQqevqXAEC8LKJNL8Mw29voQYu410HyEKZf5q+fE2LqNaM3Actc6YBDMncL+CMW BXo/RvzCghz+7EQ+kyAUL1P6GA8Iru239xHaT6FinXWLJCYbvp90PumkJONB/pPj3F3T ph9cf2IeqQJE/RGLHIdZyr3XRH9B+oA16/uZnNIQXOacwVNYjj1pYfrE/pXJYcPoA5IB yAgxFWprrZyiO6f7bIS8DBR8ObZa+y/1an1YXHSNjU7PHeZEA1e2Bpvc431Ld+TXWGo0 rzLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774689830; x=1775294630; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=C9HVRu6nJXYe8exEQP+dMA6Pp9/0hRYFh5razImZF1I=; b=Y6jXpTzcsvD/+v5cOs/Uqw51iqRKXXcsuXBMq0PQxe2HHfpK0ZnS7NNoHb4W9bIAe0 4/4g/fF4mpgdhGvOoEoWlHKQ/iqUJUQHtyYZ85LP3kJurtcqMNoCwngKZyrMK+XL1vLl eGPTZGPANt5R7zcXW3lV+vM0pkhspkjIqkaOK6Bgpm4ZLtX8Lm4DV/Ev1I6lfHCKS84j EZxGil3jOs0i3omSNr3d5D/kPXkX7B8+tVUaM+Rm1UiZcowzCSghInn8T38Ki0q1oPT9 z+TnweVG+oOq5nqVcibNw2/ORglK0LhXxiDh6RgWZs9mx3auGuFXqIGQMMMpYs6ceDhw dg4w== X-Gm-Message-State: AOJu0YwxlCcdGdQyCvTgQ5zbZbjH/5IWJDidFnxPpS/Mb34J/FwFHmL8 KeF/E+30DVSFeKlZLIlpcCyCueQdkstzvhswciePDmoLU9VR4Stkczj2 X-Gm-Gg: ATEYQzxCb7Gl3HAaNKOgy8xoZ5WiPKMOan6T+6hlw4b+fadNSaSy51q88yKfn57FRe6 j3KkJfh7URrmvnB5OxBggzdk7xuKYKqxIvLo3EqaPhi/FKopJH6DKhKxMZ4uHMyLHwzm+wHypJo nxH1B+tFrp079/PIiyG2gA3UHNsr5ODBM4ZIlCPzYq5DfNm1FNAYHnUhJBV5I2qisKAKgv7/5ra 6MxI/QXcNFU5BLi/6WVAy6vvcHcGUjDAFEX8MAodcP2nc74WfCePIJRmLjtNo+vrEr405qV1rt5 A5PNWZjZOwvRqZvRCimYSr6Z8zqyd3jiwWpG3TedrXAJDtvUQXA6EmdPOeUThsHngvy328AozXR gLBimyOilTYEy0p/KA9NU1txskacWFViKEGCBiEuuMFyTi5cVyOM0EWfsgrxMABoDtKxnQUyvDJ EBbH5+nQKfVNNPTbAHHZVApUx3+TNSw236Xj4sZNn6bgK8yjpwityeJWhcTTxb6PRA2aELbVFLb tuSZY6s6u7iEH+zco8= X-Received: by 2002:a17:907:1c25:b0:b94:a1d4:ceff with SMTP id a640c23a62f3a-b9b508f62efmr332052766b.35.1774689829711; Sat, 28 Mar 2026 02:23:49 -0700 (PDT) Received: from tulp (2001-1c02-1a15-3000-ee82-4536-a8f2-9e22.cable.dynamic.v6.ziggo.nl. [2001:1c02:1a15:3000:ee82:4536:a8f2:9e22]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9b7ae52064sm56593966b.23.2026.03.28.02.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Mar 2026 02:23:49 -0700 (PDT) Date: Sat, 28 Mar 2026 10:22:00 +0100 From: Roman Bogorodskiy To: Mark Johnston Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve(load) does not start in jail on -CURRENT Message-ID: 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-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:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4fjXBh3Xv0z4Hjt X-Spamd-Bar: ---- Mark Johnston wrote: > On Fri, Mar 27, 2026 at 06:35:16PM +0100, Roman Bogorodskiy wrote: > > Hi, > > > > I'm using jails to run some tests with bhyve and this setup works for me > > with 15.0-RELEASE, but does not with 16.0-CURRENT. > > > > The setup is as follows: > > > > jail.conf: > > > > testrunnergit { > > enforce_statfs = 2; > > devfs_ruleset = 44; > > exec.clean; > > exec.consolelog = /var/log/bastille/testrunnergit_console.log; > > exec.start = '/bin/sh /etc/rc'; > > exec.stop = '/bin/sh /etc/rc.shutdown'; > > host.hostname = testrunnergit; > > mount.devfs; > > mount.fstab = /usr/local/bastille/jails/testrunnergit/fstab; > > path = /usr/local/bastille/jails/testrunnergit/root; > > osrelease = 16.0-CURRENT; > > > > vnet; > > vnet.interface = e0b_bastille1; > > exec.prestart += "jib addm bastille1 vtnet0"; > > exec.prestart += "ifconfig e0a_bastille1 description \"vnet0 host interface for Bastille jail testrunnergit\""; > > exec.poststop += "ifconfig e0a_bastille1 destroy"; > > allow.chflags = 1; > > allow.raw_sockets = 1; > > allow.vmm = 1; > > allow.mount; > > allow.mount.devfs; > > allow.mount.fdescfs; > > allow.mount.procfs; > > mount.fdescfs; > > mount.procfs; > > } > > > > When I try to run bhyveload: > > > > root@testrunnergit:~ # bhyveload -m 1024 -d /var/cache/libvirt-tck/os-x86_64-hvm/disk-freebsd-11.1.img tck32424 > > bhyveload: vm_create: Operation not permitted (An unprivileged user must run VMs in monitor mode) > > root@testrunnergit:~ # > > > > root@freebsd16-current:~ # jls -j testrunnergit allow.vmm > > true > > root@freebsd16-current:~ # devfs -m /usr/local/bastille/jails/testrunnergit/root/dev rule show > > 100 include 4 > > 200 path vmmctl unhide > > 300 path vmm unhide > > 400 path vmm/* unhide > > 500 path tap* unhide > > 600 path mem unhide > > 700 path kmem unhide > > 800 path nmdm* unhide > > 900 path pci unhide > > 1000 path io unhide > > 1100 path pf unhide > > root@freebsd16-current:~ # > > > > Am I missing anything? > > I think this is a regression. Could you please try the patch here? > https://reviews.freebsd.org/D56119 Yes, this patch fixes it for me. Thanks, Roman