Error starting domain: unsupported configuration: host doesn't support passthrough of host PCI devices

Latest response

Error starting domain: unsupported configuration: host doesn't support passthrough of host PCI devices

Responses

Host PCI device passthrough works on compliant hardware with RHEL 7.1 (tested, no idea about 7.0) with kernel boot parameter intel_iommu=on.

Hi,

Trying to passthrough VF PCI address to the VM, but getting error listed as follow:

        [root@sm2 VMs]# virsh start smapp101.smaarts.lan
                        error: Failed to start domain smapp101.smaarts.lan
                        error: unsupported configuration: host doesn't support passthrough of host PCI devices

I already check VT-d and intel_iommu have been enabled:

[root@sm2 VMs]# grep -E "vmx|svm" /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
flags

…..

[root@sm2 VMs]# dmesg | grep -e DMAR -e IOMMU
[ 0.000000] ACPI: DMAR 000000007b7e7000 00356 (v01 HP ProLiant 00000001 HP 00000001)
[ 0.036994] dmar: IOMMU 0: reg_base_addr fbffc000 ver 1:0 cap d2078c106f0466 ecap f020df
[ 0.037000] dmar: IOMMU 1: reg_base_addr c7ffc000 ver 1:0 cap d2078c106f0466 ecap f020df
[ 0.037123] IOAPIC id 10 under DRHD base 0xfbffc000 IOMMU 0
[ 0.037124] IOAPIC id 8 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.037124] IOAPIC id 9 under DRHD base 0xc7ffc000 IOMMU 1

VFs were unbound and appended to the VM XML config file.

When checking the logs I’m getting messages listed as follow:

Oct 14 00:49:14 sm2 journal: unsupported configuration: host doesn't support passthrough of host PCI devices
Oct 14 00:49:14 sm2 journal: Failed to open file '/var/run/libvirt/hostdevmgr/ens3f0_vf0': No such file or directory
Oct 14 00:49:14 sm2 journal: Failed to open file '/var/run/libvirt/qemu/ens3f0_vf0': No such file or directory
Oct 14 00:49:14 sm2 journal: Failed to open file '/var/run/libvirt/hostdevmgr/ens3f0_vf1': No such file or directory
Oct 14 00:49:14 sm2 journal: Failed to open file '/var/run/libvirt/qemu/ens3f0_vf1': No such file or directory

I am facing a similar issue when I virsh create pci passthrough. [root@localhost ~]# virsh create /root/vm_3.xml error: Failed to create domain from /root/vm_3.xml error: unsupported configuration: host doesn't support passthrough of host PCI devices

I have made changes into /boot/grub.conf file and appended "intel_iommu=on" Supports Intel VT:Enable

Did you solved your issue? Can you share? Thanks

Change --> /boot/grub.conf file and appended "intel_iommu=on" Supports Intel VT:Enable - also works for me