Closed sjorge closed 3 years ago
Reopened here, as the zone config for the broken zone is:
device:
match: /dev/ppt1
Which is correct, so it's not zadm not generating it correctly.
root@jupiter:/usr/lib/brand/bhyve# diff -u boot.orig boot
--- boot.orig Sun Jul 4 13:47:44 2021
+++ boot Sun Jul 4 13:47:53 2021
@@ -370,8 +370,8 @@
k = int(m.group(1))
if ppt == 0:
args.append('-S')
- args.extend(['-s', '{0}:{1},passthru,/dev/ppt{1}'.format(
- PPT_SLOT, k)])
+ args.extend(['-s', '{0}:{1},passthru,/dev/ppt{2}'.format(
+ PPT_SLOT, ppt, k)])
ppt += 1
# RNG
Should fix it, let me do some tests
While waiting on the freeradius package I started looking at some other things on my TODO list... I setup 2 VMs with bhyve that each get a USB controller.
However on the VM with ppt0 sees the actual device.
zadm configuration
ppt devices
resulted bhyve.cfg's
And here we see our problem! The non working VM has:
There is nothing in function 0 (
0.9.0
) so bhyve ignores this device as it always needs to start at function 0.