Ask Your Question
0

failed to initialize KVM: Operation not permitted

asked 2011-12-04 14:28:42 -0500

kenneth-jiang gravatar image

When I tried to spawn an instance, I got this error in nova-compute.log

2011-12-04 06:16:06,297 ERROR nova.compute.manager [-] Instance '3' failed to spawn. Is virtualization enabled in the BIOS? Details: internal error Process exited while reading console log output: char device redirected to /dev/pts/3 open /dev/kvm: Permission denied failed to initialize KVM: Operation not permitted (nova.compute.manager): TRACE: Traceback (most recent call last): (nova.compute.manager): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 438, in _run_instance (nova.compute.manager): TRACE: network_info, block_device_info) (nova.compute.manager): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 131, in wrapped (nova.compute.manager): TRACE: raise Error(str(e)) (nova.compute.manager): TRACE: Error: internal error Process exited while reading console log output: char device redirected to /dev/pts/3 (nova.compute.manager): TRACE: open /dev/kvm: Permission denied (nova.compute.manager): TRACE: failed to initialize KVM: Operation not permitted (nova.compute.manager): TRACE: (nova.compute.manager): TRACE:

I chgrp'ed /dev/kvm to "kvm", and even chmod'ed to 777:

ls -l /dev/kvm

crwxrwxrwx+ 1 root kvm 10, 232 2011-11-28 14:14 /dev/kvm

Also

kvm-ok

INFO: /dev/kvm exists KVM acceleration can be used

What else can I do to further investigate this problem?

Your help is really appreciated!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-12-04 17:00:36 -0500

kenneth-jiang gravatar image

Problem solved by rebooting the server. My gut feeling is that is has something to do with my manually "modprobe kvm kvm_intel".

If anyone can educate me (and probably other people who come across this post) with more details it'll be highly appreciated!

edit flag offensive delete link more
0

answered 2011-12-04 14:35:07 -0500

kenneth-jiang gravatar image

As the server is in data center, I can't check if "virtualization enabled in the BIOS". But I assumed it is as "kvm-ok" runs fine.

edit flag offensive delete link more
0

answered 2011-12-04 14:41:33 -0500

kenneth-jiang gravatar image

And the CPUs do support virtualization:

grep --color vmx /proc/cpuinfo

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 pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm dts tpr_shadow vnmi flexpriority ept vpid 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 pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm dts tpr_shadow vnmi flexpriority ept vpid 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 pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm dts tpr_shadow vnmi flexpriority ept vpid 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 pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm dts tpr_shadow vnmi flexpriority ept vpid

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: 2011-12-04 14:28:42 -0500

Seen: 364 times

Last updated: Dec 04 '11