[Bug 594199] New: Kiwi Not Producing Bootable USB Stick Images
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c0 Summary: Kiwi Not Producing Bootable USB Stick Images Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: SLES 11 Status: NEW Severity: Major Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: delder@novacoast.com QAContact: adrian@novell.com Found By: --- Blocker: --- Created an attachment (id=352725) --> (http://bugzilla.novell.com/attachment.cgi?id=352725) Build logs from new (kiwi) and old (kiwi.old) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8 I recently upgrade my kiwi installation but I unfortunately don't know what version I had previously from the Virtualization:Appliances repo (http://download.opensuse.org/repositories/Virtualization:/Appliances/SLE_11/). For safety sake, I bumped the version number (0.7.0->0.7.1) in my config.xml and changed the name and after performing a new build I'm getting an image that won't boot from USB. The kiwi build process completes successfully but when loaded onto a USB stick results in GRUB giving an Error 21. If I reload the old image on the USB stick it loads fine and the system can boot again. It looks like the build process has changed from using fdisk to parted and I'm guessing other pieces have changed as well. When I compare the old image (built within the last 60 days) to the new one with the file command I see: zenboot.x86_64-0.7.0.raw: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200, GRUB version 0.97; partition 1: ID=0x83, active, starthead 1, startsector 63, 1654632 sectors zenboot.x86_64-0.7.1.raw: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 1654632 sectors I currently have the following kiwi packages installed although I unfortunately don't have the older (< 2 month old) version numbers. kiwi-desc-isoboot-4.26-91.1 kiwi-desc-xenboot-4.26-91.1 kiwi-4.26-91.1 kiwi-tools-4.26-91.1 kiwi-desc-oemboot-4.26-91.1 kiwi-desc-usbboot-4.26-91.1 kiwi-templates-4.26-91.1 kiwi-desc-vmxboot-4.26-91.1 kiwi-pxeboot-4.26-91.1 kiwi-desc-netboot-4.26-91.1 Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c1 --- Comment #1 from Dan Elder <delder@novacoast.com> 2010-04-06 22:37:19 UTC --- Created an attachment (id=352726) --> (http://bugzilla.novell.com/attachment.cgi?id=352726) Kiwi config -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c2 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |ASSIGNED --- Comment #2 from Marcus Schaefer <ms@novell.com> 2010-04-07 08:09:32 UTC --- Can you boot the .raw file in a VM qemu zenboot.x86_64-0.7.1.raw do you get the same grub error ? It's pretty odd because the log file showed that grub was installed successfully. Do you see any differences from the output of sfdisk -l zenboot.x86_64-0.7.0.raw sfdisk -l zenboot.x86_64-0.7.1.raw Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c4 --- Comment #4 from Marcus Schaefer <ms@novell.com> 2010-04-07 09:10:26 UTC --- Hmm, I created a test image (not Xen but default kernel, shouldn't matter here) and dumped it on a stick dd if=file.raw of=/dev/sdb bs=32k. I can boot from this stick and "file file.raw" tells me the same you got with your new image built which grub version is this ? I used grub-0.97-156.3 grub error: 21 : "Unknown boot failure" Well doesn't tell us much :-) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c5 Steffen Winterfeldt <snwint@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|snwint@novell.com | --- Comment #5 from Steffen Winterfeldt <snwint@novell.com> 2010-04-07 11:40:46 CEST --- Well, maybe file is right and it isn't grub but a generic mbr? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c6 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |snwint@novell.com --- Comment #6 from Marcus Schaefer <ms@novell.com> 2010-04-07 11:31:58 UTC --- I created a test image and the output of file is really different. When created with fdisk file says something about "Grub ..." when created with parted it doesn't tell anything about it. But both files boot with grub without any problems. I tested in a VM (qemu) and on a real stick both worked fine any other idea what is different between parted and fdisk here ? the geometry and the sector start/stop values are identical compared to the fdisk and parted results. The grub command are also identical between both. I manually re-installed grub on a disk partitioned with parted and grub worked as expected but file on the raw file still didn't report anything about the grub bootloader -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c7 Steffen Winterfeldt <snwint@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|snwint@novell.com |ms@novell.com --- Comment #7 from Steffen Winterfeldt <snwint@novell.com> 2010-04-07 14:05:20 CEST --- Can you attach the first block of both images? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c8 --- Comment #8 from Marcus Schaefer <ms@novell.com> 2010-04-07 12:15:47 UTC --- Created an attachment (id=352823) --> (http://bugzilla.novell.com/attachment.cgi?id=352823) block1.fdisk 1024 bytes -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c9 --- Comment #9 from Marcus Schaefer <ms@novell.com> 2010-04-07 12:16:21 UTC --- Created an attachment (id=352825) --> (http://bugzilla.novell.com/attachment.cgi?id=352825) block1.parted 1024 bytes -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c10 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|ms@novell.com |snwint@novell.com --- Comment #10 from Marcus Schaefer <ms@novell.com> 2010-04-07 12:17:36 UTC --- done, I had a look into both files and both have Grub signatures in it but file on the fdisk one reports something about grub and file on the parted one doesn't. Both images boot fine with grub Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c11 --- Comment #11 from Marcus Schaefer <ms@novell.com> 2010-04-07 12:19:54 UTC --- just for the record I never was able to reproduce the problem of not being able to boot the image. It works in any case no matter what file reports. So my initial questions to the reporter whether it's possible to boot the image in a VM is still of interest. Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c12 Steffen Winterfeldt <snwint@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|snwint@novell.com | --- Comment #12 from Steffen Winterfeldt <snwint@novell.com> 2010-04-07 14:42:04 CEST --- file gives identical output on both blocks (tested on 11.2 & 11.3): x86 boot sector; GRand Unified Bootloader, stage1 version ... Both blocks are functional identical; the extra non-0 bytes in the parted block are leftovers from 'mklabel msdos' and not significant. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c13 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |delder@novacoast.com Severity|Major |Normal --- Comment #13 from Marcus Schaefer <ms@novell.com> 2010-04-07 12:47:35 UTC --- on 11.1 and SLE11 you get more information anyway I guess this is not related to the initial bug description Dan can you answer the question in comment #2 ? Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c14 --- Comment #14 from Steffen Winterfeldt <snwint@novell.com> 2010-04-07 14:54:52 CEST --- I wouldn't call that 'more'. :-) Anyway, 'file -k' should still show the grub match. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c15 --- Comment #15 from Dan Elder <delder@novacoast.com> 2010-04-07 15:34:54 UTC --- file -k *.raw zenboot.x86_64-0.7.0.raw: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200, GRUB version 0.97; partition 1: ID=0x83, active, starthead 1, startsector 63, 1654632 sectors zenboot.x86_64-0.7.1.raw: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 1654632 sectors I apologize for not responding sooner, these time zones keep getting in my way. I was able to move the images to my local machine and qemu does run them just fine. Putting zenboot.x86_64-0.7.1.raw on usb stick though still fails while zenboot.x86_64-0.7.0.raw works. I will try testing this on some different hardware to see if there might be a BIOS related issue causing the issue and also test with different USB sticks. /sbin/sfdisk -l *.raw Disk zenboot.x86_64-0.7.0.raw: cannot get geometry Disk zenboot.x86_64-0.7.0.raw: 103 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System zenboot.x86_64-0.7.0.raw1 * 0+ 102 103- 827316 83 Linux zenboot.x86_64-0.7.0.raw2 0 - 0 0 0 Empty zenboot.x86_64-0.7.0.raw3 0 - 0 0 0 Empty zenboot.x86_64-0.7.0.raw4 0 - 0 0 0 Empty Disk zenboot.x86_64-0.7.1.raw: cannot get geometry Disk zenboot.x86_64-0.7.1.raw: 103 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System zenboot.x86_64-0.7.1.raw1 * 0+ 102 103- 827316 83 Linux zenboot.x86_64-0.7.1.raw2 0 - 0 0 0 Empty zenboot.x86_64-0.7.1.raw3 0 - 0 0 0 Empty zenboot.x86_64-0.7.1.raw4 0 - 0 0 0 Empty -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c16 --- Comment #16 from Steffen Winterfeldt <snwint@novell.com> 2010-04-07 18:03:02 CEST --- Well, this is different from Marcus' two images then. I would say that 0.7.1 does not have grub installed into the mbr but into the partition and uses a generic mbr. If 0.7.1 has only some rudimentary mbr (like the parted code I saw earlier today) then you might have run into a disk geometry mismatch issue. If you attach the first block from zenboot.x86_64-0.7.1.raw, I can have a look. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c17 --- Comment #17 from Dan Elder <delder@novacoast.com> 2010-04-07 16:11:52 UTC --- I will upload the first MB from each image but I've also made the full images available at: https://www.theelderfamily.org/zenboot.x86_64-0.7.0.raw https://www.theelderfamily.org/zenboot.x86_64-0.7.1.raw I'm capturing the 1st MB by doing: dd if=zenboot.x86_64-0.7.0.raw of=zenboot.x86_64-0.7.0.1m bs=1M count=1 dd if=zenboot.x86_64-0.7.1.raw of=zenboot.x86_64-0.7.1.1m bs=1M count=1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c18 --- Comment #18 from Dan Elder <delder@novacoast.com> 2010-04-07 16:12:42 UTC --- Created an attachment (id=352909) --> (http://bugzilla.novell.com/attachment.cgi?id=352909) 1st MB -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c19 --- Comment #19 from Dan Elder <delder@novacoast.com> 2010-04-07 16:13:11 UTC --- Created an attachment (id=352910) --> (http://bugzilla.novell.com/attachment.cgi?id=352910) 1st MB of working image -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c20 --- Comment #20 from Dan Elder <delder@novacoast.com> 2010-04-07 18:07:56 UTC --- I apologize, this is looking more and more like a BIOS related issue than a kiwi one. I can boot the image successfully on a Thinkpad T61. For some reason though the HP Proliant DL380 is giving me issues though. I had problems before with the hardware where it wouldn't boot from USB if /boot was above 1024 cylinders (haven't seen that one since LILO) so this could be more ugliness on the part of HP. I'll keep trying a few things out to see if I can figure out why the BIOS doesn't want to boot this particular format and see if there is a BIOS update that would fix this. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c21 Dan Elder <delder@novacoast.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|delder@novacoast.com | Resolution| |INVALID --- Comment #21 from Dan Elder <delder@novacoast.com> 2010-04-07 22:49:40 UTC --- I've been able to confirm that a BIOS update for the HP Proliant DL380 (G6) resolves the boot issue. I don't know why it liked the old format and not the new one but it now works correctly with both. I apologize again for jumping the gun, I was worried there was something more fundamentally wrong but as it turns out HP just wasn't playing nice. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=594199 http://bugzilla.novell.com/show_bug.cgi?id=594199#c22 --- Comment #22 from Steffen Winterfeldt <snwint@novell.com> 2010-04-08 11:13:25 CEST --- just for the record: there is in fact nothing wrong with the image fragments you attached above -- Configure bugmail: http://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