You are not logged in.

#1 2025-05-25 01:15:48

pwouik
Member
Registered: 2025-02-08
Posts: 7

virt manager: Could not access KVM kernel module: No such file or dire

when creating the vm, at some point I started getting this

2025-05-25T01:02:40.655441Z qemu-system-x86_64: -accel kvm: Could not access KVM kernel module: No such file or directory
2025-05-25T01:02:40.655462Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory »

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 726, in start_install
    domain = self._create_guest(
            guest, meter, initial_xml, final_xml,
            doboot, transient)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
  File "/usr/lib/python3.13/site-packages/libvirt.py", line 4590, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2025-05-25T01:02:40.655441Z qemu-system-x86_64: -accel kvm: Could not access KVM kernel module: No such file or directory
2025-05-25T01:02:40.655462Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory

modprobe kvm-intel report no problems, vtx is enabled in bios
libvirtd service is running

~ dkms status
i915-sriov-dkms/2025.05.11, 6.14.7-arch2-1, x86_64: installed (Original modules exist)
looking-glass/B7, 6.14.7-arch2-1, x86_64: installed

Offline

#2 2025-05-27 23:04:00

pwouik
Member
Registered: 2025-02-08
Posts: 7

Re: virt manager: Could not access KVM kernel module: No such file or dire

it is working after using:
chown root:kvm /dev/kvm
but it come back everytime virt manager does something

I tried creating this udev rule as some recommend but it doesn't change anything:
/etc/udev/rules.d/65-kvm.rules
KERNEL=="kvm", GROUP="kvm", MODE="0666"

Offline

#3 2025-05-28 11:33:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,877

Re: virt manager: Could not access KVM kernel module: No such file or dire

Please post the output of

stat /dev/kvm

after a fresh boot.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2025-05-30 10:28:17

pwouik
Member
Registered: 2025-02-08
Posts: 7

Re: virt manager: Could not access KVM kernel module: No such file or dire

Fichier : /dev/kvm
   Taille : 0             Blocs : 0          Blocs d'E/S : 4096   fichier spécial de caractères
Périphérique : 0/6    Inœud : 742         Liens : 1     Type de périph. : 10,232
Accès : (0660/crw-rw----)  UID : (    0/    root)   GID : (  946/ plugdev)
Accès : 2025-05-30 12:26:33.070215160 +0200
Modif. : 2025-05-30 12:26:33.070215160 +0200
Changt : 2025-05-30 12:26:33.070215160 +0200
  Créé : 2025-05-30 12:26:18.587999863 +0200

Offline

#5 2025-05-30 10:32:08

pwouik
Member
Registered: 2025-02-08
Posts: 7

Re: virt manager: Could not access KVM kernel module: No such file or dire

I grepped plugdev in etc and it was only stuff from the leapmotion sdk, after unistalling it I correctly have the kvm group on kvm

Offline

#6 2025-05-31 12:29:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,877

Re: virt manager: Could not access KVM kernel module: No such file or dire

If that comes from a repo / aur package, it probably needs changes to prevent the issue.

In case of 3rd party software, it may be one of the (many) cases where upstream instructions fail on archlinux.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB