KVM does not boot Ubuntu i386 10.04 minimal server images

Bug #666180 reported by SqUe
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
qemu-kvm (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: qemu-kvm

After upgrade from 10.04 -> 10.10 all the libvirt domains did not boot and the cpu usage went 100%. Trying to isolate the problem I found that kvm on maverick is unable to boot ubuntu 10.04 i386 virtual minimal setup. Other guests versions booted just fine. I even moved the image to another computer with also maverick edition and tried to boot the images there with no success.

I then tried to make a new guest installation using 10.04.1 i386 server iso with 'minimal virtual' option ON. The setup went just fine but trying to boot the fresh install ended on the same thing. Trying to do the same with a debian guest worked with no problems.

The actual effect is that when KVM boots the disk images, grub is executed and after that, black screen (on guest) and 100% cpu usage on host.

Notice: All hosts and guests are i386. I made the same tests through libvirt and by directly using kvm to boot the images from the terminal.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: qemu-kvm 0.12.5+noroms-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Mon Oct 25 11:29:31 2010
ExecutablePath: /usr/bin/qemu-system-x86_64
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
KvmCmdLine:
 UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
 sque 13076 8222 99 113251 33332 0 11:29 pts/1 00:00:29 kvm net_support.qcow2
MachineType: Apple Inc. MacBook2,1
ProcCmdLine: BOOT_IMAGE=/vmlinuz root=UUID=0eaad611-522c-4edd-addb-d8f82f1267c1 video=efifb agp=off ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.utf8
SourcePackage: qemu-kvm
dmi.bios.date: 06/27/07
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MB21.88Z.00A5.B07.0706270922
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F4208CAA
dmi.board.vendor: Apple Inc.
dmi.board.version: PVT
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F4208CAA
dmi.modalias: dmi:bvnAppleInc.:bvrMB21.88Z.00A5.B07.0706270922:bd06/27/07:svnAppleInc.:pnMacBook2,1:pvr1.0:rvnAppleInc.:rnMac-F4208CAA:rvrPVT:cvnAppleInc.:ct10:cvrMac-F4208CAA:
dmi.product.name: MacBook2,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
SqUe (sque) wrote :
description: updated
SqUe (sque)
description: updated
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug. Have you tried running one
of the misbehaving images on maverick on x86-64? If so, did that succeed
or fail?

Revision history for this message
SqUe (sque) wrote :

I have no x86-64 setup on any pc and I am out of time to experiment right now. I should notice here that apart from the old one misbehaving image, to reproduce it is as easy as making a fresh 10.04.1 i386 MINIMAL installation through libvirt or by directly using kvm with command line. After the installation has finished succesfully, it will never boot.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 666180] Re: KVM does not boot Ubuntu i386 10.04 minimal sever images

Quoting SqUe (<email address hidden>):
> I have no x86-64 setup on any pc and I am out of time to experiment
> right now. I should notice here that apart from the old one misbehaving
> image, to reproduce it is as easy as making a fresh 10.04.1 i386 MINIMAL
> installation through libvirt or by directly using kvm with command line.
> After the installation has finished succesfully, it will never boot.

Yup, again thanks for your time in reporting it. Unfortunately I don't
have a kvm-capable 32-bit machine to test on, but I'll look for one and
attempt to reproduce.

Revision history for this message
Harald Hannelius (harald-arcada) wrote : Re: KVM does not boot Ubuntu i386 10.04 minimal sever images

This seems much like my problem. If I boot the previous kernel 2.6.32-24 from everything works OK. This makes me suspect that the problems is within the kernel, did Maverick drop i386 or i686 support or something?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/663191

Revision history for this message
con (conloos) wrote : Re: [Bug 666180] Re: KVM does not boot Ubuntu i386 10.04 minimal sever images

I had a boot problem with maveric, too. My solution was to add the apparmor
sevurity rules in virt-manager. Now it works again.

Am 28.10.2010 11:41 schrieb "Harald Hannelius" <email address hidden>:

This seems much like my problem. If I boot the previous kernel 2.6.32-24
from everything works OK. This makes me suspect that the problems is
within the kernel, did Maverick drop i386 or i686 support or something?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/663191

--
KVM does not boot Ubuntu i386 10.04 minimal sever images
https://bugs.launchpad.net/bugs/666180
You received this bug notification because you are subscribed to qemu-
kvm in ubuntu.

