2015-09-29 08:42:12 |
Steven Dake |
description |
[00:14:13] <sdake> 2015-09-29 07:13:17.211 1 ERROR nova.compute.manager [instance: c037ca7f-2e97-4eef-abe5-840b5a72feeb] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
[00:14:13] <sdake> 2015-09-29 07:13:17.211 1 ERROR nova.compute.manager [instance: c037ca7f-2e97-4eef-abe5-840b5a72feeb] libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
[00:14:13] <sdake> 2015-09-29 07:13:17.211 1 ERROR nova.compute.manager [instance: c037ca7f-2e97-4eef-abe5-840b5a72feeb] failed to initialize KVM: Permission denied
[00:16:46] <sdake> [sdake@minime-02 log]$ ls -l /dev/kvm
[00:16:46] <sdake> crw-------. 1 root root 10, 232 Sep 29 01:19 /dev/kvm
[00:19:54] <sdake> [sdake@minime-02 etc]$ docker exec nova_libvirt ls /etc/libvirt
[00:19:54] <sdake> libvirt.conf
[00:19:54] <sdake> libvirtd.conf
[00:20:11] <inc0> yay
[00:20:15] <inc0> we have a bug
[00:20:40] <sdake> the correct file is libvirt.conf
[00:20:44] <sdake> the one written is libvirtd.conf |
The /dev/kvm needs to be owned by root:kvm 660 but it is owned by root:root 600. CentOS sets GID to KVM and drops root permissions, so it can't access the KVM file. Further complicating matters, /etc/libvirt/libvirtd.conf cannot be read by this version of libvirt unless the permissions are 644. |
|