ghost82 Posted June 27, 2021 Share Posted June 27, 2021 oh yes, sorry. Yes you have 3 usb controllers so you can try! I will write how tomorrow. In the meantime please confirm that you have unraid on a kingston usb drive and post your xml. Quote Link to comment
comet424 Posted June 27, 2021 Author Share Posted June 27, 2021 ya i use a 16gb kingston i plan to go with usb adapter inside the case have to go with different style the ones i tried the case is too tight so its plugged into the phyiscaly ones in the back for the vm <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm' id='5'> <name>5. Windows 10 Pro</name> <uuid>b5067949-da19-9684-f6fe-f2bb298c8542</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'>10</vcpu> <cputune> <vcpupin vcpu='0' cpuset='1'/> <vcpupin vcpu='1' cpuset='7'/> <vcpupin vcpu='2' cpuset='2'/> <vcpupin vcpu='3' cpuset='8'/> <vcpupin vcpu='4' cpuset='3'/> <vcpupin vcpu='5' cpuset='9'/> <vcpupin vcpu='6' cpuset='4'/> <vcpupin vcpu='7' cpuset='10'/> <vcpupin vcpu='8' cpuset='5'/> <vcpupin vcpu='9' cpuset='11'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/b5067949-da19-9684-f6fe-f2bb298c8542_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' migratable='on'> <topology sockets='1' dies='1' cores='5' threads='2'/> <cache mode='passthrough'/> <feature policy='require' name='topoext'/> </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/vms/5. Windows 10 Pro/vdisk1.img' index='3'/> <backingStore/> <target dev='hdc' bus='sata'/> <boot order='1'/> <alias name='sata0-0-2'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/windows 10 latest/Windows10.iso' index='2'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <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.160-1.iso' index='1'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <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'> <alias name='usb'/> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <alias name='usb'/> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='sata' index='0'> <alias name='sata0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:a0:5b:ce'/> <source bridge='br0'/> <target dev='vnet4'/> <model type='virtio-net'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/4'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/4'> <source path='/dev/pts/4'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-5-5. Windows 10 Pro/org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5904' autoport='yes' websocket='5704' 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'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x154e'/> <product id='0x5013'/> <address bus='1' device='3'/> </source> <alias name='hostdev0'/> <address type='usb' bus='0' port='2'/> </hostdev> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> Quote Link to comment
ghost82 Posted June 28, 2021 Share Posted June 28, 2021 (edited) You have 3 usb controllers, highlighted in these pictures: 2 of them are in the same iommu group (group 17): if you have already used acs override and it didn't split the group it's not convenient to pass it through. Your mixer is attached to one of these 2 controllers. Iommu group 25 contains the third controller and you attached to it the unraid usb drive. The fastest modification to check if passing through the usb controller instead of the device (the mixer) is better or not is: 1. Shutdown the server 2. Detach your unraid usb drive and your mixer and connect the unraid usb drive to the usb port of the mixer, and the mixer to the usb port of unraid usb drive 3. Boot unraid 4. Put a check for vfio passthrough next to Group 25 (now it's greyed out because you have the unraid usb drive connected to it) 5. Go into your virtual machine settings, switch to advanced view and replace the whole xml with this: <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm' id='5'> <name>5. Windows 10 Pro</name> <uuid>b5067949-da19-9684-f6fe-f2bb298c8542</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'>10</vcpu> <cputune> <vcpupin vcpu='0' cpuset='1'/> <vcpupin vcpu='1' cpuset='7'/> <vcpupin vcpu='2' cpuset='2'/> <vcpupin vcpu='3' cpuset='8'/> <vcpupin vcpu='4' cpuset='3'/> <vcpupin vcpu='5' cpuset='9'/> <vcpupin vcpu='6' cpuset='4'/> <vcpupin vcpu='7' cpuset='10'/> <vcpupin vcpu='8' cpuset='5'/> <vcpupin vcpu='9' cpuset='11'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/b5067949-da19-9684-f6fe-f2bb298c8542_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' migratable='on'> <topology sockets='1' dies='1' cores='5' threads='2'/> <cache mode='passthrough'/> <feature policy='require' name='topoext'/> </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/vms/5. Windows 10 Pro/vdisk1.img' index='3'/> <backingStore/> <target dev='hdc' bus='sata'/> <boot order='1'/> <alias name='sata0-0-2'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/windows 10 latest/Windows10.iso' index='2'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <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.160-1.iso' index='1'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <alias name='usb'/> <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'> <alias name='usb'/> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <alias name='usb'/> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='sata' index='0'> <alias name='sata0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:a0:5b:ce'/> <source bridge='br0'/> <target dev='vnet4'/> <model type='virtio-net'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/4'/> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/4'> <source path='/dev/pts/4'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-5-5. Windows 10 Pro/org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5904' autoport='yes' websocket='5704' 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'/> <alias name='video0'/> <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='0x0a' slot='0x00' function='0x3'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </hostdev> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+0:+100</label> <imagelabel>+0:+100</imagelabel> </seclabel> </domain> 6. Save the xml, start the vm and check -------------------------------------- What I did to the xml: . Deleted the single device passthrough (since the device will be attached to the usb controller which is passed through, you don't need to passthrough single devices, every device you will attach to that usb controller will be available for the vm), I deleted this block: <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x154e'/> <product id='0x5013'/> <address bus='1' device='3'/> </source> <alias name='hostdev0'/> <address type='usb' bus='0' port='2'/> </hostdev> . Added the usb controller passthrough: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x0a' slot='0x00' function='0x3'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </hostdev> . Modified from pc-i440fx-3.1 to pc-i440fx-5.1: newer is usually better ------------------------ It should be possible to passthrough both usb controllers in iommu group 17, instead of the usb controller in group 25: since both are in the same group with the non-essential device it should be possible to passthrough all the devices in the same group. The pci-bridge, also in the same group should not affect a working passthrough. But first, try with the above for a fast check. Edited June 28, 2021 by ghost82 Quote Link to comment
comet424 Posted June 29, 2021 Author Share Posted June 29, 2021 ah ok ill give it a try.. i was using the pci1440fx-5.1 but from that link you told me to read the one guy went to 3.1 to get things to work ah so ill give what you said a try.. i swapped things i tried every usb port on the back except the the ones inside the case i didnt have e an adapter.. but i tried each port for the mixer did the deatach attach to get it to work in VM again even playing MP3 or a Video through RDP but using the Windows Media Player was crapping out and it would stop the audio and then the VM would actually reboot on me whats causing that? ill give those a try tomorrow morning.. as i just got a chance to come on to check so the group 25 why is it grayed out? so if i switch the things its going to be checkable? what a pain right? Quote Link to comment
ghost82 Posted June 29, 2021 Share Posted June 29, 2021 4 hours ago, comet424 said: so the group 25 why is it grayed out? Because you have attached the unraid usb drive: unraid is the operating system of the host, if you passthrough that usb controller you will passing through automatically the unraid drive to the vm and the host cannot see anymore the unraid usb drive. Quote Link to comment
comet424 Posted June 29, 2021 Author Share Posted June 29, 2021 oh ok so thats a safetly switch for unraid it disables it so you cant bugger it up then right? and why do some have no check boxes whats special about them? ill try your settings in a bit and will see what happens . i played with vm and drivers but never fixed the vm reboot .. also gonna try to my mixer with Volumio VM see if it has the same issue then i can know if its Windows VM that is the problem Quote Link to comment
comet424 Posted June 30, 2021 Author Share Posted June 30, 2021 ok so i didnt get a chance to try the xml i got a usb hdmi usb hub thing.. as i wanted a usb HDMI.. but the unraid cant see the hub well kinda it doesnt see it in VMs to attach if i plugged it into my own windows machine i hear it attach but i dont see no hdmi but i dunno if the xml will work but i did swap location of the kingston and mc6000 mixer the terminus hub thing is this device https://www.amazon.ca/gp/product/B08733BK1W/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 i wondering if unraid cant see usb c devices really i not sure.. but me swapping the usbs did they go in the correct order? i was hoping to plug this usb hdmi in since the onboard hdmi doesnt work since hte AMD 3600 or 3700x dont have on cpu hdmi Quote Link to comment
ghost82 Posted June 30, 2021 Share Posted June 30, 2021 4 hours ago, comet424 said: but the unraid cant see the hub well kinda it doesnt see it in VMs to attach Unraid does see the device: it's in iommu group 23 (Terminus). For this kind of device I think that usb controller passthrough is needed instead of passing through the device. Note that you changed something! Now the acs override patch is applied and your iommu groups now are splitted! so my post above doesn't work anymore because iommu groups changed. Wait for new instructions. Quote Link to comment
ghost82 Posted June 30, 2021 Share Posted June 30, 2021 Let's try to passthrough the usb controller in iommu group 30. 1. Connect the mixer, connect the terminus, connect unraid usb drive 2. Check the iommu groups (screenshots you attached) : iommu group 30 must have attached terminus and the mixer; unraid usb drive must be in iommu group 22 or in iommu group 23 Note from the latest screenshots you attached: Unraid is already connected to iommu group 22 (kingston datatraverler) --> OK The mixer is already connected to iommu group 30 (DN-MC6000) + maybe the C media electronics usb audio device --> OK Just connect the terminus in a usb port next (?) to the mixer and check that it's in iommu group 30 (now it's in iommu group 23) 3. Put a check for vfio passthrough for iommu group 30 4. Copy the xml I posted and replace that of your vm 5. Restart unraid and start the vm Quote Link to comment
comet424 Posted June 30, 2021 Author Share Posted June 30, 2021 i having problems... i checked boxed 30 and 23 and i guess unraid is in 22 i rebooted unraid.. and let it boot up.. i no longer have VMS, dockers dont wanna show. Fix common issues doesnt show any errors.. the System Devices Page it shows the beginning the usb devices. CPU Threadings.. and just keeps doing the unraid progress thing for loading and sits there VM page doesnt actually load anymore.. and this keeps doing it on multple reboots.. its stuck cuz i checked the 2 boxes and when you check a BOX is it linking or is it Breaking it up more to be in more groups i couldnt understand that cuz if i had the 2 groups you mention to check.. and then i was doing video cards 2 Video cards 2 Video Card Audios then that be say 6 groups linked together? or wold that be 6 groups seperated more i still havent fully grasps it.. as i thought it wasnt to bind but more to split it up but so far i can no longer use the system devices page or VMS and i noticed my 3500mb/s nvme so much slower the bench test says 2200mb/s but if i copy in krusader from the nvme to a different directory on the nvme i dont even get 2200mb/s or 1500 figure half speed.. i actually get only 120mb/s so i dunno whats going on. i wish there was like a Tweaker program like windows has runs and scans and says you should change this turn this on turn that off like Tweak IT that was for windows in the past.. any way i can fix things? or just unplug all USBS and reboot as unraid isnt responding really.. like VMS just stuck Quote Link to comment
comet424 Posted June 30, 2021 Author Share Posted June 30, 2021 update after 3 reboots system devices finally worked and vms here is the page but its still acting funny would Extended Fix Common issues find errors? Quote Link to comment
ghost82 Posted June 30, 2021 Share Posted June 30, 2021 3 minutes ago, comet424 said: but its still acting funny what does it mean? Quote Link to comment
comet424 Posted July 2, 2021 Author Share Posted July 2, 2021 just means unraid was not responding... vm page wasnt loading.. things taking along time to load in unraid on the dashboard.. had some weird error... i havent worked on vm for a few days as i didnt have time.. and i returned that termius usb thing i guess i need CPU with built on board video to get that type to work and then i installed a usb manager from another person he said to install as i wrote in the future features request.. Quote Link to comment
comet424 Posted July 8, 2021 Author Share Posted July 8, 2021 @ghost82 so i ended up rma my nvme as i having flaky issues and then my Home assistant VM broke spent all day on that.. but i tried my usb sound card i use for Volumio that i set to 24bit 44hz to get out the crackly as it runs as a VM if i use the same soundcard for windows 10 machine so i can use it to play to a projector.. it still stops and starts using VLC player using a tv and my usb as the audio as you can see in the videos i posted.. i didnt do a video of the Mixer as and the DJ software as i was just testing the sound card.. i set all the MSI util when i ran it i check boxed them all.. but hopefully you can hear the audio cut out i used my cell.... video play back seems ok just not the audio... i also have problems trying to pass the Onboard Audio you can check it for sound card in VM but windows cant see it if you do the onboard in the VM for Volumio it actually wont boot up the VM for some reason but here is my Onedrive link https://1drv.ms/u/s!AkZ74ugB21knumJX1YGm9TE0vcVR?e=iRPBvW Quote Link to comment
ghost82 Posted July 8, 2021 Share Posted July 8, 2021 If you passed through the usb controller and you still have issues, I have no idea, sorry. Quote Link to comment
comet424 Posted July 8, 2021 Author Share Posted July 8, 2021 ah crap i had to uncheck it because i was dealing with a different vm and was having issues.. ill re try that enable the check marks probably amd x570 doesnt like windows 10vm as it works ok in Volumio no poping you heard in that videos maybe you can only pass pci sound card or a Video card hdmi audio and not a USB audio i dunno the tribulations of vms right lol Quote Link to comment
Recommended Posts
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.