fonts Posted January 12, 2016 Share Posted January 12, 2016 ok so here goes i had unraid working fine with a virtual machine and graphics and sound passed through to the guest but unfortunately i broke unraid and had to reinstall. i got a brand new usb setup the array and let the parity run and everything was sweet. i then spent the next couple of nights figuring out how to passthrough the SSD drive to the guest. got that all running sweet with graphics card via vnc. now every time i try and pass through the graphics to the guest my unraid locks up and i have to force restart the machine. i originally had issues with the graphics not working and crashing when starting the vm and i had to run it with PCIE override set to YES, i then did some more reading and found if i move the graphics card to a different slot this will fix the issue ( by moving the graphics card to a different IOMMU group) and it did so i changed PICE override back to NO and it ran perfectly, so i dont understand why it keeps breaking now. here is my config for the test guest i have just created. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> <name>test</name> <uuid>be347bf8-466f-d5d6-28b7-092170b01cdb</uuid> <metadata> <vmtemplate name="Custom" icon="windows.png" os="windows"/> </metadata> <memory unit='KiB'>524288</memory> <currentMemory unit='KiB'>524288</currentMemory> <memoryBacking> <nosharepages/> <locked/> </memoryBacking> <vcpu placement='static'>1</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> </cputune> <os> <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> </hyperv> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='1' threads='1'/> </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/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source file='/mnt/disk4/test.img'/> <target dev='hdb' bus='virtio'/> <boot order='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='mnt/disk1/apps/Apps/Microsoft/8.1 Enterprise/SW_DVD5_SA_Win_Ent_8.1_64BIT_English_MLF_X18-96759.ISO'/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:3f:c9:e0'/> <source bridge='br0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/test.org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x0566'/> <product id='0x3055'/> </source> </hostdev> <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x046d'/> <product id='0xc52b'/> </source> </hostdev> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> <qemu:commandline> <qemu:arg value='-device'/> <qemu:arg value='ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=2,chassis=1,id=root.1'/> <qemu:arg value='-device'/> <qemu:arg value='vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/> <qemu:arg value='-device'/> <qemu:arg value='vfio-pci,host=00:1b.0,bus=root.1,addr=01.0'/> </qemu:commandline> </domain> any ideas or suggestions on what i can try would be great. thanks in advanced storage-diagnostics-20160112-1900.zip Quote Link to comment
saarg Posted January 12, 2016 Share Posted January 12, 2016 Try passing through your graphics card audio device also. There have been a few reports about this causing trouble lately. Quote Link to comment
fonts Posted January 12, 2016 Author Share Posted January 12, 2016 Try passing through your graphics card audio device also. There have been a few reports about this causing trouble lately. aaaaaaaaand you my friend are a legend,that seems to have done the trick. any ideas why it would have worked fine before using the onboard sound card ? Quote Link to comment
saarg Posted January 12, 2016 Share Posted January 12, 2016 Try passing through your graphics card audio device also. There have been a few reports about this causing trouble lately. aaaaaaaaand you my friend are a legend,that seems to have done the trick. any ideas why it would have worked fine before using the onboard sound card ? I have no idea why Quote Link to comment
fonts Posted January 12, 2016 Author Share Posted January 12, 2016 oh well, thanks for your help 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.