Ask Your Question
0

Could not access KVM kernel module: Permission denied\nfailed to initialize KVM

asked 2016-08-02 08:42:00 -0600

jckreddy gravatar image
While installing launching instance encountered with below error 

 ERROR nova.scheduler.utils [req-e9ed3ed3-a1e4-4230-9b8e-e1773dbbb48b e992f26acdc945ddaa971b9bba0fa2d3 0f99344d13e14359a277ae2e497ba145 - - -] [instance: a53ebb04-3d4e-4ffe-a1fd-74b78531b46a] Error from last host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2219, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2362, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance a53ebb04-3d4e-4ffe-a1fd-74b78531b46a was re-scheduled: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied\nfailed to initialize KVM: Permission denied\n\n']

Please any body has solution

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-08-03 07:45:40 -0600

jckreddy gravatar image

updated 2016-08-03 09:33:45 -0600

Thanks  dbaxps 
files has correct permissions

Found solution for this 
As i was using root privileges
I need to change the below mentioned in qemu.conf 
to get permissions for launching VM 

Change the file in  both controller and compute 
     vi /etc/libvirt/qemu.conf 
     #user = root  -> user = root 
     #group = "root" - > group = "root" 

now restart libvirtd service 
     systemctl restart libvirtd.service
edit flag offensive delete link more
1

answered 2016-08-02 09:20:42 -0600

dbaxps gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-08-02 08:42:00 -0600

Seen: 4,230 times

Last updated: Aug 03 '16