casperse

Members
  • Posts

    810
  • Joined

  • Last visited

Everything posted by casperse

  1. Yes of course, anything to help #!/usr/bin/env php <?php #begin USB_MANAGER if ($argv[2] == 'prepare' || $argv[2] == 'stopped'){ shell_exec("/usr/local/emhttp/plugins/usb_manager/scripts/rc.usb_manager vm_action '{$argv[1]}' {$argv[2]} {$argv[3]} {$argv[4]} >/dev/null 2>&1 & disown") ; } #end USB_MANAGER if (!isset($argv[2]) || $argv[2] != 'start') { exit(0); } $strXML = file_get_contents('php://stdin'); $doc = new DOMDocument(); $doc->loadXML($strXML); $xpath = new DOMXpath($doc); $args = $xpath->evaluate("//domain/*[name()='qemu:commandline']/*[name()='qemu:arg']/@value"); for ($i = 0; $i < $args->length; $i++){ $arg_list = explode(',', $args->item($i)->nodeValue); if ($arg_list[0] !== 'vfio-pci') { continue; } foreach ($arg_list as $arg) { $keypair = explode('=', $arg); if ($keypair[0] == 'host' && !empty($keypair[1])) { vfio_bind($keypair[1]); break; } } } exit(0); // end of script function vfio_bind($strPassthruDevice) { // Ensure we have leading 0000: $strPassthruDeviceShort = str_replace('0000:', '', $strPassthruDevice); $strPassthruDeviceLong = '0000:' . $strPassthruDeviceShort; // Determine the driver currently assigned to the device $strDriverSymlink = @readlink('/sys/bus/pci/devices/' . $strPassthruDeviceLong . '/driver'); if ($strDriverSymlink !== false) { // Device is bound to a Driver already if (strpos($strDriverSymlink, 'vfio-pci') !== false) { // Driver bound to vfio-pci already - nothing left to do for this device now regarding vfio return true; } // Driver bound to some other driver - attempt to unbind driver if (file_put_contents('/sys/bus/pci/devices/' . $strPassthruDeviceLong . '/driver/unbind', $strPassthruDeviceLong) === false) { file_put_contents('php://stderr', 'Failed to unbind device ' . $strPassthruDeviceShort . ' from current driver'); exit(1); return false; } } // Get Vendor and Device IDs for the passthru device $strVendor = file_get_contents('/sys/bus/pci/devices/' . $strPassthruDeviceLong . '/vendor'); $strDevice = file_get_contents('/sys/bus/pci/devices/' . $strPassthruDeviceLong . '/device'); // Attempt to bind driver to vfio-pci if (file_put_contents('/sys/bus/pci/drivers/vfio-pci/new_id', $strVendor . ' ' . $strDevice) === false) { file_put_contents('php://stderr', 'Failed to bind device ' . $strPassthruDeviceShort . ' to vfio-pci driver'); exit(1); return false; } return true; } could do the list /bin/ls: cannot access '/etc/libvirt/hooks/qemu.d/': No such file or directory?
  2. Hi All I am finally going to setup multiple cache pools! 🙂 And I am wondering how to go about it in the right way? Current setup: One cache drive called "cache" Future setup; Having 3 cache drives - cache_apps / cache_vms / cache_shares Would I have to manually go and change all my dockers from /mnt/cache/appdata/ --> /mnt/user/appdata/ before renaming my existing cache drive? Would it be best to move all things back to the array (Change prefer: Cache --> Yes : Cache) and then setup all my cache drives? (The system files and the Docker image files and the Appdate would be keept on the existing cache drive!) I have all my Media dockers on my current cache drive and moving all these small files would take days! Would love to just rename the current cache drive to cache_apps and move the rest to the other cache drives? I might me overthinking this LOL Did see the video about multiple pools but in that they where all empty
  3. Thanks I have removed them now! I cant get the File activity working in RC4?
  4. Just did another reboot also checked the connected monitor local GUI And its still not there But everything else seem to work fine!
  5. Could it be because I upgraded directly from 6.9 --> 6.10.rc4? (Skipping the other RC?)
  6. Hi All I am using the OZNU Homebridge docker. And it works for everything except the Sonos ZP plugin? I have by troubleshooting with the auther found that it is upnp that causes these problems? What network setting are you running with? Mine is: And in the UI: But I keep getting periodic UPnP announcements for .6 - the HOST! ? [4/19/2022, 9:00:21 AM] [Sonos] upnp: RINCON_542A1BE254D901400 is alive at 192.168.0.6 Any input on how to resolve this?
  7. This is with the iGPU (Sorry I cant reboot for some time adding disk space)
  8. The monitor is a standard 1080P monitor Example opening the LOG window (Works fine on any PC accessing the UI!)
  9. No, I tried accessing this on 2 different machines and 4 different browsers And in incognito mode no cache No it worked before, and I have not added any plugins (I have removed some old ones)
  10. Thanks Trurl! How can a single file be in two places? OK I can see that the Docker img file on the cache is the new one the System file on the drive 7 is from 2020 so I deleted it (Could this write to disc 7 happen if the cache drive have run full?) So I dont think this was spinning the drive up
  11. I just updated to 6.10.rc4 and installed the File activity plugin (My drives keep spinning up) But no matter what I do I dont get any activity in the plugin? Log: But its already over the default size? I then updated it to: I dont get the warning anymore but still no activity listed? Diag file attached below diagnostics-20220415-1823.zip
  12. I know this is an old post but every one is talking about the SC847 and the 36 bays! And it has been on my list for a very long time (Hitting the max supported drives on Unraid) But isn't it a big problem that all cards have to fit in the low-profile expansion slot? (Or is it full?)
  13. Yes thanks! I had to do the XML changes to get the serial USB device added in the VM - and then the HA process above to change the Zigbee HA path and keeping the DB for all my existing devices 🙂 - so I am really happy to now be on 6.10.rc4
  14. Very small bug report 🙂 But after upgrading from 6.9 to 6.10.rc4 I am missing the icon for the new Win 11 I have done multiple reboots.... and tried different browsers
  15. If anyone come here to get Home assistant working in a VM running UNraid 6.10,RC4 and you don't want to start over configuring your ZIGBEE HA then do this: https://community.home-assistant.io/t/conbee2-stick-dev-path-configuration-problem/411424
  16. Found the solution: https://community.home-assistant.io/t/conbee2-stick-dev-path-configuration-problem/411424
  17. I did the insert this in the XML for Home assistant if using the Conbee2 stick! </memballoon> placed under this line: <serial type='dev'> <source path='/dev/serial/by-id/usb-0000_0000-if00'/> <target type='usb-serial' port='1'> <model name='usb-serial'/> </target> <alias name='serial1'/> <address type='usb' bus='0' port='4'/> </serial> Get USB ID by console: ls /dev/serial/by-id/ But even if I got the VM started then Home assistant cant access the Conbee stick?
  18. I got the VM started with the new USB XML but afterwards I cant get the integration working`? Where do I fix this? Have anyone this working?
  19. I got the script from mgutt and I keept them because its practually the same as writing it in the docker: Have one for Emby and another for Plex) both with at RAM folder But I guess its simpler to have just tmp, so I will delete the scripts and add the parameter to them both But using your extra parameter in docker for Emby I now have: --runtime=nvidia --log-opt max-size=50m --log-opt max-file=1 --restart unless-stopped --mount type=tmpfs,destination=/tmp,tmpfs-size=8589934592 And for Plex: --runtime=nvidia --no-healthcheck --log-opt max-size=50m --log-opt max-file=1 --restart unless-stopped --mount type=tmpfs,destination=/tmp,tmpfs-size=8589934592 So long time since I set this up, but it has been running pretty stable
  20. Seems to be a known problem back to 6.10.rc2? Seem strange that it works in 6.9....
  21. I can confirm that the USB problem is not related to the USB manager (I removed the plugin) and after a reboot I selected the USB from the VM: And then afterwards I get the log running forever: Apr 13 16:45:09 UNRAID kernel: usb 1-1: usbfs: process 19810 (qemu-system-x86) did not claim interface 1 before use Anyone have any way to fix this? - Would really like to keep the 6.10.rc4 but I need Home assistant to run the smart house 🙂
  22. SOLVED: I just updated from 6.9.2 to 6.10.rc4 and now I have my UI back on my local monitor again 🙂
  23. Update: I disabled the "USB manager" plugin and selected the two USB in the Hassio VM and I still get the same error? So this USB passthrough in VM might be related to some other problem after upgrade of Unraid?