August 14, 20223 yr Author 13 minutes ago, aim60 said: virsh change-media seems to work for changing the iso in a cdrom drive that has been pre-defined in the VM. I was thinking of USB Manager creating virtual usb ports with associated iso or vdisk files. They could be hot-plugged into the VM as usb devices with VM Attach/Detach. The advantage of implementing this in USB Manager is that commonly used iso or vdisk "ports" could be pre-defined, and switched between VMs as desired. The advantage of implementing hot-plug in VM Manager is that not everyone has discovered this plugin. Are you talking about Libvirt hotplug plugin or my hot plug as part of USB Manager. But will look into it. Would need to make sure no conflict with UD also.
August 14, 20223 yr Author 7 hours ago, aim60 said: virsh change-media seems to work for changing the iso in a cdrom drive that has been pre-defined in the VM. I was thinking of USB Manager creating virtual usb ports with associated iso or vdisk files. They could be hot-plugged into the VM as usb devices with VM Attach/Detach. The advantage of implementing this in USB Manager is that commonly used iso or vdisk "ports" could be pre-defined, and switched between VMs as desired. The advantage of implementing hot-plug in VM Manager is that not everyone has discovered this plugin. Found that I can add vdisks dynamically, Not been able to get iso to work as yet , unless you know the commands. root@computenode:~# virsh attach-disk "Windows 10 test4" --targetbus usb --source /tmp/test.img --target hda Disk attached successfully root@computenode:~# virsh detach-disk "Windows 10 test4" --target hda Disk detached successfully root@computenode:~# virsh attach-disk "Windows 10 test4" --targetbus usb --source /tmp/test.img --target hda Disk attached successfully root@computenode:~# Edited August 14, 20223 yr by SimonF
August 14, 20223 yr 8 hours ago, SimonF said: Are you talking about Libvirt hotplug plugin or my hot plug as part of USB Manager Thanks for the screenshot. Never noticed the USB Manager Hotplug section on the VMs page. Since discovering that with USB Manager, I can use both of my licensed flash drives (with the same vendor id) at the same time, I haven't gone back to Libvirt hotplug. I found this, https://gitlab.com/libvirt/libvirt/-/issues/261 It looks like the hotplug cdrom on a usb bus was never implemented. There was a commit 3 weeks ago. Since cdroms are read-only, there might not be a conflict with ud. And ud doesn't currently mount vdisks, although it would be a useful feature. Think about a usb mounted vdisk as a virtual external hard drive. It could be plugged into any vm, and with ud enhancement, could be mounted on the host. Not every vm has network access to the host. Edited August 14, 20223 yr by aim60
August 15, 20223 yr Installed plugin and getting the following error show up in Unraid GUI (below the menu bar): Warning: parse_ini_file(/tmp/usb_manager/config/usb_manager.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/PageBuilder.php(58) : eval()'d code on line 1 Thoughts?
August 15, 20223 yr Author 3 hours ago, autumnwalker said: Installed plugin and getting the following error show up in Unraid GUI (below the menu bar): Warning: parse_ini_file(/tmp/usb_manager/config/usb_manager.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/PageBuilder.php(58) : eval()'d code on line 1 Thoughts? Have you tried removing and re-installing. I remove all the config and reinstalled no issue on my machine. Does the directory exist? ls /tmp/usb_manager/config/
August 19, 20223 yr Is it possible to hide the menu item "USB" that is very intrusive between MAIN and SHARES and instead put it in settings or tools? (maybe make this an optional setting?)
August 19, 20223 yr Author 7 hours ago, NLS said: Is it possible to hide the menu item "USB" that is very intrusive between MAIN and SHARES and instead put it in settings or tools? (maybe make this an optional setting?) Will look to see if I can make as an option.
August 20, 20223 yr Author On 8/19/2022 at 9:50 AM, NLS said: Is it possible to hide the menu item "USB" that is very intrusive between MAIN and SHARES and instead put it in settings or tools? (maybe make this an optional setting?) Option added in 2022.08.20
August 20, 20223 yr Author 53 minutes ago, NLS said: I guess not released yet. "Any minute now"? Was released about 2 hours ago. Have you updated the plugin? Edited August 20, 20223 yr by SimonF
September 1, 20223 yr On 8/20/2022 at 5:11 PM, SimonF said: Was released about 2 hours ago. Have you updated the plugin? Actually I still don't have this. USB Manager says 2022.05.20, but also doesn't find an update for it. (plugin updates work fine in my server - I just did a couple 5 minutes ago) Maybe some version red flag? I am on 6.10.3.
September 1, 20223 yr Author 11 hours ago, NLS said: Actually I still don't have this. USB Manager says 2022.05.20, but also doesn't find an update for it. (plugin updates work fine in my server - I just did a couple 5 minutes ago) Maybe some version red flag? I am on 6.10.3. Not sure why you are not seeing the updates, works on 6.9.2 as below 6.10 and 6.11rcs Trying removing and reloading. Config will stay intack.
September 1, 20223 yr Author 12 hours ago, NLS said: Actually I still don't have this. USB Manager says 2022.05.20, but also doesn't find an update for it. (plugin updates work fine in my server - I just did a couple 5 minutes ago) Maybe some version red flag? I am on 6.10.3. Ok, I think you may have installed the old v1 version that was in CA for a while. You need to remove the plugin and install again from CA.
September 17, 20223 yr Hi Again 🙂 I had many problems attaching the CONBE II stick to my VM running Home assistant And I reverted to use your great plugin for this, but for some reason I keep getting this error: Some think strange the USB for both is using 04? Any input to what I can try, would be much appreciated
September 17, 20223 yr Author 2 hours ago, casperse said: Hi Again 🙂 I had many problems attaching the CONBE II stick to my VM running Home assistant And I reverted to use your great plugin for this, but for some reason I keep getting this error: Some think strange the USB for both is using 04? Any input to what I can try, would be much appreciated What output do you get if you hover over the virsh error? The port number is only used if you enable connect as serial via the slider which is required for map Conbee II correctly above 6.9.2 Edited September 17, 20223 yr by SimonF
September 17, 20223 yr 13 minutes ago, SimonF said: What output do you get if you hover over the virsh error? The port number is only used if you enable connect as serial via the slider which is required for map Conbee II correctly above 6.9.2 THANKS! SO MUCH - I enabled the Conbee II as a serial and it seem to work now! My only problem now is that I don't know the correct path in the HA VM anymore? I know this is kind of off-topic but do you know how to define/find the new USB path in HA? { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421314-if00" }, "radio_type": "deconz" },
September 17, 20223 yr Author 6 minutes ago, casperse said: THANKS! SO MUCH - I enabled the Conbee II as a serial and it seem to work now! My only problem now is that I don't know the correct path in the HA VM anymore? I know this is kind of off-topic but do you know how to define/find the new USB path in HA? { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421314-if00" }, "radio_type": "deconz" }, The path will be like this now. /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0 Have a look at this post https://community.home-assistant.io/t/solved-conbee-2-fails-to-connect-to-zha-ha-in-unraid-vm/431276
September 17, 20223 yr Author 39 minutes ago, casperse said: THANKS! SO MUCH - I enabled the Conbee II as a serial and it seem to work now! My only problem now is that I don't know the correct path in the HA VM anymore? I know this is kind of off-topic but do you know how to define/find the new USB path in HA? { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421314-if00" }, "radio_type": "deconz" }, Also you dont seem to have connected as serial, should show like this: connected(serial) for either port or device maps Edited September 17, 20223 yr by SimonF
September 17, 20223 yr 40 minutes ago, SimonF said: Also you dont seem to have connected as serial, should show like this: Yes it seem i have this error: But I have changed the XML looking in the XML I now have to entries? like someone here also experienced What should I do... both here are port 4 should I just change one to something else? Again thanks for helping, been at this all day 😞
September 17, 20223 yr Author 11 minutes ago, casperse said: Yes it seem i have this error: But I have changed the XML looking in the XML I now have to entries? like someone here also experienced What should I do... both here are port 4 should I just change one to something else? Again thanks for helping, been at this all day 😞 Did you add the XML manually? It may be you changed the slider to serial when it was connected. If you added the lines by hand remove them. Change slider back to off. Disconnect from VM, Change Slider to on and reconnect. XML should look like this if added via the plugin, I use the alias to remove. <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEX-if00'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='ua-serial001011'/> <address type='usb' bus='0' port='4'/>
September 17, 20223 yr 49 minutes ago, SimonF said: Did you add the XML manually? It may be you changed the slider to serial when it was connected. If you added the lines by hand remove them. Change slider back to off. Disconnect from VM, Change Slider to on and reconnect. XML should look like this if added via the plugin, I use the alias to remove. <serial type='dev'> <source path='/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEX-if00'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='ua-serial001011'/> <address type='usb' bus='0' port='4'/> Great reading the guide I did add the XML input manually SORRY Everything is now removed: So everything should now finally be okay on the Unraid and XML part! But for some reason I still get the in HA Might be a stupid Q but how can I validate the path in HA? { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0" }, "radio_type": "deconz" }, Again your help is much appreciated without ZigBee most of the smart house doesn't work - so I am not that popular at home right now LOL
September 17, 20223 yr Author 9 minutes ago, casperse said: Great reading the guide I did add the XML input manually SORRY Everything is now removed: So everything should now finally be okay on the Unraid and XML part! But for some reason I still get the in HA Might be a stupid Q but how can I validate the path in HA? { "entry_id": "2bb51ca17b7fa61b8d997ce1d3f2c8a2", "version": 3, "domain": "zha", "title": "ConBee II, s/n: DE2421314 - dresden elektronik ingenieurtechnik GmbH", "data": { "device": { "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0" }, "radio_type": "deconz" }, Again your help is much appreciated without ZigBee most of the smart house doesn't work - so I am not that popular at home right now LOL I am not an expert in ha, but from the HA console if I run hw info I see And from settings->system->hardware click on ... and select all hardware. Edited September 17, 20223 yr by SimonF
September 17, 20223 yr Finally I found this under the "3 dots" under /config/hardware on the HA UI The path was: "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.0-4-if00-port0" Thanks everything is up and running and I can get everyone off my back LOL Have a great weekend, you saved mine! Cheers
September 17, 20223 yr Author 21 minutes ago, casperse said: Finally I found this under the "3 dots" under /config/hardware on the HA UI The path was: "path": "/dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.0-4-if00-port0" Thanks everything is up and running and I can get everyone off my back LOL Have a great weekend, you saved mine! Cheers Happy to help and Glad you got it working you have a good weekend now too
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.