[Bug 757895] New: Grub2 menu items incorrect when "Xen Virtual Machine Host Server" selected.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c0 Summary: Grub2 menu items incorrect when "Xen Virtual Machine Host Server" selected. Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 3 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: carnold@suse.com QAContact: jsrain@suse.com CC: jdouglas@suse.com, jfehlig@suse.com Found By: Development Blocker: --- Created an attachment (id=486801) --> (http://bugzilla.novell.com/attachment.cgi?id=486801) Some grub config files from the host When the "Xen Virtual Machine Host Server" is selected during the server install the native kernel doesn't show up on the main grub screen. Instead all you see are many Xen entries some of which work for booting and others do not. The native kernel is available when you select "Previous Linux Versions" and go to the secondary screen. The Xen entry on this secondary screen fails to boot. Also, the first menu item on the main grub2 screen is "openSUSE, with Linux 3.3.0-2-xen" which fails to boot when selected with the following errors, "Loading Linux xen ..." error: invalid magic number Loading initial ramdisk error: you need to load the kernel first" Other entries below the one described above do work such as "Xen 4.1" which takes you to a second screen that has an entry that boots ok. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |mchang@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c1 --- Comment #1 from Michael Chang <mchang@suse.com> 2012-04-20 07:40:38 UTC --- Looks a bit like bnc#755183 to me, but since you don't do kernel package update, they should be different. I can see on yast and perl bootloader's Grub1's code path has some xen kernel specific handling (like the kernel argument append, serial console etc ..) and are not migrated to Grub2 yet. Maybe this is related to this problem. I'll try to reproduce on my side. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c2 --- Comment #2 from Olaf Hering <ohering@suse.com> 2012-06-11 19:02:56 CEST --- This still exists in current Factory. The attached grub.cfg has this: ### BEGIN /etc/grub.d/10_linux ### menuentry 'openSUSE, with Linux 3.4.0-3-xen' --class opensuse --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos19)' search --no-floppy --fs-uuid --set=root 8191f09b-0d56-480c-8be8-9a5173d4fb47 echo 'Loading Linux 3.4.0-3-xen ...' linux /boot/vmlinuz-3.4.0-3-xen root=UUID=8191f09b-0d56-480c-8be8-9a5173d4fb47 quiet sysrq=yes panic=9 console=ttyS0,57600 resume=/dev/disk/by-label/SWAP splash=silent quiet showopts echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.4.0-3-xen } menuentry 'openSUSE, with Linux 3.4.0-3-xen (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos19)' search --no-floppy --fs-uuid --set=root 8191f09b-0d56-480c-8be8-9a5173d4fb47 echo 'Loading Linux 3.4.0-3-xen ...' linux /boot/vmlinuz-3.4.0-3-xen root=UUID=8191f09b-0d56-480c-8be8-9a5173d4fb47 single echo 'Loading initial ramdisk ...' initrd /boot/initrd-3.4.0-3-xen } and now that I look at it closer. the recovery mode lacks essential things like console=. However I'm not certain if kernel-xen is able to figure out the system console from the hypervisor itself. Hopefully it can, its the standard on more modern systems than the x86* arch. A bit further in that file, I see alot of placeholder strings. I'm almost sure they dont belong there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c3 --- Comment #3 from Olaf Hering <ohering@suse.com> 2012-06-11 19:04:08 CEST --- Created an attachment (id=494345) --> (http://bugzilla.novell.com/attachment.cgi?id=494345) grub.cfg -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c4 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Michael Chang <mchang@suse.com> 2012-06-13 04:00:53 UTC --- I'm in a conference today (6/12-6/13) and will look at it asap when back to work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c5 --- Comment #5 from Michael Chang <mchang@suse.com> 2012-06-14 06:43:53 UTC --- The placeholder string is intentional and necessary, otherwise the first argument of multiboot's command line (or xen if more specific) will be ignored. Legacy Grub didn't require the placeholder string because it passed the booted kernel path implicitly as the first command line argument, but since Grub2 changed the handling and it requires placeholder if booted kernel path is unused . More information is in the discussion: http://lists.gnu.org/archive/html/grub-devel/2010-01/msg00193.html Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c6 --- Comment #6 from Michael Chang <mchang@suse.com> 2012-06-19 06:32:04 UTC --- I think we should not create those unbootable menu entries by filtering out xen kernels in the 10_linux script. My idea is basically matching those file names and exclude them, if anyone know better way to distinguish them with usual kernel please let me know. Also we have lots of xen-* menu-entries created by 20_linux_xen, they are almost redundant, like the case of 10_linux, they're decided by simple wild card matching (even check with up-to-date upstream scripts) xen_list=`for i in /boot/xen*; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done If we want to have tidy configs then we have to figure a way to filter out redundant entries. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c7 --- Comment #7 from Michael Chang <mchang@suse.com> 2012-06-22 10:14:55 UTC --- Created an attachment (id=495983) --> (http://bugzilla.novell.com/attachment.cgi?id=495983) Patch to exclude wrong and duplicated entries -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=757895 https://bugzilla.novell.com/show_bug.cgi?id=757895#c8 Torsten Duwe <duwe@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |duwe@suse.com Resolution| |FIXED --- Comment #8 from Torsten Duwe <duwe@suse.com> 2012-10-11 12:16:54 UTC --- Fixed for Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com