Fedora 29 and GPU Passthrough Permission Denied

Add Connection... yes. When trying to autoconnect to Hypervisor: QEMU/KVM user session, error message appears:

Virtual Machine Manager Connection Failure
Unable to connect to libvirt qemu:///session.
Verify that the ‘libvirtd’ daemon is running.
Would you still like to remember this connection?

Detals:

Unable to connect to libvirt qemu:///session.

Verify that the 'libvirtd' daemon is running.

Libvirt URI is: qemu:///session

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1012, in _do_open
    self._backend.open(connectauth.creds_dialog, self)
  File "/usr/share/virt-manager/virtinst/connection.py", line 138, in open
    open_flags)
  File "/usr/lib64/python3.7/site-packages/libvirt.py", line 104, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

I chose yes to no avail.

Weird, mind checking if a reboot fixes the issue with the daemon automatically starting up?

sudo systemctl enable libvirtd && reboot

I actually sudo systemctl enable libvirtd-ed it a little while before you mentioned it, but didn’t reboot. But I just did, and still the same thing.

Hmm, do you have the virtualozation options enabled in the uefi?

vt-x & vt-d for intel
iommu for amd

cat /proc/cpuinfo

$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping	: 3
microcode	: 0x25
cpu MHz		: 1740.076
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
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 cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips	: 6584.97
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping	: 3
microcode	: 0x25
cpu MHz		: 1605.803
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 4
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
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 cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips	: 6584.97
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping	: 3
microcode	: 0x25
cpu MHz		: 1735.145
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 4
apicid		: 4
initial apicid	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
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 cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips	: 6584.97
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping	: 3
microcode	: 0x25
cpu MHz		: 1515.922
cache size	: 6144 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 6
initial apicid	: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
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 cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips	: 6584.97
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

I’ll go check my settings there now.

Fastboot :Disabled
Intel Virtualization Technology: Enabled
Intel TXT(LT) Support: Disabled
VT-d: Enabled
Windows 8 Features: Other OS
Boot Mode Selection: UEFI and … (forgot to check and what)

Son of a gun. Okay check the file ownerships by checking the conf as per described here:

I actually have no libvirt-sock and libvirt-sock-ro files in /var/run/libvirt. I’m calling it a night for now, I think I’ll have to look into the libvirt-sock file tomorrow.

Allrighty. I’m a bit baffled tho, never encountered similar issues myself you’re having.
Going back to square one - make sure you’ve got all packages and dependencies installed.

sudo dnf groupinstall “Virtualization Host”

Edit: Iirc it’s called ‘Virtualization Host’, check with ‘dnf grouplist’

OP try this just to cover the bases
$ sudo dnf install -y @virtualization

1 Like

Sometimes starting from scratch is recommended

2 Likes

Thank you all very much for helping. My weekend is over so I have much less hobby time now unfortunately. I’ll do what little I can until my next days off.

Yes sir, I’ll get started right away.

I have done this one before somewhere along the way, but I tried it again after you mentioned it. No success. But thanks!

Yeah, like right now.

2 Likes
$ sudo dnf groupinstall “Virtualization Host”
Fedora 29 openh264 (From Cisco) - x86_64        700  B/s | 543  B     00:00    
Fedora Modular 29 - x86_64                       41 kB/s |  18 kB     00:00    
Fedora Modular 29 - x86_64 - Updates             31 kB/s |  15 kB     00:00    
Fedora 29 - x86_64 - Updates                     28 kB/s |  14 kB     00:00    
Fedora 29 - x86_64                               40 kB/s |  18 kB     00:00    
google-chrome                                    18 kB/s | 1.3 kB     00:00    
virtio-win builds roughly matching what was shi 4.1 kB/s | 3.0 kB     00:00    
Warning: Module or Group '“Virtualization' does not exist.
Warning: Module or Group 'Host”' does not exist.
Error: Nothing to do.

There is dnf install @virtualization like @gordonthree mentioned. That one didn’t install anything new either.

I’m going through the Fedora guide for as much as I can. I’ll update when I’m on it.

The VM needed to be created within the QEMU/KVM server, not the QEMU/KVM User session. There might be a lot more going on in the background since I’ve tried different things in the meantime, but I think that did the job. Thank you all for the help!