your script is really, really cool. i’m really new to TNS (and kinda new to HA now that i think about it)…
anyway, i i kinda stumbled on a way to do it without having to use a script. disclaimer: i don’t really know how i would’ve even gotten a script to run in TrueNAS Scale…i barely understand SSH to begin with
anyway, here’s what I did:
-
in the TrueNAS Scale shell, run:
ls /dev/serial*
note the output at the bottom: pci-000…
*if you aren’t seeing something like the above, see edit below -
In TrueNAS Scale, go to Virtualization → VM → Devices
-
Add
-
select: Type: PCI Passthrough Device
From the PCI Passthrough Device, pick the one you noted earlier (will probably be something different for you, but here’s what it looked like for me)
- Not sure if the order number (1002, 1003, 04, etc.) matters.
- If it does, try setting the Conbee to start up before the DISK
(note: I tried both ways, it didn’t matter for me either way)
-
this is what my thing ended up looking like:
-
This next part is really important:
Power Off the VM (don’t just Restart it via HA, actually shut it down from TrueNAS Scale’s VM management portal).
-
Then Start it.
-
profit
edit:
i pulled a graphics card out of the machine that i wasn’t going to be using on there anymore and the ConBee passthrough broke. fortunately, i documented what i had to do to get it working
unfortunately, when i was running the ls /dev/serial*
command through TNS’s Shell, it wasn’t outputting anything anymore for some reason.
super annoying.
so, if for some reason you’re seeing something like that (e.g., nothing?), then do this:
ls /dev/serial/by-id
ls /dev/serial/by-path
ta-da! now I (& maybe one of you?) will know what to passthrough again!