Ask Your Question
0

failed to intialize kvm hypervisor: permission denied

asked 2014-12-15 00:04:10 -0600

hi,

i installed Icehouse on ubuntu machine, i successfully launched the instance for some time being the instance was active and running. the very next day i am facing this error where my instance status remains SHUTOFF even after i tried nova start INSTANCE-ID

the following is /var/log/libvirt/libvirtd.log


2014-12-15 05:19:53.894+0000: 1441: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:19:53.894+0000: 1441: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:20:10.010+0000: 1442: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:20:10.010+0000: 1442: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:32:06.943+0000: 1442: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:32:06.943+0000: 1442: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:41:54.573+0000: 1441: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:41:54.573+0000: 1441: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:42:35.128+0000: 1443: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:42:35.128+0000: 1443: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:42:51.907+0000: 1443: error : qemuMonitorOpenUnix:306 : failed to connect to monitor socket: No such process
2014-12-15 05:42:51.907+0000: 1443: error : qemuProcessWaitForMonitor:1915 : internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied

2014-12-15 05:43:28.732+0000: 1438: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
edit retag flag offensive close merge delete

Comments

Check :-

lsmod | grep kvm
ls -l   /dev/kvm

Try :-

chmod go+rx /var/lib/libvirt/images
chmod o-rwx /var/lib/libvirt/images/*
dbaxps gravatar imagedbaxps ( 2014-12-15 01:58:27 -0600 )edit

Post also /var/log/libvirt/qemu/your-vm.log

dbaxps gravatar imagedbaxps ( 2014-12-15 02:04:02 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-15 05:25:09 -0600

Hi, Check your /dev/kvm file it should have root owner and kvm group. if it isn't run chown root:kvm /dev/kvm

edit flag offensive delete link more
0

answered 2016-08-03 10:12:04 -0600

dbaxps gravatar image

As of now I have just ran "instack-virt-setup" on CentOS 7.2 (1604) with no problems.
Config
image description

edit flag offensive delete link more
0

answered 2016-08-03 09:58:18 -0600

jckreddy gravatar image
This is for Centos users 
Faced similar issue

Resolved with below steps

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

     systemctl restart libvirtd.service
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: 2014-12-15 00:04:10 -0600

Seen: 10,630 times

Last updated: Aug 03 '16