SqUe (sque)
summary: - KVM does not boot Ubuntu i386 10.04 minimal sever images
+ KVM does not boot Ubuntu i386 10.04 minimal server images
Mathias Gug (mathiaz)
Changed in qemu-kvm (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Harald Hannelius (harald-arcada) wrote :

Apparmor doesn't seem to be the culprit for me. virt-manager show me the dynamic allocation of an UUID when starting the guest and I have no errors in syslog regarding apparmor.

The guest just stops just after loading the first stage of the bootloader. This affects my ubuntu 10.10 guest, as well as my Windows Xp SP3 guest. The XP-guest does boot into safe mode, and safe mode with networking though.

Revision history for this message
Harald Hannelius (harald-arcada) wrote :

Also, changing the disk type from IDE to RH's Virtio SCSI in WInXP didn't change anything either. The guest just sits there chewing up CPU, and the blue-bar-animation runs from side to side.

Revision history for this message
ooze (zoe-gauthier) wrote :

I have exactly the same symptoms as in comment #7. Also, using `qemu` `qemu -enable-kvm` instead of `kvm` allows the guest OS to fully boot.

Changed in qemu-kvm (Ubuntu):
status: New → Confirmed
Revision history for this message
ooze (zoe-gauthier) wrote :

This bug seems to be triggered by the fact that /usr/bin/kvm is a symbolic link that points to qemu-system-x86_64. The shell (i.e. libvirt) that is invoking the virtual machine should add a "-cpu qemu32" to the command line if the guest OS is 32-bit. This seems to be a change between the Lucid and Maverick qemu-kvm packages, however I am no longer sure this is really a bug with qemu-kvm.

Revision history for this message
nutznboltz (nutznboltz-deactivatedaccount) wrote :

@Philippe Gauthier

I tried getting rid of libvirt and invoking qemu directly but that did not help.

All of these fail the same way:

qemu -M pc -hda /img/lenny-vol.img -m 1024 -cdrom /iso/debian-507-i386-netinst.iso -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot d

qemu -M pc -hda /img/lenny-vol.img -m 1024 -cdrom /iso/debian-507-i386-netinst.iso -cpu qemu32 -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot d

qemu -M pc -hda /img/lenny-vol.img -m 1024 -cdrom /iso/debian-507-i386-netinst.iso -enable-kvm -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot d

qemu -M pc -hda /img/lenny-vol.img -m 1024 -cdrom /iso/debian-507-i386-netinst.iso -enable-kvm -cpu qemu32 -net nic,vlan=0 -net user,vlan=0,hostname=emu -monitor pty -boot d

Attempting to boot Debian 5 32-bit guest gets as far as
"Decompressing Linux... Parsing ELF... done."
"Booting the kernel"
Then nothing. The kvm process spins the CPU 100% on the host.

Details:

$ uname -a
Linux lakshmi 2.6.35-24-generic-pae #42-Ubuntu SMP Thu Dec 2 03:21:31 UTC 2010 i686 GNU/Linux
$ lsb_release -a
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
$ dpkg -S /usr/bin/kvm
qemu-kvm: /usr/bin/kvm
$ dpkg -l qemu-kvm | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=====================================-=================================================-==========================================================================
ii qemu-kvm 0.12.5+noroms-0ubuntu7.1 Full virtualization on i386 and amd64 hardware
$ ls -l /usr/bin/kvm
lrwxrwxrwx 1 root root 18 2011-01-09 09:54 /usr/bin/kvm -> qemu-system-x86_64
$

Revision history for this message
ooze (zoe-gauthier) wrote :

@nutznboltz : I tried and failed to reproduce the bug you are describing. Also this bug report is about when an system update causes virtualization to fail. If this does not apply to your situation, I encourage you to open a new bug report. because there is a high probability that the cause of the problem is different. Thanks!

Revision history for this message
SqUe (sque) wrote :

@Philippe Gauthier : Is it for sure a bug after upgrade? As there isnt anyone here saying that creating a fresh (host) installation solves the problem.

Revision history for this message
ooze (zoe-gauthier) wrote :

You are right. I was implying that libvirt in 10.10 would create proper configuration files and not have this bug, but I didn't verify that. The only thing that I could verify is that some images (32-bit guests) that used to work with /usr/bin/kvm in 10.04 stopped working in 10.10. In my case, replacing /usr/bin/kvm (which points to /usr/bin/qemu-system-x86_64) by /usr/bin/qemu fixed the problem.

Revision history for this message
Andrew M. (ender-neo) wrote :

@Phiippe - I had the same problem, and your workaround has me working again. Cheers!

Revision history for this message
Aaz (aaz2009) wrote :

10.10, Maverick
After upgrading my system (MB replacement, added memory up to 4Gb), and after switching to PAE kernel all my virtual machines has stopped booting linux kernel (only grub). Symthoms are similar - CPU usage on host=50% (1 of 2 cores I suppose)

Revision history for this message
nutznboltz (nutznboltz-deactivatedaccount) wrote :

@Aaz, if you run the non-PAE 32-bit kernel does the issue go away? I know that you won't be able to use all 4GB RAM without PAE, I'm just interested in testing PAE vs. non-PAE.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I wonder if upstream kernel commit id f87f928882d080eaec8b0d76aecff003d664697d (from https://bugzilla.kernel.org/show_bug.cgi?id=25262) would fix this for you.

Revision history for this message
nutznboltz (nutznboltz-deactivatedaccount) wrote :

I can't test; my only AMD box is now converted to 64-bit in reaction to this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.