From nobody Sat Mar 28 08:42:28 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 4fjWH64hbwz6W7vw for ; Sat, 28 Mar 2026 08:42:42 +0000 (UTC) (envelope-from markj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fjWH648xhz49jj; Sat, 28 Mar 2026 08:42:42 +0000 (UTC) (envelope-from markj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774687362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vgTIG6GA6WpePbHj0E6bQZkpjMPnAAoa791qQN/tQao=; b=TA2p4J5rtpwm/JexCvEmR1x4hq76qMS6ZpNMHlWTsSG07ttqtVqIBObGKQWG1iePQtciEq YLqERJWsnwc04l1hpMoX0kGnPHAr45/678HuAUj7R69t+bw+pD8D6WvZj+ffIW0UbNy3Mn Xl7U/Q+11xt9/uPXB81kPCxjCvVpcmiVTYAmdbBpA87OS1Vkwo6whdp3ZDUFfKdja3P9VU 8rCnrwwBq1zv7rhMS3UHJPxlGr+SNVhdX8kDIy0BuubtP2czx8tUyVZbgROdIfJMRa4vbf N/94DUWzGmLqVZ/WmPEwnXAC0vUoFBwcvlBMfPv0QSOnh5Qp8tDhFv79ky5/rA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774687362; a=rsa-sha256; cv=none; b=AJJh3PuoNKpm/bA2Wl1CVgyR7fyznrx92++Bw0CAlFv32z5ANqIz2sGLTFau/ivZWMXpIs NK9xNBIdxz3S6z1GOcuTfyqxvyQosaaUPmdYTaWZGAJXHq9EaWAndwpKWB86YDw4kl8DsV YhBay1FNwdl/U3D7ABTdKvFcpoEl2DeTH7zMwRx4LO10Q8mj2+rUntZM6wl/emoL62xW2C 588LEBWCfGOf1xcZ4LOO73DiSBvI8VQGdjVhRHPOKJ8n4fqg+iFwfRqQLA0wxT2h9WWHeP AU2sRDBUXRS1KVkc1rCDDyYr006UEOijSQ38RyM+iBfs1iS7fU5EViB1Cbglsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774687362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vgTIG6GA6WpePbHj0E6bQZkpjMPnAAoa791qQN/tQao=; b=o0WLikNPu2U5W9WYEzzs+6WE2cGyLA9dPv4iulStP+lK21SG8bntJ9lOCaxdY4InVuVzAh McaILiQKII+x/GHu1JUYgZALQ1D7SSNV/UCpaxNovVH/asYoRZi28xG+uXo9PHo/OVUrJV Pzmh29cPluUf61MnAYR2zyaNDOD6dSZiUdlQoB/txyrgEpNVZPhHV2uQQQgKJ0P+d7YqjS ocAP4y0ir1derETDXv22NHEcbvrC8fMNMO+fM0P+MLqbWvJ+vJioWPd/SMyS05+7B/vQjo doYAz4lHLsancp1ZAf9Ykf4r0TvyBqzdfot9FPtBf/798RO0ZL9QZWnstiZPOQ== Received: from framework (218-161-101-195.hinet-ip.hinet.net [218.161.101.195]) (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) (Authenticated sender: markj) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fjWH548Ghz81D; Sat, 28 Mar 2026 08:42:41 +0000 (UTC) (envelope-from markj@freebsd.org) Date: Sat, 28 Mar 2026 04:42:28 -0400 From: Mark Johnston To: Roman Bogorodskiy 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: 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