Hi! I've recently migrated to TrueNAS Scale (away from Proxmox, just for a homelab server). I own a ConBee II USB stick used to control ZigBee devices (lights, wall plugs etc). The management software used to be in one of my VMs, which I've migrated recently. I've been trying to set up a passthrough for USB stick, however there seems to be no option for that in the UI (only PCI devices).
I went ahead and used `virsh edit <vm_name>`. I've added the following code:
and called `virsh start <vm_name>`. All was well, until I had to restart the VM using the web UI. Once the VM was started, the XML went missing from the VM dump, USB device was gone and so were my hopes and dreams.
I'm wondering what the reason behind re-generating the VM config is or whether there's a way to avoid it?
Thanks!
I went ahead and used `virsh edit <vm_name>`. I've added the following code:
Code:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x1cf1'/> <product id='0x0030'/> </source> <address type='usb' bus='0' port='1'/> </hostdev>
and called `virsh start <vm_name>`. All was well, until I had to restart the VM using the web UI. Once the VM was started, the XML went missing from the VM dump, USB device was gone and so were my hopes and dreams.
I'm wondering what the reason behind re-generating the VM config is or whether there's a way to avoid it?
Thanks!