LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   QEMU running on Ubuntu vmware guest cannot find /dev/kvm (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-running-on-ubuntu-vmware-guest-cannot-find-dev-kvm-936253/)

jerrywrice_fabnexus 03-24-2012 06:24 PM

QEMU running on Ubuntu vmware guest cannot find /dev/kvm
 
I've installed QEMU (qemu-kvm-0.12.3) on my VMWare guest 'Ubuntu 10.04LTS' system, which all runs on a physical SONY VAIO x86-64 Intel laptop. Although not relevant, the VMWare host system is Windows 7.

When I execute 'qemu linux-0.2.img', the output is

open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support

I've confirmed that /dev/kvm doesn't exist.
I've confirmed that hardware virtualization is enabled in my VAIO BIOS.

Other posts have indicated I should do a 'modprobe kvm-intel'. When I do this, I get the following error message =>

FATAL: Error inserting kvm_intel (/lib/modules/2.6.32-38-generic/kernel/arch/x86/kvm/kvm-intel.ko): Operation not supported

The output from 'lsmod | grep kvm' is the single line

kvm 245573 0

The output from command 'cat /proc/cpuinfo' is


processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 30
model name : Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz
stepping : 5
cpu MHz : 1729.270
cache size : 6144 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx rdtscp lm constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm ida
bogomips : 3458.54
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:


Since the /proc/cpuinfo listing doesn't mention 'vmx', does this mean that QEMU (or KVM) will not function while running on a VMWare Ubuntu guest?

Any suggestions on how to resolve this are appreciated.

Jerry

KenJackson 03-24-2012 09:54 PM

Quote:

Originally Posted by jerrywrice_fabnexus (Post 4635408)
I've installed QEMU (qemu-kvm-0.12.3) on my VMWare guest 'Ubuntu 10.04LTS' system, ...

FATAL: Error inserting kvm_intel (/lib/modules/2.6.32-38-generic/kernel/arch/x86/kvm/kvm-intel.ko): Operation not supported

I don't think you can run KVM inside a KVM guest, and the error message seems to confirm my belief.

But I think you can run the QEMU emulator without acceleration.

jerrywrice_fabnexus 03-25-2012 12:10 AM

Will look into this.

dyasny 03-25-2012 03:16 AM

you are running vmware, and in it, you are trying to run kvm. Even if vmware provides nested virtualization (I think that appeared only in WS8), nobody will say for sure, that the way vmware nests the VT and VT-d instructions fits anything but another instance of vmware.

If you want to try kvm, it would be best to install it on the laptop itself


All times are GMT -5. The time now is 09:24 PM.