February 14, 20179 yr every time I try to start the vm I get this error internal error: qemu unexpectedly closed the monitor: 2017-02-14T14:36:58.603661Z qemu-system-x86_64: -device vfio-pci,host=03:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio: failed to set iommu for container: Operation not permitted 2017-02-14T14:36:58.603701Z qemu-system-x86_64: -device vfio-pci,host=03:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio: failed to setup container for group 14 2017-02-14T14:36:58.603708Z qemu-system-x86_64: -device vfio-pci,host=03:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio: failed to get group 14 2017-02-14T14:36:58.603725Z qemu-system-x86_64: -device vfio-pci,host=03:00.0,id=hostdev0,bus=pci.0,addr=0x5: Device initialization failed I'm running a supermicro X8DTL-3F- http://www.supermicro.com/products/motherboard/QPI/5500/X8DTL-3F.cfm 2 e5620's 24gb ecc ram hd4850 gpu Any ideas guys?
February 14, 20179 yr are you giving it the audio on the card as well? you need to. Will probably be device 03:00.1 Just select it in the audio dropdown in the vm editor and restart. If that doesn't fix it, then post your iommu group 14 device (Tools tab>system devices). If there are other devices in there besides your video and audio, then other steps will be needed.
February 14, 20179 yr Author IOMMU group 14 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RV770 [Radeon HD 4850] [1002:9442] 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] RV770 HDMI Audio [Radeon HD 4850/4870] [1002:aa30] gave it the sound controller and the same thing
February 14, 20179 yr may need to try allowing unsafe interrupts. I had the same issue with all my servers- not allowing gpu passthrough until his was changed. to try, add "vfio_iommu_type1.allow_unsafe_interrupts=1" to syslinux.cfg. It will then look like the following label unRAID OS menu default kernel /bzimage append vfio_iommu_type1.allow_unsafe_interrupts=1 initrd=/bzroot this can be done easily by clicking main tab, then scroll down to and click Flash (under boot device.) scroll down to Syslinux Configuration, make changes, click apply, then reboot.
February 14, 20179 yr Author well the vm has booted, Im romoted into the network at the moment so i will confirm later. Thanks for the help
February 14, 20179 yr but the error is gone, right? (one step at a time...) try switching which output you're using, and/or only use 1 at a time for the moment.
February 25, 20179 yr Having the same issue but with a GT730 on my Intel S5500BC board. IOMMU group 18 [10de:1287] 02:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 730] (rev a1) [10de:0e0f] 02:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1) "vfio_iommu_type1.allow_unsafe_interrupts=1" is certainly needed if your system doesn't support interrupt remapping (like mine). VM is starting, no errors but black screen. Cheking dmesg gives me the following lines: vfio-pci 0000:02:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff vfio-pci 0000:02:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff Message goes away if I use GPU's ROM dump in the VM's xml declaration but sadly same black screen is happening. I'm not sure exactly where the issue lies, but I believe it has to do with the fact that the motherboard uses the GPU I want to passthrough as it's the default output GPU during system boot. Sadly there is no option in BIOS to switch from iGPU to GPU. Dunno if disabling the GPU framebuffer via kernel parameters (like video=efifb:off,vesafb:off) could help or another option I don't know. I tried stubbing the card ID in kvm.conf options but no difference. Other options I tried are "pcie_acs_override=downstream" and "i915.enable_hd_vgaarb=1" again with no difference. Others said that despite having this dmesg output, their GPU passthrough worked ok (https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/open-source-amd-linux/45819-radeon-0000-01-00-0-invalid-rom-contents) so it might not be an actual problem... Any hints here? Edited February 26, 20179 yr by mfilos
Archived
This topic is now archived and is closed to further replies.