Bug 683370

Summary: wrong kernel installed for 32-bit xenpv guests
Product: [Fedora] Fedora Reporter: Andrew Jones <drjones>
Component: anacondaAssignee: Will Woods <wwoods>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 16:37:06 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:
Attachments:
Description Flags
shar of all anaconda logs
none
screenshot of /proc/cpuinfo none

Description Andrew Jones 2011-03-09 09:46:00 UTC
When installing a 32-bit xen pv guest virt-install will select the PAE kernel, getting us into anaconda and allowing us to install. However, anaconda installs the non-PAE kernel which breaks booting the guest after installation.

# virt-install -p -n f14-32pv -l $F14REPO -f /vm/images/f14-32pv.img -s 7 --vcpus=2 -r 1024 -x console=hvc0


Starting install...
Retrieving file .treeinfo...                             | 1.2 kB     00:00
Retrieving file vmlinuz-PAE...                           | 3.6 MB     00:00
Retrieving file initrd-PAE.img...                        |  40 MB     00:00
Creating storage file...                                 | 7.0 GB     00:00
Creating domain...                                       |    0 B     00:01
Connected to domain f14-32pv

...Complete the installation and attempt to reboot.

Guest installation complete... restarting guest.
ERROR    POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')")

# mount -o loop,offset=$((512*2048)) /vm/images/f14-32pv.img a
# ls a/vmlinux*
a/vmlinuz-2.6.35.6-45.fc14.i686

The kernel isn't PAE.

Comment 1 Chris Lumens 2011-03-10 15:56:04 UTC
Please attach /var/log/anaconda.* from the installed system to this bug report.

Comment 2 Andrew Jones 2011-03-14 08:22:52 UTC
Created attachment 484094 [details]
shar of all anaconda logs

Comment 3 Chris Lumens 2011-03-14 15:35:11 UTC
The key line here is:

03:57:59,055 INFO anaconda: selected kernel package for kernel

It looks to me like we didn't even try to get a kernel-PAE package, so there must be a problem with our isys.isPaeAvailable call.  What does /proc/cmdline from within the VM look like?

Comment 4 Andrew Jones 2011-03-14 15:59:03 UTC
I can't boot the guest to look at it. I got the anaconda logs by loop back mounting the root fs.

/proc/cmdline during the install isn't interesting, it's just

 method=http://download.englab.brq.redhat.com/pub/fedora/linux/releases/14/Fedora/i386/os console=hvc0 console=tty0

I added the 'console=tty0' to my virt-install command line in order to enable the use of virt-viewer, allowing Ctrl+Alt+F2.

Comment 5 Chris Lumens 2011-03-14 16:03:19 UTC
Ugh, sorry - I meant /proc/cpuinfo.  I'm just too used to asking for the other one.

Comment 6 Andrew Jones 2011-03-14 16:03:19 UTC
The command line from the grub.conf of the installed/non-booting guest is

kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=ab8562fe-854a-40c0-9722-8e0a8ce87b8e rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us console=hvc0 rhgb quiet

Comment 7 Andrew Jones 2011-03-14 16:09:05 UTC
Created attachment 484234 [details]
screenshot of /proc/cpuinfo

Wow, surprised bugzilla didn't give me a collision warning with that simultaneous update...

Ok, here's /proc/cpuinfo (2 procs)

Comment 8 Chris Lumens 2011-03-14 17:07:40 UTC
Going to have to step through this one to figure it out.  /proc/cpuinfo looks good.

Comment 9 Chris Lumens 2011-04-15 02:30:46 UTC
I think wwoods was working on something along these lines.

Comment 10 Will Woods 2011-04-15 20:54:57 UTC
Yeah, that was bug 480031 (private, alas). In that bug, if you installed multiple kernels on a xen guest, the xen kernel wasn't getting set up as the *default* kernel in the resulting bootloader config.

The relevant commit (for rhel5-branch) is:
  http://git.fedorahosted.org/git/?p=anaconda.git;a=commit;h=84dcd103
but that's obviously not gonna help since we have no 'xen' kernel in Fedora.

But the problem here isn't "too many kernels", it's "we picked the wrong one" - something wrong with package selection, not bootloader config.

Comment 11 Kyle 2011-05-08 11:32:12 UTC
I have no clue if this will help, but I just tried installing a 32bit version of Fedora as a VM, also on Xen. Ran into the same problem in that it wouldn't boot. I managed to get it to boot by mounting the VM drive in my host, chrooting and installing a PAE enable kernel from Koji.

I noticed two things: 
1. /etc/sysconfig/kernel has kernel-PAE as the default kernel to update. 
2. While it was chrooted (in my 64bit host), yum kept on telling me "No matches found for: kernel-PAE". I'm not sure if yum intelligently detected the 64bit or something like that, but just throwing it out there. Hopefully it helps.

Comment 12 Fedora End Of Life 2012-08-16 16:37:08 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping