One user account A, could run qemu VMs with kvm enabled, with the option -enable-kvm.
But user A does not have access to /dev/kvm. The related user groups and /dev/kvm permission is as follows.
$ id
uid=1004(A) gid=1004(A) groups=1004(A),100(users)
$ stat /dev/kvm
File: /dev/kvm
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 0,5 Inode: 714 Links: 1 Device type: 10,232
Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 104/ kvm)
According to [SOLVED] Qemu with KVM fails, permission denied and other posts, users need to have access to /dev/kvm to use kvm-enabled qemu VMs.
This is usually done by putting a user into the group kvm.
Why user A is able to use qemu VMs with KVM?
System information:
- Debian GNU/Linux 12 (bookworm)
- installed with a live iso