Installing HAOS in a VM on TrueNAS SCALE

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:

  1. 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

  2. In TrueNAS Scale, go to Virtualization → VM → Devices

  3. Add

  4. 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)
      image
  5. this is what my thing ended up looking like:

  6. 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).
    image

  7. Then Start it.
    image

  8. profit
    image

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 :slight_smile:
unfortunately, when i was running the ls /dev/serial* command through TNS’s Shell, it wasn’t outputting anything anymore for some reason.

image
super annoying.

so, if for some reason you’re seeing something like that (e.g., nothing?), then do this:

ls /dev/serial/by-id
image

ls /dev/serial/by-path
image

ta-da! now I (& maybe one of you?) will know what to passthrough again!

6 Likes