Skip to contentSkip to conversation

kvm-18

DISCUSSION Eildert Groeneveld 3 participants 4 messages Apr 13, 2007 3 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hello Folks
I am trying to get kvm going on my bleeding edge kubuntu system (feisty).

the normal apt-get install kvm does not work as the 2.6.20 kernel is missing kvm-api-9

So I grabbed kvm-18 source from sourceforge together with the kernel 2.6.21-rc6

make etc works

but when starting kvm or qemu I get

g@eno:~/kvm$ /usr/local/bin/qemu . -no-acpi -hda winxp.img  -cdrom 
winxp.iso  -boot d -m 512
kvm kernel version too old
Could not initialize KVM, will disable KVM support

I somehow did manage to get the isntallation process going. However it seems that it is so slow that it is basically not operational. Also, the installation never really finished.

Question:
1. how do I know when kvm is using hardware virtualization (the only useful operational mode?)
2. how can I get kvm going given my setup?
I tried kvm-16 on the 2.6.20-14 kernel. that compiled and installed ok Upon starting qemu no complaints about version being too old but it was slooooow (this is dual core 1.66GHz)

greetings

Eildert

Signature · 14 lines
Eildert Groeneveld
===================================================
Institute for Animal Breeding
Mariensee 31535 Neustadt Germany
Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
e-mail: [email protected] http://vce.tzv.fal.de/index.pl
http://www.tzv.fal.de/~eg/ http://apiis.tzv.fal.de/index.pl
===================================================

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Eildert,

Quoted 6 lines

I am trying to get kvm going on my bleeding edge kubuntu system (feisty). [..]
but when starting kvm or qemu I get
[..]
kvm kernel version too old
Could not initialize KVM, will disable KVM support

You preferably configure --prefix=/usr.
The command "make install" will then copy the modules to the /lib/modules/<version>/extra directory which gets searched first. One of "modprobe kvm_intel" and "modprobe kvm_amd" will then load the newly produced modules.

Then start kvm, but fasten your seat belts first.

	--cbe

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 15 lines · Carsten Emde

Eildert,

Quoted 6 lines

I am trying to get kvm going on my bleeding edge kubuntu system (feisty). [..]
but when starting kvm or qemu I get
[..]
kvm kernel version too old
Could not initialize KVM, will disable KVM support

You preferably configure --prefix=/usr.
The command "make install" will then copy the modules to the /lib/modules/<version>/extra directory which gets searched first. One of "modprobe kvm_intel" and "modprobe kvm_amd" will then load the newly produced modules.

Quoted 3 lines

Then start kvm, but fasten your seat belts first.

	--cbe

thanks for the response
even this suggestion does not prevent the kernel modules to be loaded first. Anyway, I used insmod from the extra directory and it seems to load the right models. Now I also know when HW virtualzation is used: in the qemu frame it says QEMU/KVM, good.
It does start up much faster but then:

eg@eno:~/kvm$ /usr/bin/qemu . -hda kubuntu.img  -cdrom kubuntu.iso  -boot 
d  -m 512
exception 13 (0)
rax 000000000000001f rbx 000000000006dffe rcx 0000000000031c21 rdx 
0000000000031c02
rsi 000000000006dffe rdi 000000000004f661 rsp 0000000000007bd6 rbp 
000000000006dfe8
r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 
0000000000000000
rip 0000000000001451 rflags 00033002
cs 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0080 (00000800/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (20850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 40620/f
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
Aborted
eg@eno:~/kvm$                                                         

any idea?

Signature · 14 lines
Eildert Groeneveld
===================================================
Institute for Animal Breeding
Mariensee 31535 Neustadt Germany
Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
e-mail: [email protected] http://vce.tzv.fal.de/index.pl
http://www.tzv.fal.de/~eg/ http://apiis.tzv.fal.de/index.pl
===================================================

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 19 lines · Carsten Emde
Quoted 3 lines

Eildert,

Quoted 1 line

I am trying to get kvm going on my bleeding edge kubuntu system

(feisty).

Quoted 14 lines
Quoted 5 lines

[..]
but when starting kvm or qemu I get
[..]
kvm kernel version too old
Could not initialize KVM, will disable KVM support

You preferably configure --prefix=/usr.
The command "make install" will then copy the modules to the /lib/modules/<version>/extra directory which gets searched first. One of "modprobe kvm_intel" and "modprobe kvm_amd" will then load the newly produced modules.

Then start kvm, but fasten your seat belts first.

Quoted 8 lines
Quoted 1 line
	--cbe

thanks for the response
even this suggestion does not prevent the kernel modules to be loaded first.
Anyway, I used insmod from the extra directory and it seems to load the right
models. Now I also know when HW virtualzation is used: in the qemu

frame it

Quoted 4 lines

says QEMU/KVM, good.
It does start up much faster but then:

eg@eno:~/kvm$ /usr/bin/qemu . -hda kubuntu.img  -cdrom kubuntu.iso

-boot

Quoted 25 lines

d -m 512
exception 13 (0)
rax 000000000000001f rbx 000000000006dffe rcx 0000000000031c21 rdx 0000000000031c02
rsi 000000000006dffe rdi 000000000004f661 rsp 0000000000007bd6 rbp 000000000006dfe8
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
rip 0000000000001451 rflags 00033002
cs 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ds 4004 (00040040/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) fs 0080 (00000800/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) tr 0000 (20850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 40620/f
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
Aborted
eg@eno:~/kvm$

Quoted 2 lines

any idea?

This seems like the known VT real-mode problem.
Cancel the graphical splash screen on the start and it will work fine. In order to cancel it, run it with -no-kvm, change the settings and re-run it normally.
Dor.

Quoted 11 lines

--
Eildert Groeneveld
===================================================
Institute for Animal Breeding
Mariensee 31535 Neustadt Germany
Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239
e-mail: [email protected] http://vce.tzv.fal.de/index.pl
http://www.tzv.fal.de/~eg/ http://apiis.tzv.fal.de/index.pl
===================================================

-----------------------------------------------------------------------

--

Quoted 5 lines

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD

EV

Quoted 4 lines

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV