kvm: Permission Denied

查看nova-compute.log

2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]     rv = execute(f, *args, **kwargs)
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]     six.reraise(c, e, tb)
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]     rv = meth(*args, **kwargs)
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1059, in createWithFlags
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7] libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
2016-06-27 01:53:07.069 15643 ERROR nova.compute.manager [instance: d01d1cdf-efeb-441e-8ba2-5b86e1bfefa7] failed to initialize KVM: Permission denied


=====

google说是/dev/kvm权限不对。

[root@centos7 ~]# ll /dev/kvm 

crw------- 1 root root 10, 232 Jun 26 23:06 /dev/kvm

[root@centos7 ~]# rmmod kvm_intel
[root@centos7 ~]# rmmod kvm
[root@centos7 ~]# modprobe kvm
[root@centos7 ~]# modprobe kvm_intel
[root@centos7 ~]# ll /dev/kvm
crw-rw-rw- 1 root kvm 10, 232 Jun 27 02:17 /dev/kvm


问题解决。

你可能感兴趣的:(kvm,openstack)