Skip to contentSkip to conversation

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

Qemu-devel bhasker 2 participants 6 messages Aug 21, 2010 – Aug 24, 2010

lore
Share & tools
lore

bhasker

author
#0 lore raw

Public bug reported:

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 ?

** Affects: qemu
Importance: Undecided
Status: New

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

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 ?
#1 lore raw

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

** Changed in: qemu
Status: New => Invalid

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Invalid

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 ?
author
#2 lore raw
In reply to bhasker

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

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

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 ?
#3 lore raw
In reply to bhasker

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

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

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 ?
author
#4 lore raw
In reply to bhasker

What does
file which qemu-system-x86_64
say?

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

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 ?
author
#5 lore raw
In reply to bhasker

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

** Changed in: qemu
Status: New => Invalid

Signature · 58 lines
qemu not able to run 64 bit OS when -enable-kvm is used with a 64 bit processor
https://bugs.launchpad.net/bugs/621950
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Invalid

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 ?