All of lore.kernel.org
 help / color / mirror / Atom feed
* KVM-enabled Linux 3.2 won't boot in kvm
@ 2012-08-19  2:04 Neal Murphy
  2012-08-20 13:41 ` Wolfram Gloger
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Neal Murphy @ 2012-08-19  2:04 UTC (permalink / raw)
  To: kvm

I've been using KVM for a few years now. I've had little trouble with it. But 
now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel to boot 
in qemu-kvm unless I specify '-no-kvm'. I've used a similarly-built and -
configured 2.6.35 kernel without trouble.

The console shows
  Probing EDD (edd=off to disable)... ok

  Decompressing Linux... Parsing ELF... done.
  Booting the kernel.

And there it hangs, the kvm program at 100% CPU usage.

This is on Debian Squeeze, either using Debian's kvm package or using a 
freshly built kvm 1.1.1. The kernel does boot using qemu or booting on real 
hardware. And I've no trouble booting Linux 2.6.35.

Clearly I've missed something, but I've no idea what that might be. Any ideas?

Thanks,
N

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM-enabled Linux 3.2 won't boot in kvm
  2012-08-19  2:04 KVM-enabled Linux 3.2 won't boot in kvm Neal Murphy
@ 2012-08-20 13:41 ` Wolfram Gloger
  2012-08-20 14:44 ` Michael Tokarev
  2012-08-24  3:14 ` Neal Murphy
  2 siblings, 0 replies; 6+ messages in thread
From: Wolfram Gloger @ 2012-08-20 13:41 UTC (permalink / raw)
  To: kvm; +Cc: wmglo

Neal Murphy writes:

>I've been using KVM for a few years now. I've had little trouble with it. But 
>now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel to boot 
>in qemu-kvm unless I specify '-no-kvm'. I've used a similarly-built and -
>configured 2.6.35 kernel without trouble.
>
>This is on Debian Squeeze, either using Debian's kvm package or using a 
>freshly built kvm 1.1.1. The kernel does boot using qemu or booting on real 
>hardware. And I've no trouble booting Linux 2.6.35.

I'm also on squeeze, with qemu-kvm_1.1.0+dfsg-3 compiled by myself.

For me, booting 3.2.27 in a VM guest works just fine:

$ cat /proc/version 
Linux version 3.2.27 (wg@sputnik) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #1 SMP Mon Aug 13 11:55:10 CEST 2012
$ zgrep KVM /proc/config.gz 
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_APIC_ARCHITECTURE=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m

I boot from network, and I just successfully insmod'ed the kvm
module.  Inserting kvm-intel fails however (to be expected I guess).
No hangs or crashes.

Can you please post your complete qemu command and host kernel
version?

