bhyve bhyve inside jail

Hello ,

I want to try running bhyve inside a jail to make my host more slim.

My work is based on this tutorial https://github.com/lattera/articles/blob/master/freebsd/2018-10-27_jailed_bhyve/article.md

Sadly I could not get it running . Even if I try to start the vm via bhyve bhyve loader directly without vm it is not working. The errors are always the same .


root@bhyve:/home/sharky/vm # bhyveload -m1G -d /home/sharky/vm/.iso/FreeBSD-13.0-RELEASE-amd64-disc1.iso freebsd-vm
vm_create: Operation not permitted

How can I move forward ?

I think I have to tweak a sysctl value , but I don't which I have to set... . Any recommendations which man pages I should read ?

best regards, sebastian
 
Code:
     allow.vmm
             The jail may access vmm(4).  This flag is only available when the
             vmm(4) kernel module is loaded.
You probably also need to have a look at the devfs.rules(5). Jails typically have limited access to various devices.
 
Back
Top