Discussion:
Bug#579810: qemu-kvm: kvm won't run any virtual machine
(too old to reply)
Bruno Miguel
2010-04-30 22:50:01 UTC
Permalink
Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: important

I've installed qemu-kvm under Debian Squeeze and I'm unable to run any virtual
machine. Everytime I try to run an ISO file, this is what happens: http://m
..friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365 If I use qemu
instead of kvm, it works but is extremely slow!


-- Package-specific info:


/proc/cpuinfo:

processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Sempron(tm) 140 Processor
stepping : 2
cpu MHz : 800.000
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc up nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 5399.73
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate




-- System Information:
Debian Release: squeeze/sid
APT prefers squeeze
APT policy: (500, 'squeeze'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=pt_PT.utf8, LC_CTYPE=pt_PT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages qemu-kvm depends on:
ii adduser 3.112 add and remove users and groups
ii bridge-utils 1.4-5 Utilities for configuring the Linu
ii iproute 20100224-5 networking and traffic control too
ii libaio1 0.3.107-7 Linux kernel AIO access library -
ii libasound2 1.0.22-2 shared library for ALSA applicatio
ii libbluetooth3 4.60-1 Library to use the BlueZ Linux Blu
ii libbrlapi0.5 4.1-4 braille display access via BRLTTY
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcurl3-gnutls 7.20.0-3 Multi-protocol file transfer libra
ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr
ii libncurses5 5.7+20100313-2 shared libraries for terminal hand
ii libpci3 1:3.1.7-3 Linux PCI Utilities (shared librar
ii libpulse0 0.9.21-1 PulseAudio client libraries
ii libsasl2-2 2.1.23.dfsg1-5 Cyrus SASL - authentication abstra
ii libsdl1.2debian 1.2.13-5 Simple DirectMedia Layer
ii libuuid1 2.16.2-0 Universally Unique ID library
ii libvdeplug2 2.2.3-3 Virtual Distributed Ethernet - Plu
ii libx11-6 2:1.3.3-3 X11 client-side library
ii python 2.5.4-9 An interactive high-level object-o
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages qemu-kvm recommends:
ii linux-image-2.6.32-3-686 [lin 2.6.32-9 Linux 2.6.32 for modern PCs

Versions of packages qemu-kvm suggests:
pn debootstrap <none> (no description available)
pn samba <none> (no description available)
ii vde2 2.2.3-3 Virtual Distributed Ethernet

-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-04-30 23:00:02 UTC
Permalink
Post by Bruno Miguel
Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: important
I've installed qemu-kvm under Debian Squeeze and I'm unable to run any virtual
machine. Everytime I try to run an ISO file, this is what happens: http://m
..friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365 If I use qemu
Can you provide non-garbled URL please?

Thanks!

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bruno Miguel
2010-04-30 23:00:02 UTC
Permalink
Oh, sorry. Here it is: twitpic.com/1jqqad
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-04-30 23:10:01 UTC
Permalink
Post by Bruno Miguel
Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: important
I've installed qemu-kvm under Debian Squeeze and I'm unable to run any virtual
machine. Everytime I try to run an ISO file, this is what happens: http://m
..friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365 If I use qemu
instead of kvm, it works but is extremely slow!
It's http://friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365 .

There, the very important bits of guest kernel backtrace (OOPS) is
missing, the one which is a few lines above that. Please collect
full backtrace of the guest - you may try to use -curses and
redirect to a file for example.

Also, how about other .iso files?

Note that kvm is used by many people worldwide. Just a few minutes
ago I installed a windows NT 4.0 (!) from an .iso file, and that
was successful and took ~3 minutes (and 12 seconds to boot)...

Thanks!

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bruno Miguel
2010-04-30 23:10:01 UTC
Permalink
Post by Michael Tokarev
Post by Bruno Miguel
Package: qemu-kvm
Version: 0.12.3+dfsg-4
Severity: important
I've installed qemu-kvm under Debian Squeeze and I'm unable to run any virtual
machine. Everytime I try to run an ISO file, this is what happens: http://m
..friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365  If I use
qemu
instead of kvm, it works but is extremely slow!
It's http://friendfeed-media.com/e247ae46b58a9d2e48b98305af1c3437d8ca1365 .
There, the very important bits of guest kernel backtrace (OOPS) is
missing, the one which is a few lines above that.  Please collect
full backtrace of the guest - you may try to use -curses and
redirect to a file for example.
Also, how about other .iso files?
Note that kvm is used by many people worldwide.  Just a few minutes
ago I installed a windows NT 4.0 (!) from an .iso file, and that
was successful and took ~3 minutes (and 12 seconds to boot)...
Thanks!
/mjt
I've tried Ubuntu 9.10 and Ubuntu 10.04 isos and got the exact same
problems. Fedora 13 KDE beta also doesn't work.

How do I redirect the output to a text file? 'kvm -hda ubuntu.img
-cdrom ubuntu-10.04-desktop-i386.iso -m 512M -curses -boot d >
out.put' gives an error message: 'We need a terminal output'.
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-04-30 23:20:01 UTC
Permalink
01.05.2010 03:04, Bruno Miguel wrote:
[]
Post by Bruno Miguel
I've tried Ubuntu 9.10 and Ubuntu 10.04 isos and got the exact same
problems. Fedora 13 KDE beta also doesn't work.
Wonderful... Not!
Post by Bruno Miguel
How do I redirect the output to a text file? 'kvm -hda ubuntu.img
-cdrom ubuntu-10.04-desktop-i386.iso -m 512M -curses -boot d>
out.put' gives an error message: 'We need a terminal output'.
The simplest way I found so far is to run it in screen (install
screen package). When it will OOPS, hit Ctrl+A followed by [ ,
after which you will be able to scroll using arrow keys, and
copy/paste text. Scroll to the place a few lines before the
OOPS start, and copy/paste whole 25 lines - email is best
here.

And oh, don't forget -curses :)

Also, please verify virt. extensions are actually enabled
in the bios, check dmesg on the host (last few lines
related to kvm if any), and provide your host kernel
version.

Thanks!

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bruno Miguel
2010-04-30 23:30:02 UTC
Permalink
[]
Post by Bruno Miguel
I've tried Ubuntu 9.10 and Ubuntu 10.04 isos and got the exact same
problems. Fedora 13 KDE beta also doesn't work.
Wonderful...   Not!
Post by Bruno Miguel
How do I redirect the output to a text file? 'kvm -hda ubuntu.img
-cdrom ubuntu-10.04-desktop-i386.iso -m 512M -curses -boot d>
out.put' gives an error message:  'We need a terminal output'.
The simplest way I found so far is to run it in screen (install
screen package).  When it will OOPS, hit Ctrl+A followed by [ ,
after which you will be able to scroll using arrow keys, and
copy/paste text.  Scroll to the place a few lines before the
OOPS start, and copy/paste whole 25 lines - email is best
here.
And oh, don't forget -curses :)
Also, please verify virt. extensions are actually enabled
in the bios, check dmesg on the host (last few lines
related to kvm if any), and provide your host kernel
version.
Thanks!
/mjt
Here is what I could grab with screen:
[ 2.463626] [<c012b5b7>] bad_area_nosemaphore+0x17/0x20
[ 2.463923] [<c058dc76>] do_page_fault+0x2f6/0x3a0
[ 2.464221] [<c058d980>] ? do_page_fault+0x0/0x3a0
[ 2.464510] [<c058b983>] error_code+0x73/0x80
[ 2.464793] [<c0129413>] ? kvm_leave_lazy_mmu+0x43/0x70
[ 2.465090] [<c01eb3cd>] move_ptes+0x1ad/0x270
[ 2.465370] [<c01eb540>] move_page_tables+0xb0/0x130
[ 2.465662] [<c020de24>] shift_arg_pages+0x94/0x180
[ 2.465953] [<c020e079>] setup_arg_pages+0x169/0x190
[ 2.466248] [<c02439ab>] load_elf_binary+0x2cb/0xab0
[ 2.466539] [<c02f4414>] ? security_file_permission+0x14/0x20
[ 2.466944] [<c0207ad4>] ? rw_verify_area+0x64/0xe0
[ 2.467242] [<c02436e0>] ? load_elf_binary+0x0/0xab0
[ 2.467541] [<c020e58f>] search_binary_handler+0xef/0x2f0
[ 2.467850] [<c020dc75>] ? kernel_read+0x35/0x50
[ 2.468179] [<c0242040>] load_script+0x220/0x270
[ 2.468464] [<c01e6910>] ? get_user_pages+0x50/0x60
[ 2.468758] [<c020ce72>] ? get_arg_page+0x52/0xb0
[ 2.469046] [<c0241e20>] ? load_script+0x0/0x270
[ 2.469332] [<c020e58f>] search_binary_handler+0xef/0x2f0
[ 2.469632] [<c020d044>] ? copy_strings+0x174/0x190
[ 2.469921] [<c020eab7>] do_execve+0x1f7/0x2c0
[ 2.470203] [<c03530ca>] ? strncpy_from_user+0x3a/0x70
[ 2.470500] [<c0101a1d>] sys_execve+0x2d/0x60
[ 2.470780] [<c01033ec>] syscall_call+0x7/0xb
[ 2.471305] [<c01070a4>] ? kernel_execve+0x24/0x30
[ 2.471598] [<c01012ac>] ? run_init_process+0x1c/0x20
[ 2.471895] [<c0101396>] ? init_post+0xe6/0x100
[ 2.472190] [<c07a33c0>] ? kernel_init+0xb8/0xbf
[ 2.472478] [<c07a3308>] ? kernel_init+0x0/0xbf
[ 2.476108] [<c0104087>] ? kernel_thread_helper+0x7/0x10

dmseg result:
[ 132.110972] kvm: emulating exchange as write
[ 3034.379135] kvm: Nested Virtualization enabled
[ 3037.273453] lo: Disabled Privacy Extensions
[ 3135.461934] kvm: emulating exchange as write
[ 3345.364961] kvm: Nested Virtualization enabled
[ 3347.104874] lo: Disabled Privacy Extensions
[ 3431.194729] kvm: emulating exchange as write
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-04-30 23:40:01 UTC
Permalink
01.05.2010 03:23, Bruno Miguel wrote:
[]
Post by Bruno Miguel
[ 2.463626] [<c012b5b7>] bad_area_nosemaphore+0x17/0x20
[ 2.463923] [<c058dc76>] do_page_fault+0x2f6/0x3a0
[ 2.464221] [<c058d980>] ? do_page_fault+0x0/0x3a0
Not there yet. it's basically the same as you provided
on the pic initially. The missing info is above this.

As I said, please scroll up to a few lines above the
beginning of the OOPS. You didn't provide even the
beginning itself.

One more attempt? Maybe you didn't try to scroll it
in screen? Again: hit Ctrl+A followed with [ after
which you will be able to use arrow keys to scroll.

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bruno Miguel
2010-05-01 00:00:02 UTC
Permalink
[]
[    2.463626]  [<c012b5b7>] bad_area_nosemaphore+0x17/0x20
[    2.463923]  [<c058dc76>] do_page_fault+0x2f6/0x3a0
[    2.464221]  [<c058d980>] ? do_page_fault+0x0/0x3a0
Not there yet.  it's basically the same as you provided
on the pic initially.  The missing info is above this.
As I said, please scroll up to a few lines above the
beginning of the OOPS.  You didn't provide even the
beginning itself.
One more attempt?  Maybe you didn't try to scroll it
in screen?  Again: hit Ctrl+A followed with [ after
which you will be able to use arrow keys to scroll.
/mjt
This is the output screen let's me select:

[ 4.911207] [<c020de24>] shift_arg_pages+0x94/0x180
[ 4.911497] [<c020e079>] setup_arg_pages+0x169/0x190
[ 4.912289] [<c02439ab>] load_elf_binary+0x2cb/0xab0
[ 4.912583] [<c02f4414>] ? security_file_permission+0x14/0x20
[ 4.912904] [<c0207ad4>] ? rw_verify_area+0x64/0xe0
[ 4.913195] [<c02436e0>] ? load_elf_binary+0x0/0xab0
[ 4.913486] [<c020e58f>] search_binary_handler+0xef/0x2f0
[ 4.913786] [<c020dc75>] ? kernel_read+0x35/0x50
[ 4.914068] [<c0242040>] load_script+0x220/0x270
[ 4.914351] [<c01e6910>] ? get_user_pages+0x50/0x60
[ 4.914640] [<c020ce72>] ? get_arg_page+0x52/0xb0
[ 4.914925] [<c0241e20>] ? load_script+0x0/0x270
[ 4.915213] [<c020e58f>] search_binary_handler+0xef/0x2f0
[ 4.915511] [<c020d044>] ? copy_strings+0x174/0x190
[ 4.915799] [<c020eab7>] do_execve+0x1f7/0x2c0
[ 4.916090] [<c03530ca>] ? strncpy_from_user+0x3a/0x70
[ 4.916387] [<c0101a1d>] sys_execve+0x2d/0x60
[ 4.916665] [<c01033ec>] syscall_call+0x7/0xb
[ 4.927321] [<c01070a4>] ? kernel_execve+0x24/0x30
[ 4.927607] [<c01012ac>] ? run_init_process+0x1c/0x20
[ 4.927894] [<c0101396>] ? init_post+0xe6/0x100
[ 4.928181] [<c07a33c0>] ? kernel_init+0xb8/0xbf
[ 4.928458] [<c07a3308>] ? kernel_init+0x0/0xbf
[ 4.928732] [<c0104087>] ? kernel_thread_helper+0x7/0x10

Here is a video to prove that I did everything you asked:
http://www.box.net/shared/edknhrjz5n
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-05-01 00:10:02 UTC
Permalink
severity 579810 normal
thanks
Post by Bruno Miguel
[]
[]
And it's still the same.
[]
Post by Bruno Miguel
http://www.box.net/shared/edknhrjz5n
Yes I see. But the thing is not useful still.

You need to convince it to not to switch into graphics mode
somehow. Or to use a serial console. I don't know how to
do neither of that -- last time I used an installer was some
10 years ago. Maybe I'll find some time to find and download
the .iso images and to check how to do that, next week or so,
but no promises.

And note that you still didn't provide the host kernel
version which I asked you in pre-last email. But apparently
this has nothing to do with the host kernel - it look more
like a corrupt ELF file and the kernel choking on it, or
the kernel itself is corrupt. Check the md5sum of the .iso
you're using and compare it with the one provided at the
site you've got it from.

In any way, I downgrade this bug to normal since the thing
works for at least majority of others.

Thanks!

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bruno Miguel
2010-05-01 00:20:01 UTC
Permalink
Post by Michael Tokarev
severity 579810 normal
thanks
Post by Bruno Miguel
[]
[]
And it's still the same.
[]
Post by Bruno Miguel
http://www.box.net/shared/edknhrjz5n
Yes I see.  But the thing is not useful still.
You need to convince it to not to switch into graphics mode
somehow.  Or to use a serial console.  I don't know how to
do neither of that -- last time I used an installer was some
10 years ago.  Maybe I'll find some time to find and download
the .iso images and to check how to do that, next week or so,
but no promises.
And note that you still didn't provide the host kernel
version which I asked you in pre-last email.  But apparently
this has nothing to do with the host kernel - it look more
like a corrupt ELF file and the kernel choking on it, or
the kernel itself is corrupt.  Check the md5sum of the .iso
you're using and compare it with the one provided at the
site you've got it from.
In any way, I downgrade this bug to normal since the thing
works for at least majority of others.
Thanks!
/mjt
Sorry, I totally forgot to tell the hosts kernel. Here it is: Linux
2.6.32-3-686 #1 SMP i686 GNU/Linux

The md5 is the same.

I too have no idea how to use kvm with a serial console. I'll try to
find a way and if I manage to do it, I'll post the output here.
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Michael Tokarev
2010-05-01 00:20:02 UTC
Permalink
01.05.2010 04:08, Bruno Miguel wrote:
[]
Post by Bruno Miguel
Sorry, I totally forgot to tell the hosts kernel. Here it is: Linux
2.6.32-3-686 #1 SMP i686 GNU/Linux
That's ok, and the kernel is fine too.
Post by Bruno Miguel
The md5 is the same.
Excellent.
Post by Bruno Miguel
I too have no idea how to use kvm with a serial console. I'll try to
find a way and if I manage to do it, I'll post the output here.
Serial console with kvm is trivial. What is not trivial is to
convince the guest installer kernel to actually use it.

In kvm, just add

-serial file:file_name

to the kvm command line, and it will write everything received
from the (virtual) serial port to file named "file_name".

For the guest kernel you'll have to add

console=ttyS0 console=tty1

to the kernel command line -- note it's specified twice,
so that you'll see the output on both serial and normal
vga consoles.

Thanks!

/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...