My local user belongs to the group libvirt and I launch virt-manager. I create
a new virtual machine. When I choose the default "Virtual Network (default):
NAT" and click "Finish" I receive the following stack trace.
Unable to complete install: 'internal error Process exited while reading
console log output: char device redirected to /dev/pts/8
open /dev/kvm: Permission denied
failed to initialize KVM: Operation not permitted
'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1643, in
do_install
guest.start_install(False, meter=meter)
File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1186, in
start_install
start_xml, final_xml, is_initial)
File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1245, in
_create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1686, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error Process exited while reading console log output:
char device redirected to /dev/pts/8
open /dev/kvm: Permission denied
failed to initialize KVM: Operation not permitted
The permissions of /dev/kvm have group rw for libvirt
crw-rw----+ 1 root libvirt 10, 232 Jul 28 12:47 /dev/kvm
If I change the permissions of /dev/kvm to 777 I can create a virtual machine.
I would prefer not to fall back to world writable permissions to make a new VM.