Bug 512358

Summary: Unable to boot using qemu-kvm and gPXE from virt-preview repository
Product: [Fedora] Fedora Reporter: Jan ONDREJ <ondrejj>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 11CC: apevec, gcosta, hbrock, itamar, jforbes, kernel-maint, markmc, rjones, tom, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-29 15:18:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 480594    
Attachments:
Description Flags
patch 1
none
patch 2 none

Description Jan ONDREJ 2009-07-17 14:04:01 UTC
Description of problem:
Unable to boot from PXE using new qemu packages from virt-preview repository (
http://markmc.fedorapeople.org/virt-preview/)

Version-Release number of selected component (if applicable):
kernel-PAE-2.6.29.5-191.fc11.i686
qemu-0.10.50-11.kvm88.fc11.i586
qemu-kvm-0.10.50-11.kvm88.fc11.i586
gpxe-roms-qemu-0.9.7-4.fc11.noarch

How reproducible:
Always

Steps to Reproduce:
1. enable repository described here: http://markmc.fedorapeople.org/virt-preview
2. yum update
3. run: qemu-kvm -net nic,model=virtio -boot n -net tap,ifname=tap0

You need fully functional PXE booting on your network. If you don't have it, I can retest new kernel.
  
Actual results:
Press Ctrl-B to configure gPXE (PCI 00:00.0)...

then this virtual computer is running at 100% CPU, I can't type, ctrl-B does nothing, ... I can't only kill it.

Expected results:
Boot from PXE.

Additional info:
markmc suggested some urls:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2809f5d2
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=310b5d306

Comment 1 Glauber Costa 2009-07-17 14:26:03 UTC
I have backports of those patches to a F11 kernel. It is the same patches that are included in the RHEL5 tree.

I'm attaching them to the BZ, so they can be picked up.
F12 won't need them.

Comment 2 Glauber Costa 2009-07-17 14:28:13 UTC
Created attachment 354155 [details]
patch 1

First patch. Allow us to manipulate interrupt shadow bit in emulated instructions

Comment 3 Glauber Costa 2009-07-17 14:28:58 UTC
Created attachment 354157 [details]
patch 2

use the previous infrastructure to set interrupt shadow after emulated instructions.

Comment 4 Alan Pevec 2009-08-06 18:43:03 UTC
workaround is to use etherboot ROMs, you need to fix /usr/share/qemu/pxe* symlinks

Comment 5 Hugh Brock 2009-08-06 20:44:21 UTC
This completely blocks booting VMs with KVM on f11 hosts. It would be very nice if we could get it fixed. The only workaround is to rip out gpxe, install etherboot, and fudge symlinks... which is ugly.

Comment 6 Mark McLoughlin 2009-08-07 14:34:57 UTC
*** Bug 494469 has been marked as a duplicate of this bug. ***

Comment 7 Justin M. Forbes 2009-08-10 16:01:45 UTC
Looks like this is fixed in 2.6.30 upstream which should be pushed to Fedora 11 at some point.  CVS for F-11 is already at 2.6.30, so there isn't really any way to easily push this patch before 2.6.30 is released.

Comment 8 Jan ONDREJ 2009-09-10 07:07:33 UTC
2.6.30.5 is out, but problem still persist.

[ondrejj@work ~]$ rpm -q kernel-PAE qemu-kvm
kernel-PAE-2.6.30.5-43.fc11.i686
qemu-kvm-0.10.92-1.fc11.i586
[ondrejj@work ~]$ uname -a
Linux work.salstar.sk 2.6.30.5-43.fc11.i686.PAE #1 SMP Thu Aug 27 21:34:36 EDT 2009 i686 i686 i386 GNU/Linux

Comment 9 Mark McLoughlin 2009-09-11 11:56:55 UTC
Thanks for testing Jan. It appears these patches only went into 2.6.30.6

Comment 10 Justin M. Forbes 2009-09-29 15:18:13 UTC
2.6.30.8-64.fc11 is now available for F-11 updates.  Please reopen this bug if there are further problems found.