Error at finalizing KVM/QEMU * qemu-system-x86_64: failed to initialize KVM: Operation not permitted*

Unable to complete install: ‘internal error: process exited while connecting to monitor: Could not access KVM kernel module: Operation not permitted
2019-05-31T06:00:27.471186Z qemu-system-x86_64: failed to initialize KVM: Operation not permitted’

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File “/usr/share/virt-manager/virtManager/create.py”, line 2553, in _do_async_install
guest.start_install(meter=meter)
File “/usr/share/virt-manager/virtinst/guest.py”, line 498, in start_install
doboot, transient)
File “/usr/share/virt-manager/virtinst/guest.py”, line 434, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File “/usr/lib/python2.7/dist-packages/libvirt.py”, line 3603, in createXML
if ret is None:raise libvirtError(‘virDomainCreateXML() failed’, conn=self)
libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Operation not permitted
2019-05-31T06:00:27.471186Z qemu-system-x86_64: failed to initialize KVM: Operation not permitted

I followed this guide to complete this

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF

running Elementary OS (basically ubuntu) atm

specs= HP z200 motherboard with an i7 870 and 2 graphics cards guest OS= GTX 1060 host OS= AMD R7 240

Have not been able to create the kvm at all. The error perse is given at the end when I begin the installation/creation of the windows 10 KVM

are you binding the gpu + gpu audio device through kernel module or through grub?

1 Like

actually i binded the gpu+gpu audio to vfio then specified that those drivers should start at boot time kernel


Are you using libvirt? virt-manager? or just a qemu script? Try libvirt with

sudo virsh start vmname

https://bbs.archlinux.org/viewtopic.php?id=235176