qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor

Bug #621950 reported by bhasker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

Hi,

 The host processor is a 64 bit processor (as below)

  When I run the emulated mode of 64 bit (full emulation) I can run the 64 bit OS fine. when I start using -enable-kvm, I get error message that

"Your CPU does not support long mode. Use a 32bit distribution."

trying to install SuSe linux enterprise server 64 bit

Information ------------------------------------------------------------------------------------------------------------------------------
------------------------------------------
processor cat /proc/cpuinfo

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Quad CPU @ 2.66GHz
stepping : 7
cpu MHz : 2671.246
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow
bogomips : 5342.46
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

------------------------------------------
command line used

qemu-system-x86_64 -enable-kvm -cdrom /img/cd.iso

why is kvm not able to use 64 bit capability in a host which is a 64 bit processor ?

Revision history for this message
Anthony Liguori (anthony-codemonkey) wrote :

Because you're using a 32-bit OS in the host.

Changed in qemu:
status: New → Invalid
Revision history for this message
bhasker (bhasker-unixindia) wrote :

I tried this
                                                                                                                                                    kernel uname: 2.6.32-5-amd64 #1 SMP Sat Jul 24 01:47:24 UTC 2010 x86_64
with version 0.12.5

when tried to use -enable-kvm the system starts out in the 32 bit mode rather than 64 bit. kvm version:
------------------
filename: /lib/modules/2.6.32-5-amd64/kernel/arch/x86/kvm/kvm-intel.ko
license: GPL
author: Qumranet depends: kvm
vermagic: 2.6.32-5-amd64 SMP mod_unload modversions
parm: bypass_guest_pf:bool
parm: vpid:bool
parm: flexpriority:bool
parm: ept:bool
parm: unrestricted_guest:bool
parm: emulate_invalid_guest_state:bool

this problem is still present.

Even if I use qemu-system-x86_64 I am able to run the 64 bit OS only if -enable-kvm is avoided but
the system is very slow.

Changed in qemu:
status: Invalid → New
Revision history for this message
Anthony Liguori (anthony-codemonkey) wrote :

You're host kernel is 64-bit? Please show the full command line you use to launch qemu.

Revision history for this message
agraf (agraf) wrote :

What does
  file `which qemu-system-x86_64`
say?

Revision history for this message
bhasker (bhasker-unixindia) wrote :

oops
I made a mistake
there were old binaries left out.
It is working fine now.

Changed in qemu:
status: New → Invalid
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.