The jail follows the following config:
With the devfs rules:
The jail was setup with
And then setup the vm as in the handbook (but without network) running inside the jail
I got a error of:
Trying the alternative of running directly with
Gives me the error:
Code:
acme {
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
allow.mount;
allow.mount.devfs;
allow.raw_sockets;
allow.vmm;
enforce_statfs = 2;
securelevel = 2;
exec.clean;
mount.devfs;
devfs_ruleset = 25;
path = "/jails/${name}";
host.hostname = "${name}";
}
Code:
[devfs_rules_bhyve_jail=25]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path vmm unhide
add path vmm/* unhide
add path vmm.io unhide
add path vmm.io/* unhide
add path tap* unhide
add path nmdm* unhide
Code:
bsdinstall jail /jails/acme
service jail start acme
pkg -j acme install bhyve-firmware
Code:
cd /root
truncate -s 16G guest.img
fetch https://download.freebsd.org/releases/ISO-IMAGES/15.1/FreeBSD-15.1-RELEASE-amd64-bootonly.iso
sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 1024M -d guest.img \
-i -I FreeBSD-15.1-RELEASE-amd64-bootonly.iso guestname
Code:
Launching virtual machine "guestname" ...
bhyveload: vm_create: No such file or directory
bhyve as follows:
Code:
bhyve -D -H -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd example
Code:
bhyve: vm_openf: No such file or directory