Regards,
Wolfram.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM-enabled Linux 3.2 won't boot in kvm
  2012-08-19  2:04 KVM-enabled Linux 3.2 won't boot in kvm Neal Murphy
  2012-08-20 13:41 ` Wolfram Gloger
@ 2012-08-20 14:44 ` Michael Tokarev
  2012-08-24  3:14 ` Neal Murphy
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2012-08-20 14:44 UTC (permalink / raw)
  To: neal.p.murphy; +Cc: kvm

19.08.2012 06:04, Neal Murphy пишет:
> I've been using KVM for a few years now. I've had little trouble with it. But 
> now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel to boot 
> in qemu-kvm unless I specify '-no-kvm'. I've used a similarly-built and -
> configured 2.6.35 kernel without trouble.
> 
> The console shows
>   Probing EDD (edd=off to disable)... ok
> 
>   Decompressing Linux... Parsing ELF... done.
>   Booting the kernel.
> 
> And there it hangs, the kvm program at 100% CPU usage.
> 
> This is on Debian Squeeze, either using Debian's kvm package or using a 
> freshly built kvm 1.1.1. The kernel does boot using qemu or booting on real 
> hardware. And I've no trouble booting Linux 2.6.35.
> 
> Clearly I've missed something, but I've no idea what that might be. Any ideas?

You missed to provide the qemu/kvm command line you're using.

As for the sympthoms, you may be hitting http://bugs.debian.org/680719
but it is difficult to say without much more details.

/mjt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM-enabled Linux 3.2 won't boot in kvm
@ 2012-08-23  4:04 Neal Murphy
  0 siblings, 0 replies; 6+ messages in thread
From: Neal Murphy @ 2012-08-23  4:04 UTC (permalink / raw)
  To: kvm

(Oops. Just noticed I didn't send this to the list....)

On Monday 20 August 2012 09:41:52 Wolfram wrote:
> Neal Murphy writes:
> >I've been using KVM for a few years now. I've had little trouble with it.
> >But now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel
> >to boot in qemu-kvm unless I specify '-no-kvm'. I've used a
> >similarly-built and - configured 2.6.35 kernel without trouble.
> >
> >This is on Debian Squeeze, either using Debian's kvm package or using a
> >freshly built kvm 1.1.1. The kernel does boot using qemu or booting on
> >real hardware. And I've no trouble booting Linux 2.6.35.
> 
> I'm also on squeeze, with qemu-kvm_1.1.0+dfsg-3 compiled by myself.
> 
> For me, booting 3.2.27 in a VM guest works just fine:
> 
> ...
> 
> Can you please post your complete qemu command and host kernel
> version?

CPU: AMD quad-core Phenom II 965, not overclocked; 8GB RAM

/proc/version:
Linux version 2.6.32-5-686-bigmem (Debian 2.6.32-45) (dannf@debian.org) (gcc 
version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun May 6 04:39:05 UTC 2012

kvm version (standard Squeeze qemu-kvm pkg):
QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5), Copyright (c) 2003-2008 
Fabrice Bellard

Complete kvm command:
kvm -cpu athlon -smp 4 -drive 
if=ide,media=disk,serial=1111,file=/scratch/scratch.img,index=0 -drive 
if=ide,media=cdrom,serial=3333,file=/usr/src/agcl000/distrib/build/target/isos/agcl-0.0.0.iso,index=1 
-net nic,vlan=0,macaddr=52:54:00:00:00:00,model=e1000 -net 
tap,vlan=0,ifname=tapRD0000,script=/etc/network/qemuREDup,downscript=/etc/network/qemuREDdown 
-net nic,vlan=1,macaddr=52:54:00:00:00:01,model=e1000 -net 
tap,vlan=1,ifname=tapGN0000,script=/etc/network/qemuGREENup,downscript=/etc/network/qemuGREENdown 
-net nic,vlan=2,macaddr=52:54:00:00:00:02,model=e1000 -net 
tap,vlan=2,ifname=tapOR0000,script=/etc/network/qemuORANGEup,downscript=/etc/network/qemuORANGEdown 
-net nic,vlan=3,macaddr=52:54:00:00:00:03,model=e1000 -net 
tap,vlan=3,ifname=tapPU0000,script=/etc/network/qemuPURPLEup,downscript=/etc/network/qemuPURPLEdown 
-name 'iso:VM #0 (defaults for scratch use)' -sdl -boot menu=on -m 512 -vga 
std -usb -serial stdio

I *may* be using a newer BIOS; IIRC (it's been a long while) the stock BIOS 
would give me continual errors (making the VM real slllooooowwwww).

Also tried with the latest (via /usr/local/bin/qemu-system-i386, command is 
otherwise the same):
QEMU emulator version 1.1.1 (qemu-kvm-1.1.1), Copyright (c) 2003-2008 Fabrice 
Bellard


[Upon resend to list]
3.0.41 and 3.4.9 also hang. I'll start working my way back to 2.6.35 until I 
find a kernel that boots.

N

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM-enabled Linux 3.2 won't boot in kvm
  2012-08-19  2:04 KVM-enabled Linux 3.2 won't boot in kvm Neal Murphy
  2012-08-20 13:41 ` Wolfram Gloger
  2012-08-20 14:44 ` Michael Tokarev
@ 2012-08-24  3:14 ` Neal Murphy
  2012-09-04 13:09   ` Avi Kivity
  2 siblings, 1 reply; 6+ messages in thread
From: Neal Murphy @ 2012-08-24  3:14 UTC (permalink / raw)
  To: kvm

On Saturday 18 August 2012 22:04:20 Neal Murphy wrote:
> I've been using KVM for a few years now. I've had little trouble with it.
> But now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel
> to boot in qemu-kvm unless I specify '-no-kvm'. I've used a
> similarly-built and - configured 2.6.35 kernel without trouble.
> 
> ...
> 
> This is on Debian Squeeze, either using Debian's kvm package or using a
> freshly built kvm 1.1.1. The kernel does boot using qemu or booting on real
> hardware. And I've no trouble booting Linux 2.6.35.

Using Squebian's 2.6.32-5-686-bigmem, the 3.[024] kernels I built (with KVM) 
don't boot.

Trying Squebian's 2.6.32-5-amd64. ... 3.0.41 and 3.4.9 now boot 
using either Squebian's kvm or qemu-kvm v1.1.1.

Trying Squebian's 2.6.32-5-686. ... And the 3.0 and 3.4 kernels boot using 
either version of qemu-kvm.

Does that help narrow the problem?

N

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM-enabled Linux 3.2 won't boot in kvm
  2012-08-24  3:14 ` Neal Murphy
@ 2012-09-04 13:09   ` Avi Kivity
  0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2012-09-04 13:09 UTC (permalink / raw)
  To: neal.p.murphy; +Cc: kvm

On 08/24/2012 06:14 AM, Neal Murphy wrote:
> On Saturday 18 August 2012 22:04:20 Neal Murphy wrote:
>> I've been using KVM for a few years now. I've had little trouble with it.
>> But now it's got me treed. I cannot get a KVM-enabled Linux 3.2.27 kernel
>> to boot in qemu-kvm unless I specify '-no-kvm'. I've used a
>> similarly-built and - configured 2.6.35 kernel without trouble.
>> 
>> ...
>> 
>> This is on Debian Squeeze, either using Debian's kvm package or using a
>> freshly built kvm 1.1.1. The kernel does boot using qemu or booting on real
>> hardware. And I've no trouble booting Linux 2.6.35.
> 
> Using Squebian's 2.6.32-5-686-bigmem, the 3.[024] kernels I built (with KVM) 
> don't boot.
> 
> Trying Squebian's 2.6.32-5-amd64. ... 3.0.41 and 3.4.9 now boot 
> using either Squebian's kvm or qemu-kvm v1.1.1.
> 
> Trying Squebian's 2.6.32-5-686. ... And the 3.0 and 3.4 kernels boot using 
> either version of qemu-kvm.
> 
> Does that help narrow the problem?

No.  Please provide the guest's serial log.  Also run 'top' and
'kvm_stat' on the host to see what the guest is doing.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-04 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19  2:04 KVM-enabled Linux 3.2 won't boot in kvm Neal Murphy
2012-08-20 13:41 ` Wolfram Gloger
2012-08-20 14:44 ` Michael Tokarev
2012-08-24  3:14 ` Neal Murphy
2012-09-04 13:09   ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2012-08-23  4:04 Neal Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.