On 26 октября 2026 г., 22:50:02 you wrote:

> On 26.10.26 09:37, Anthony Pankov wrote:
>> Sunday, October 25, 2026, 6:48:01 PM, you wrote:
>>
>>> On Sun, Oct 25, 2026, at 4:22 AM, Anthony Pankov wrote:
>>>> Hello,
>>>>
>>>> I have a relatively successful experience using bhyve (vm-bhyve) ina jail.
>>>> But now I've tried passthru and have a problem.
>>>>
>>>> `vm passthru` gives:
>>>>
>>>> ppt0       10/0/3       Yes          Renoir/Cezanne USB 3.1
>>>>
>>>> bhyve options are
>>>>
>>>> 2026-10-25T01:03:27+03:00:  [bhyve options: -c 3,sockets=1,cores=3 -m
>>>> 8G -AHPw -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -U
>>>> 14871da2-cb40-11f1-bb60-9c6b001093aa -u -S]
>>>> 2026-10-25T01:03:27+03:00:  [bhyve devices: -s 0,hostbridge -s 31,lpc
>>>> -s 0:4:0,virtio-blk,/dev/zvol/genezis/img/dsk.winap -s
>>>> 0:5:0,passthru,10/0/3 -s 0:6:0,fbuf,tcp=0.0.0.0:5900,w=1024,h=768,wait]
>>>>
>>>> and bhyve startup failed with an error:
>>>>
>>>> bhyve: PCI device at 10/0/3 is not using the ppt(4) driver
>>>> Device emulation initialization error: Device busy
>>>>
>>>> Is this a conceptual constraints or am I doing something wrong?
>>>>
>>> I don't believe there are any real reasons you couldn't use ppt to pass 
>>> through a PCIe USB controller - my first guess is that "Device busy" here 
>>> is because it hasn't been detached from the host system (the BAR can't be 
>>> mapped twice and so forth)
>> I don't sure what to check. May you advice here?
>>
>> My thoughts was that there is  something wrong in a /dev in a jail that 
>> prevent bhyve passthru.

> To use passthru you need access to the necessary device nodes. You'll have to 
> add a devfs ruleset and unhide exactly what is needed in the jail. There is 
> no special tooling to make it easy to use so it's a bit fiddly to figure out 
> which devices to pass through, but truss and dtrace will get get the job done.

Devfs rules allow all in this jail (I hope). Bhyve startup (accessing /dev/vmm) 
is an evidence that devfs rules worked for this jail.



-- 
Best regards,
 Anthony Pankov                          mailto:[email protected]


Reply via email to