You are not logged in.

#1 2009-04-10 00:38:37

_lunix_
Member
From: Sydney Australia
Registered: 2008-10-31
Posts: 17
Website

kvm qemu in testing no longer lets me run 64bit guests

Hi all,

I upgraded my dell 1420 to testing last night.

[lunix@godzilla ~]$ uname -a
Linux godzilla 2.6.29-ARCH #1 SMP PREEMPT Wed Apr 8 12:39:28 CEST 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 15
model name    : Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping    : 11
cpu MHz        : 800.000
cache size    : 4096 KB
physical id    : 0
siblings    : 2
core id        : 1
cpu cores    : 2
apicid        : 1
initial apicid    : 1
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 syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida tpr_shadow vnmi flexpriority
bogomips    : 4390.87
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

[lunix@godzilla ~]$ lsmod | grep kvm
kvm_intel              45768  0
kvm                   165632  1 kvm_intel

There is a few big changes with the way KVM now works.
qemu-kvm no longer exists and is replaced with qemu --enable-kvm
There is also a -cpu switch. Not exactly sure what this is for yet ??

vmuser@godzilla ~]$ qemu -cpu ?
x86           qemu32
x86          coreduo
x86              486
x86          pentium
x86         pentium2
x86         pentium3
x86           athlon
x86             n270

So here is my problem.
I can start up guests running a 32bit OS but not guests running a 64bit OS. These are existing guests I was using prior to the upgrade.
This is what I used to use to start up a guest

/usr/bin/qemu-kvm -name puppetmaster -smp 1 -m 512 -vnc :1 -daemonize -localtime -usb -usbdevice tablet -net nic,macaddr=00:16:30:01:00:01,model=e1000,vlan=0 -net vde,sock=/var/run/vde.ctl,vlan=0 -pidfile /home/vmuser/run/puppetmaster.pid -boot c -drive index=0,media=disk,if=ide,file=/home/vmuser/vdisks/puppetmaster/disk1.img -drive index=1,media=disk,if=ide,file=/home/vmuser/vdisks/puppetmaster/swap.img

For testing I have stripped this down to a simple command

qemu -cpu coreduo --enable-kvm -m 512 -hda /home/vmuser/vdisks/puppetmaster/disk1.img

Once this starts up I get a grub screen then it starts to boot and I get a message stating

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

Am I doing something wrong here or is there a bug

Thanks

Mick
_lunix_

Offline

Board footer

Powered by FluxBB