Jump to content

snowmirage

Members
  • Posts

    105
  • Joined

  • Last visited

Posts posted by snowmirage

  1. 13 hours ago, falconexe said:

    No worries! Good Luck. Let us know what you find out. It may help someone else in the future.

    Previously what I had noticed was a popup window in chrome asking something along the lines of "Are you sure you want to leave this page?"  with a leave and cancel button.  As though I had started writing an email or something and tried to close the browser before I sent / saved it or such.  If I hit cancel the popup would just come back.  Leave button would dump me to the grafana login screen.

    Started doing some testing opened up 3 browser windows

    Chrome, Chrome Incognito Mode, Edge

    logged into all of them and put up the same dashboard with in a few seconds of each other.

    ~10 min later Edge had dropped me back out to the login screen.

    ~30 min the Incognito window did the same.

    then around ~40 min the normal chrome window did the same, I actually visually caught that one.   1 second Its on my dashboard the next at the login screen

     

     

  2. 2 hours ago, falconexe said:


    Try a different browser on the same computer, and then try the same browser on a different computer. That is not normal behavior, nor should you have to explicitly set something to stop this behavior. Out of the box, Grafana does not auto log you off. Credentials are stored in browser cookies. If cookies are cleared, you will have to log in again. Might be a browser specific setting...

    Cool thanks for the info, gives me a direction to troubleshoot in anyway!  Thanks

  3. Any chance anyone knows how I can prevent grafana from logging me out / requiring me to relogin so often?

    I haven't timed it but I'm guessing its ~10 min

    Looking at the settings page in the grafana webui I was taking a guess I might need to change the "token_rotation_interval_minutes" value?


    image.png.c8414ac22d5415aad8d2711851781626.png


    But I'm not sure what environment variable I'd need to set.

    Tried 

    GF_TOKEN_ROTATION_INTERVAL_MINUTES
    TOKEN_ROTATION_INTERVAL_MINUTES
    token_rotation_interval_minutes

    and none of them seemed to change it.

  4. Wanted to share my experience with my setup as I didnt find a lot of info when I was googling around / searching the forums.

    I have Unraid 6.8.3 running.   And I'm using a Cyberpower (Cyber Power,  got to get all those tags....) Model brg1500avrlcd I have it connected via USB cable to a USB 2.0 port on my X570 Gigabyte motherboard.

    I previously had a very large I think it was EATON UPS working with this install before changing the motherboard and processor.

    When I initially tried to get the new setup working, the built in UPS settings wouldn't work (kind of expected that, they seem to prefer other brands of UPS).  When I would hit auto detect in the NUT settings it would find my ups, but when I'd turn on the service and hit apply the service wouldn't start it would still say "Status: Stopped"

    Reading through this thread, I did the following.

    Tried setting the built in UPS settings to those listed on the 1st page of this thread.
     

    To disable the built in UPS try settiing it to:
    
    Start APC UPS daemon: No
    
    UPS cable: Custom
    
    UPS type: Dumb



    That didn't seem to help.

    I uninstalled the NUT plugin and reinstalled that again didn't seem to help

    I think tried these commands and saw an error.

     

    root@phoenix:~# /etc/rc.d/rc.nut start
    Writing nut config
    Updating permissions...
    Network UPS Tools - UPS driver controller 2.7.4.1
    Network UPS Tools - Generic HID driver 0.55 (2.7.4.1)
    USB communication driver 0.43
    Using subdriver: CyberPower HID 0.5
    Network UPS Tools upsd 2.7.4.1
    fopen /var/run/nut/upsd.pid: No such file or directory
    listening on 0.0.0.0 port 3493
    Connected to UPS [ups]: usbhid-ups-ups
    Network UPS Tools upsmon 2.7.4.1
    fopen /var/run/nut/upsmon.pid: No such file or directory
    /etc/nut/upsmon.conf line 1: invalid directive MONITOR [email protected] 1 master
    Using power down flag file /etc/nut/no_killpower
    
    Fatal error: insufficient power configured!
    
    Sum of power values........: 0
    Minimum value (MINSUPPLIES): 1
    
    Edit your upsmon.conf and change the values.


    I uninstalled the NUT plugin again and removed the /boot/config/plugins/nut directory (not 100% sure that path is right but its the config/plugin(s) directory on the flash drive) it still had a config file in there.

    Then reinstalled NUT plugin > hit auto detect and BINGO! its working!

  5. It appears something must have been corrupt in my queue directory.

    I renamed the original directory and when I started the container again the queue directory was recreated and so far it seems to be working.

    Hope the wall of text above helps save some poor soul the trouble I went through some day.

  6. Still can't find the exact issue but I've narrowed it down to something in the mounted /data path

    If I start up a new fresh container with all the same settings including a copy of my nzbget.conf file as well as my openvpn files but change the location of that /data path in the docker config.  Then nzbget runs and I don't see the above errors.

    Error reading diskstate for history
    Error reading diskstate for download queue and history

    I think I came across a post about those errors happening when there were zero size files some place due to a crash.  Looking into that next.

  7. 4 hours ago, snowmirage said:

    I've had this nzbgetvpn container working for a while but it recently started failing to load.  

    To be more specific I think its successfully starting, as I can occasionally get to the webui for a few seconds.  But it appears to be in a loop either crashing or something but I don't see much in the logs other than this repeating every 30 seconds.

     

    
    2018-11-30 09:38:43,621 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:38:43,629 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started
    
    2018-11-30 09:39:13,765 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:39:13,772 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started
    
    2018-11-30 09:39:43,911 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:39:43,920 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started


    I've attached the full log as well.

    Anyone have any ideas what might be happening here or what else I can check?

    log.rtf

    Spent a few hours today trying to dive deep into this to see what might be going on.

    It appears that the script in /home/noboday/nzbget.sh is what is kicking off the startup of nzbget

    In there it's doing a check to see if nzbget is running using "pgrep -x nzbget" seems like that makes sense.

     

    I started watching htop to see if the later command to start nzbget actually shows up in the process list.

    What seems odd to me is it shows up a LARGE number of times.

    Here is htop while we are hitting the sleep for 30 second time in the loop in /home/nobody/nzbget.sh

    image.png.adad3fbf126231bcd030114732a8cdf7.png

     

    Then every 30 seconds or so it seems to try to restart nzbget and I see lots of processes for /usr/bin/nzbget -D -c /config/nzbget.conf start up?  Maybe this is normal I don't know?

    image.png.01318c16346312ad66ae08fad4c97c49.png

    These are probably a little easier to read

    image.thumb.png.62522e4038ccd41194da831d7a35f165.png

    image.thumb.png.81bf0f5dca48daeb521b0f09f796fd9b.png

    I'm still trying to figure out if and where there are logs for that nzbget start up command.  Maybe if I can find them they'll give me a better idea whats going on but no luck so far.

  8. I've had this nzbgetvpn container working for a while but it recently started failing to load.  

    To be more specific I think its successfully starting, as I can occasionally get to the webui for a few seconds.  But it appears to be in a loop either crashing or something but I don't see much in the logs other than this repeating every 30 seconds.

     

    2018-11-30 09:38:43,621 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:38:43,629 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started
    
    2018-11-30 09:39:13,765 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:39:13,772 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started
    
    2018-11-30 09:39:43,911 DEBG 'nzbget-script' stdout output:
    [info] Nzbget not running
    [info] Attempting to start Nzbget...
    
    2018-11-30 09:39:43,920 DEBG 'nzbget-script' stdout output:
    [info] Nzbget started


    I've attached the full log as well.

    Anyone have any ideas what might be happening here or what else I can check?

    log.rtf

  9. Man still the same error I was really hoping that was it.

    Updated syslinux config
     

    default menu.c32
    menu title Lime Technology, Inc.
    prompt 0
    timeout 50
    label unRAID OS
      menu default
      kernel /bzimage
      append vfio_iommu_type1.allow_unsafe_interrupts=1 pcie_acs_override=downstream vfio-pci.ids=1b73:1100 initrd=/bzroot
    label unRAID OS GUI Mode
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui
    label unRAID OS Safe Mode (no plugins, no GUI)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot unraidsafemode
    label unRAID OS GUI Safe Mode (no plugins)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui unraidsafemode
    label Memtest86+
      kernel /memtest

    Error when starting the VM
     

    internal error: qemu unexpectedly closed the monitor: 2018-09-04T14:10:43.850027Z qemu-system-x86_64: -device vfio-pci,host=19:00.0,id=hostdev0,bus=pci.0,addr=0x9: vfio error: 0000:19:00.0: failed to setup container for group 30: failed to set iommu for container: Operation not permitted


    Digging through the syslog it looks like it is still giving the same error you spotted?
     

    Sep  4 07:10:43 phoenix kernel: vfio_iommu_type1_attach_group: No interrupt remapping support.  Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform


    Attaching the full diag file again as well.

    I've doubled checked that unsafe interrupts command several times now, looks correct to me now.   Is it possible its some how not actually getting turned on?

    phoenix-diagnostics-20180904-0711.zip

  10. *Facepalm* I've been messing with this for so many hours I didn't even see that. Thank you 

    All the ssh connections are me toying with attempting to remotely monitor temperatures and other stats.  I was scripting something in powershell to ssh in then pulling cpu and mem usage and hw temps, I must have left those running while I was working this, thanks for the heads up though.

    I'll fix that shortly this morning and report back.

     

    • Like 1
  11. Correct not only did I reboot I unplugged the server for 10 - 20 seconds, as one of those posts I was reading seemed to indicate that might matter.

    I changed the pci stub to this

    syslinux config

    default menu.c32
    menu title Lime Technology, Inc.
    prompt 0
    timeout 50
    label unRAID OS
      menu default
      kernel /bzimage
      append pcie_acs_override=downstream vfio_vfio_iommu_type1.allow_unsafe_interrupts=1 vfio-pci.ids=1b73:1100 initrd=/bzroot
    label unRAID OS GUI Mode
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui
    label unRAID OS Safe Mode (no plugins, no GUI)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot unraidsafemode
    label unRAID OS GUI Safe Mode (no plugins)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui unraidsafemode
    label Memtest86+
      kernel /memtest

     

    VM config shouldn't have changed but in case it did some how...

     

    <domain type='kvm'>
      <name>Gamer 1 Windows 10</name>
      <uuid>20338d14-ce0e-9ce4-9cb1-fb0a0d01271a</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='1'/>
        <vcpupin vcpu='1' cpuset='13'/>
        <vcpupin vcpu='2' cpuset='2'/>
        <vcpupin vcpu='3' cpuset='14'/>
        <vcpupin vcpu='4' cpuset='3'/>
        <vcpupin vcpu='5' cpuset='15'/>
        <vcpupin vcpu='6' cpuset='4'/>
        <vcpupin vcpu='7' cpuset='16'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/20338d14-ce0e-9ce4-9cb1-fb0a0d01271a_VARS-pure-efi.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
          <vendor_id state='on' value='none'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough' check='none'>
        <topology sockets='1' cores='4' threads='2'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='hypervclock' present='yes'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Gamer 1 Windows 10/vdisk1.img'/>
          <target dev='hdc' bus='virtio'/>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/Windows-10-2018.iso'/>
          <target dev='hda' bus='ide'/>
          <readonly/>
          <boot order='2'/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/virtio-win-0.1.141.iso'/>
          <target dev='hdb' bus='sata'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='usb' index='0' model='ich9-ehci1'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci1'>
          <master startport='0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci2'>
          <master startport='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci3'>
          <master startport='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
        </controller>
        <controller type='pci' index='0' model='pci-root'/>
        <controller type='ide' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:4b:90:bb'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='tablet' bus='usb'>
          <address type='usb' bus='0' port='1'/>
        </input>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
          <listen type='address' address='0.0.0.0'/>
        </graphics>
        <video>
          <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </video>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </hostdev>
        <memballoon model='virtio'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
        </memballoon>
      </devices>
    </domain>


    Tried to start the VM again with the same error  :(

    Attached the diagnostic file again after the VM errored on start up crossing my fingers there's something in there 
     

    phoenix-diagnostics-20180903-1832.zip

  12. Gave that a try but still getting the same issue.  I'm pretty sure I'm doing it correctly.  Unless the pci-stub has to be before one of the other appended commands for some reason?

    The other thing I noticed in those posts that I was crossing my fingers would be the issue is I had not completely power cycled the server yet since trying various things (unplugging and letting it sit for 10 seconds or so).   Tried that this time but didn't seem to help.

    Error in vm log

    2018-09-03T21:29:55.685673Z qemu-system-x86_64: -device vfio-pci,host=19:00.0,id=hostdev0,bus=pci.0,addr=0x9: vfio error: 0000:19:00.0: failed to setup container for group 30: failed to set iommu for container: Operation not permitted
    2018-09-03 21:29:55.711+0000: shutting down, reason=failed

    Syslinux config

    default menu.c32
    menu title Lime Technology, Inc.
    prompt 0
    timeout 50
    label unRAID OS
      menu default
      kernel /bzimage
      append pcie_acs_override=downstream vfio_vfio_iommu_type1.allow_unsafe_interrupts=1 pci-stub.ids=1b73:1100 initrd=/bzroot
    label unRAID OS GUI Mode
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui
    label unRAID OS Safe Mode (no plugins, no GUI)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot unraidsafemode
    label unRAID OS GUI Safe Mode (no plugins)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui unraidsafemode
    label Memtest86+
      kernel /memtest

    IOMMU group containing the controller I'm trying to pass through
     

    IOMMU group 30:	[1b73:1100] 19:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)


    VM config 

     

    <domain type='kvm'>
      <name>Gamer 1 Windows 10</name>
      <uuid>20338d14-ce0e-9ce4-9cb1-fb0a0d01271a</uuid>
      <metadata>
        <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
      </metadata>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <memoryBacking>
        <nosharepages/>
      </memoryBacking>
      <vcpu placement='static'>8</vcpu>
      <cputune>
        <vcpupin vcpu='0' cpuset='1'/>
        <vcpupin vcpu='1' cpuset='13'/>
        <vcpupin vcpu='2' cpuset='2'/>
        <vcpupin vcpu='3' cpuset='14'/>
        <vcpupin vcpu='4' cpuset='3'/>
        <vcpupin vcpu='5' cpuset='15'/>
        <vcpupin vcpu='6' cpuset='4'/>
        <vcpupin vcpu='7' cpuset='16'/>
      </cputune>
      <os>
        <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
        <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
        <nvram>/etc/libvirt/qemu/nvram/20338d14-ce0e-9ce4-9cb1-fb0a0d01271a_VARS-pure-efi.fd</nvram>
      </os>
      <features>
        <acpi/>
        <apic/>
        <hyperv>
          <relaxed state='on'/>
          <vapic state='on'/>
          <spinlocks state='on' retries='8191'/>
          <vendor_id state='on' value='none'/>
        </hyperv>
      </features>
      <cpu mode='host-passthrough' check='none'>
        <topology sockets='1' cores='4' threads='2'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='hypervclock' present='yes'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <devices>
        <emulator>/usr/local/sbin/qemu</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='raw' cache='writeback'/>
          <source file='/mnt/user/domains/Gamer 1 Windows 10/vdisk1.img'/>
          <target dev='hdc' bus='virtio'/>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/Windows-10-2018.iso'/>
          <target dev='hda' bus='ide'/>
          <readonly/>
          <boot order='2'/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/user/isos/virtio-win-0.1.141.iso'/>
          <target dev='hdb' bus='sata'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='usb' index='0' model='ich9-ehci1'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci1'>
          <master startport='0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci2'>
          <master startport='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci3'>
          <master startport='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
        </controller>
        <controller type='pci' index='0' model='pci-root'/>
        <controller type='ide' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='sata' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:4b:90:bb'/>
          <source bridge='br0'/>
          <model type='virtio'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target type='isa-serial' port='0'>
            <model name='isa-serial'/>
          </target>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='unix'>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='tablet' bus='usb'>
          <address type='usb' bus='0' port='1'/>
        </input>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
          <listen type='address' address='0.0.0.0'/>
        </graphics>
        <video>
          <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </video>
        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </hostdev>
        <memballoon model='virtio'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
        </memballoon>
      </devices>
    </domain>


    Any other ideas by chance?  *crosses fingers*

  13. I'm hoping some kind soul might have some suggestions for me that I haven't tried yet.  I have 2 Nvidia GTX 980 video cards I'm trying to passthrough to two different VMs and also need a usb controller to pass through to each of them.

    I'm running unraid 6.5.3

    I have a total of 4 PCIe USB cards now that I've tried, I'll be more than happen if I can get any combination of those to work here.  Though ideally I would like to use one of the two PCIe cards I have that have multiple individual controllers on a single card to allow me to save the extra PCIe slot for something down the road.

    Lets start with option #1


    Options #1: Best case scenario I as hoping to use this card https://www.amazon.com/gp/product/B00XPUHO10/ref=oh_aui_detailpage_o05_s00?ie=UTF8&amp;psc=1
    The Sonnet Allegro Pro USB 3.0 PCIe card, after some digging I think this was one of the cards that Linus Tech Tips used in one of their builds.  It contains 4 individual USB controllers.  I was hoping to pass 1 of each of those controllers to each of my 2 VMs.

    Following the guide in this post 

        <hostdev mode='subsystem' type='pci' managed='yes'>
          <driver name='vfio'/>
          <source>
            <address domain='0x0000' bus='0x19' slot='0x00' function='0x0'/>
          </source>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
        </hostdev>


    When I try to boot the VM (note I'm not passing through the GPUs yet, I've verified they work on their own though) I'm getting this error
    "failed to set iommu for container: Operation not permitted"

    2018-09-03T15:17:13.737331Z qemu-system-x86_64: -device vfio-pci,host=19:00.0,id=hostdev0,bus=pci.0,addr=0x9: vfio error: 0000:19:00.0: failed to setup container for group 30: failed to set iommu for container: Operation not permitted
    2018-09-03 15:17:13.766+0000: shutting down, reason=failed


    Each of the controllers for this card are in their own IOMMU group with ACS override turned on so I thought I was in the clear.  With out the ACS override turned on all 4 were in 1 group along with a bunch of PLX PCI bridge items.

     

    IOMMU group 29:	[1b73:1100] 1a:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)
    IOMMU group 30:	[1b73:1100] 19:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)
    IOMMU group 31:	[1b73:1100] 18:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)
    IOMMU group 32:	[1b73:1100] 17:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)


    Here is my syslinux config
     

    default menu.c32
    menu title Lime Technology, Inc.
    prompt 0
    timeout 50
    label unRAID OS
      menu default
      kernel /bzimage
      append pcie_acs_override=downstream vfio_vfio_iommu_type1.allow_unsafe_interrupts=1 initrd=/bzroot
    label unRAID OS GUI Mode
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui
    label unRAID OS Safe Mode (no plugins, no GUI)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot unraidsafemode
    label unRAID OS GUI Safe Mode (no plugins)
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui unraidsafemode
    label Memtest86+
      kernel /memtest


    I've also attached the full diagnostics file, full IOMMU group list, and the full XML of the VM.

    I'm so close to getting this build working I can almost taste it.  Any ideas would be greatly appreciated.

    I've tried the other controllers on the card and seem to get the same error

    I have a 2nd USB card in the machine currently as well https://www.amazon.com/gp/product/B015CQ8DCS/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;psc=1

    This card also has 4 individual usb controllers but they all ended up in the same IOMMU group (43)

     

    IOMMU group 43:	[10b5:8609] 08:00.0 PCI bridge: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [10b5:8609] 08:00.1 System peripheral: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [10b5:8609] 09:01.0 PCI bridge: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [10b5:8609] 09:05.0 PCI bridge: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [10b5:8609] 09:07.0 PCI bridge: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [10b5:8609] 09:09.0 PCI bridge: PLX Technology, Inc. PEX 8609 8-lane, 8-Port PCI Express Gen 2 (5.0 GT/s) Switch with DMA (rev ba)
    [1b21:1142] 0a:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
    [1b21:1142] 0b:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
    [1b21:1142] 0c:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller
    [1b21:1142] 0d:00.0 USB controller: ASMedia Technology Inc. ASM1042A USB 3.0 Host Controller

     

    phoenix-diagnostics-20180903-0821.zip

    Full IOMMU Group List ACS override on.txt

    Full VM XML.txt

  14. I've set  this up following the guide here https://squishedmooo.com/the-new-and-easier-all-in-one-steamcache/

    And the steam side of it seems to be working great so far.   

    Searching around I have not seen anyone talk much about the Windows Update side, has anyone else tried it?

    I've verified the caching is working for steam by installing a game seeing the "MISS" lines in access.log, then uninstalling it and reinstalling then I see the HITS and much faster download speed.


    I did a couple fresh installs of windows 10 then started windows update (one install in a VM in Unraid, another in VirutalBox on my desktop) when the updates first start to install I can see in access.log some requests and the expected "MISS" lines.

     

    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /c/msdownload/update/software/secu/2017/06/windows10.0-kb4022727-x64-express_cc430fa47ed63191874db142f794a36b33b04e44.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /c/msdownload/update/software/crup/2018/07/windows10.0-kb4023814-x64_8e16d67dbbc2eb1fa0ab97f7fa68575b3c71d02c.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /d/msdownload/update/software/crup/2016/03/cleanupcu_a316cb71c39b3bde4c7057716634196343d601c9.exe HTTP/1.1" 200 26424 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /d/msdownload/update/software/crup/2018/03/windows10.0-kb4033631-v2-x64-express_f3efe57c2251a16739767ea3e1cc0f45f53242ae.cab HTTP/1.1" 200 56062 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /c/msdownload/update/software/crup/2018/01/kb4056254_d2fbd6b44a3f712afbf0c456e8afc24f3363d10b.cab HTTP/1.1" 200 102545 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /c/msdownload/update/software/crup/2018/06/windows10.0-kb4134662-x64-express_a6673ecae85edf46b211ba7e0a706f24730765aa.cab HTTP/1.1" 200 28825 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /d/msdownload/update/software/crup/2016/06/windows10.0-kb3173427-x64-express_159d9916f459290dcad78c195a96ec6c52aa53b3.cab HTTP/1.1" 200 182181 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "GET /c/msdownload/update/software/crup/2018/04/windows10.0-kb4021701-v2-x64-express_ce096a72fca7310529093ca81cc00983462fba34.cab HTTP/1.1" 200 306662 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /c/msdownload/update/software/uprl/2018/08/windows-kb890830-x64-v5.63_e000b1f0c6233836117cdb4a4f51857228308afc.exe HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /d/msdownload/update/software/crup/2016/06/windows10.0-kb3173427-x64-express_159d9916f459290dcad78c195a96ec6c52aa53b3.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /c/msdownload/update/software/crup/2017/07/windows10.0-kb4033631-x64-express_fa00a38bc4d04262e7dda3dca974ecb08393414c.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /d/msdownload/update/software/crup/2016/03/windows10.0-kb3125217-x64_94d4773d1e8fb9bfa8847627c71b9f4088d1fc5e.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /d/msdownload/update/software/crup/2018/04/windows10.0-kb4091461-v2-x64-express_71278455f721d6c09ca53a31a306de602f03bb55.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /d/msdownload/update/software/updt/2016/07/windows10.0-kb3161102-x64_5d8bf62de2a4e651f8523d63589d0d2961bb2ad1.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:45 -0700] "HEAD /d/msdownload/update/software/crup/2018/08/windows10.0-kb4023057-x64_12a576d5971e26cd4f2eea81ec6ff5acd8b7cf0e.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "HEAD /c/msdownload/update/software/secu/2017/06/windows10.0-kb4022730-x64_ac8f551161d557c8515acbfab76cc700ff168481.cab HTTP/1.1" 200 0 "-" "Microsoft BITS/7.8" "MISS" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /d/msdownload/update/software/crup/2016/03/windows10.0-kb3125217-x64_94d4773d1e8fb9bfa8847627c71b9f4088d1fc5e.cab HTTP/1.1" 200 24690 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /d/msdownload/update/software/updt/2016/07/windows10.0-kb3161102-x64_5d8bf62de2a4e651f8523d63589d0d2961bb2ad1.cab HTTP/1.1" 200 146631 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /d/msdownload/update/software/crup/2018/08/windows10.0-kb4023057-x64_12a576d5971e26cd4f2eea81ec6ff5acd8b7cf0e.cab HTTP/1.1" 200 686520 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /c/msdownload/update/software/crup/2017/07/windows10.0-kb4033631-x64-express_fa00a38bc4d04262e7dda3dca974ecb08393414c.cab HTTP/1.1" 200 39182 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /d/msdownload/update/software/crup/2016/06/windows10.0-kb3173427-x64-express_159d9916f459290dcad78c195a96ec6c52aa53b3.cab HTTP/1.1" 200 182181 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /c/msdownload/update/software/crup/2018/07/windows10.0-kb4023814-x64_8e16d67dbbc2eb1fa0ab97f7fa68575b3c71d02c.cab HTTP/1.1" 200 6058938 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:46 -0700] "GET /d/msdownload/update/software/crup/2018/04/windows10.0-kb4091461-v2-x64-express_71278455f721d6c09ca53a31a306de602f03bb55.cab HTTP/1.1" 200 28312 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:47 -0700] "GET /c/msdownload/update/software/secu/2017/06/windows10.0-kb4022727-x64-express_cc430fa47ed63191874db142f794a36b33b04e44.cab HTTP/1.1" 200 25392379 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:47 -0700] "GET /c/msdownload/update/software/uprl/2018/08/windows-kb890830-x64-v5.63_e000b1f0c6233836117cdb4a4f51857228308afc.exe HTTP/1.1" 200 46625016 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:49:48 -0700] "GET /c/msdownload/update/software/secu/2017/06/windows10.0-kb4022730-x64_ac8f551161d557c8515acbfab76cc700ff168481.cab HTTP/1.1" 200 21536171 "-" "Microsoft BITS/7.8" "HIT" "download.windowsupdate.com" "-"
    192.168.0.16 / - - - [23/Aug/2018:13:52:11 -0700] "GET /SIH/amd64/siheng_10240.18000.cab HTTP/1.1" 200 96481 "-" "Windows-Update-Agent/10.0.10011.16384 Client-Protocol/1.32" "MISS" "download.windowsupdate.com" "-"


    The updates seems to just hang downloading shortly after 3 or 6 %

    Maybe something has changed with the update process since that section was created but I was just curious if I might have something wrong or if its also not working for anyone else.

×
×
  • Create New...