ccsnet

Members
  • Posts

    96
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ccsnet's Achievements

Apprentice

Apprentice (3/14)

0

Reputation

  1. Thanks @SimonF - really happy with this plug in... well done. T
  2. Hi @SimonF - one last question - is it possible to map the same USB device to two VMs ie so I can have multiple VMs but shut one down for another and it knows to auto connect eg keyboards and mice ? T
  3. Hi Simon - thanks... I found that a reboot was also needed to remove the messages which might have been the bit throwing me off. Thanks again for jumping in to help. Terran PS Love the photo - MK based ?
  4. Hi - thanks for coming back to me - USB Manager only as I do not need the IP features. Enable USB on Dashboard and Enable USB Manager Hotplug on VM page are enabled. Enable USBIP is disabled however I have played with the settings before hand. T
  5. OK - some progress - rebooted and I can now start my VMs but getting: Given that I thought hook edits where automatic now I did not expect this so need to do some further reading (unless some one has a quick answer ?). T
  6. Any one had "Libvirt Service failed to start." - Also still got this following an uninstall: /etc/libvirt-/hooks/qemu #!/usr/bin/env php <?php 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; Libvirt Log I have also had the following when installed: When installed my config file looks like this: #!/usr/bin/env php <?php 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; } And my log: ? Terram
  7. Has tdarr_aio been pulled from the app store ? (see attached image) Thanks Terran
  8. Hi all. Its been a while since I have looked at duplicati as I've been running a scipt back up as I had an issue when back up over 1tb to a local store it seemed to crash. Is this still a limitation ? Is it more reliable compaired to a script copying the data daily ? Thanks T
  9. Hi all... just to let you know this worked although I renamed the old folders on each disk appdataold so I had a back up as well but I had a heart stopping moment when all my shares and dockers would not fire back no matter what I did. If any one else gets this I simpley rebooted and all was well - I hope that helps any one else in a simular posotion. Once again @Squid thank you for your help... T
  10. Hi - I have added another disk to my server so I can dedicate it to my appsdata and docker image as it currently resides where media files do. This disk is not an SSD so I have decided it is not worth making as a cache (happy to be corrected) so I have set it as standard storage area for the array. With this in mind I want to move the folder lock stock and barrel then limit what disks can be used so data stays on the disk only. Can some one advise the best method for this please ? Many thanks Terran
  11. Thanks for that... I'll look in to it. Thanks T
  12. Hi all - feeling a bit of a twit tonight as I forgot my admin password and I only have one user set up as it is for home use. Does any one have the process to reset via the docker CLI as I believe "passwd username" is possible but I'm unable to invoke it via the terminal. Thanks Terran
  13. Hi - I tried a random .com and it seems ok so I guess you may be right as I was test setting up at one location. Thanks T
  14. Hi all, I have to say I like this tool so far. It seems easy to set up. I have one question though and it my be Wiregaurd its self... setting up a Server to Server you need to specify a Peer End Point how ever the one I am trying to use is on a home broadband therefore dynamic. I would like to use a FQDN (ie DuckDNS) how ever it will not accept any thing but a proper IP. Do you know if this is a limitation, a bug or even if there is a work around ? Thanks Terran