We took a look. After installing qemu-kvm and libvirt (and virt-manager) /dev/kvm has the right permissions and ownership. User ubuntu is able to run kvm. However when doing
you see that when it tries to open /dev/kvm it gets -EACCESS.
Doing 'rmmod kvm_intel kvm; modprobe kvm_intel' results in /dev/kvm being created with the exact same owner/perms as before, but now libvirt-qemu is able to open the device.
Thanks for bringing the laptop.
We took a look. After installing qemu-kvm and libvirt (and virt-manager) /dev/kvm has the right permissions and ownership. User ubuntu is able to run kvm. However when doing
sudo -u libvirt-qemu strace -f -o/tmp/outout kvm -vnc :1
you see that when it tries to open /dev/kvm it gets -EACCESS.
Doing 'rmmod kvm_intel kvm; modprobe kvm_intel' results in /dev/kvm being created with the exact same owner/perms as before, but now libvirt-qemu is able to open the device.
I did not think to look at the acls.