Ubuntu - /dev/kvm permission denied

Bug #1264074 reported by Sergey Galkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Undecided
Vladimir Kuklin

Bug Description

ISO: fuel-4.0-200-2013-12-24_15-55-47.iso
Steps to reproduce:
1. With libvirt 1.2.0 and qemu 1.6.1 create VM#1 with 2 virtio net card for controller and VM#2 with 1 virtio net card Fuel
2. Install Fuel on VM#1
3. Create a new OpenStack environment with nova network on Ubuntu 12.04 with VM#2 as controller and Supermicro 1 Xeon e3-1220, 16GB, HDD: 2x1TB, 3 networks server as compute.
4. Select KVM for compute.
5. After successful deploy try to launch instance.

Launch of all instances failed with error
 File "/usr/lib/python2.7/dist-packages/libvirt.py", line 711, in createWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u'libvirtError: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3\n
Could not access KVM kernel module: Permission denied\nfailed to initialize KVM: Permission denied\nNo accelerator found!\n\n']

Revision history for this message
Sergey Galkin (sgalkin) wrote :
Changed in fuel:
importance: Undecided → Critical
milestone: none → 4.0
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

please post output of `cat /proc/cpuinfo` and `lsmod | grep kvm` on all the hosts

Changed in fuel:
status: New → Incomplete
Revision history for this message
Sergey Galkin (sgalkin) wrote :
Download full text (3.9 KiB)

root@node-6:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz
stepping : 9
microcode : 0x12
cpu MHz : 3101.000
cache size : 8192 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips : 6199.73
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz
stepping : 9
microcode : 0x12
cpu MHz : 3101.000
cache size : 8192 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips : 6199.73
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz
stepping : 9
microcode : 0x12
cpu MHz : 3101.000
cache size : 8192 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips : 6199.73
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz
stepping : 9
microcode : 0x12
cpu MHz : 3101.000
cache size : 8192 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu...

Read more...

Revision history for this message
Andrey Korolyov (xdeller) wrote :

Enable nested virt please and pass vmx bit to the guest neither use 'qemu' vm model. Closing as invalid.

Changed in fuel:
importance: Critical → Undecided
status: Incomplete → Invalid
Revision history for this message
Sergey Galkin (sgalkin) wrote :

@Andrey Korolyov this is hardware compute node.

Changed in fuel:
status: Invalid → Incomplete
Revision history for this message
Sergey Galkin (sgalkin) wrote :

Found this:

/var/log/daemon.log:<27>Dec 25 12:41:59 node-6 udevd[388]: specified group 'kvm' unknown
/var/log/daemon.log:<27>Dec 25 12:42:25 node-6 udevd[388]: specified group 'kvm' unknown

Sergey Galkin (sgalkin)
summary: - Ubuntu - failed to initialize KVM
+ Ubuntu - /dev/kvm permission denied
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

fixed by updating qemu-kvm to the newer 1.2.0-...12.10.5 minor version

Changed in fuel:
status: Incomplete → Fix Committed
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: Fix Committed → Fix Released
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: nobody → Vladimir Kuklin (vkuklin)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.