[Bug 667303] New: kiwi: improve ec2 images
https://bugzilla.novell.com/show_bug.cgi?id=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c0 Summary: kiwi: improve ec2 images Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: ASSIGNED Severity: Enhancement Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: ms@novell.com QAContact: adrian@novell.com CC: pzb@novell.com, rschweikert@novell.com Found By: --- Blocker: --- kiwi's ec2 support today creates a virtual disk image which can only serve as an EBS volume inside Amazon. Our most important and only customer IBM can't use this kind of ami and needs the other ami type which just comes as a filesystem image. In addition to that Amazon provided a new functionality (importVolume) which allows to translate the fileystem based ami into an EBS volume. Therefore kiwi should be changed in a way that allows the creation of a generic ami which is filesystem based and can be turned into an EBS volume by Amazon's ec2 toolkit. In order to achieve this the ec2 image type needs to be specified as follows: <type image="ext3" format="ec2"/> .... <packages type="image"/> <package name="kernel-ec2"/> </packages> The ec2 format code needs the following changes: 1) create the initrd with mkinitrd and parameters and put it to /boot 2) create the bootloader configuration (grub) with fixed /dev/sda1 root device and put it to /boot 3) bundle this image as ami In addition to that the ec2 bootprofile can be removed from kiwi's boot (initrd) image descriptions -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c1 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |pzb@novell.com --- Comment #1 from Marcus Schaefer <ms@novell.com> 2011-01-26 14:40:06 UTC --- Peter could you add the details for the mkinitrd call and grub menu.lst ? 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c2 --- Comment #2 from Marcus Schaefer <ms@novell.com> 2011-01-31 11:44:50 UTC --- Peter ? -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c3 --- Comment #3 from Robert Schweikert <rschweikert@novell.com> 2011-02-01 20:29:47 UTC --- I think all information required can be found in this document: http://ec2-downloads.s3.amazonaws.com/user_specified_kernels.pdf -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c5 --- Comment #5 from Robert Schweikert <rschweikert@novell.com> 2011-02-01 20:33:56 UTC --- Peter, anything I missed? -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c6 Peter Bowen <pzb@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|pzb@novell.com | --- Comment #6 from Peter Bowen <pzb@novell.com> 2011-02-01 20:50:08 UTC --- (In reply to comment #5)
Peter, anything I missed?
Only that the doc is extremely misleading in the following part: Several PVGRUB AKIs are available depending on the type and location of your instance. There are AKIs for 32‐bit and 64‐bit architecture types, and there are AKIs for Amazon S3‐Backed instances and Amazon EBS‐backed instances. For S3‐ Backed instances, choose an AKI with “hd0” in the name, and for EBS‐backed instances chose an AKI with “hd00” in the name. These names refer to different disk layouts within the AKI that are appropriate for each use case. This is simply wrong. hd00 AKIs are used when there is a partition table and the root volume is mounted on a full device, hd0 is used when the root volume has no partition table. The only relation to EBS vs. S3 is that S3-backed images are _always_ without partition table, while EBS ones are only _usually_ without partition table. Here are the statistics for root devices on the public images in EC2: 1774 <rootDeviceName>/dev/sda1</rootDeviceName> 19 <rootDeviceName>/dev/sda2</rootDeviceName> 88 <rootDeviceName>/dev/sda5</rootDeviceName> 4 <rootDeviceName>/dev/sda</rootDeviceName> 6 <rootDeviceName>/dev/sdb</rootDeviceName> 1 <rootDeviceName>/dev/sdh</rootDeviceName> I would suggest ignoring the hd00 PV-GRUB. -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c7 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ms@novell.com |rschweikert@novell.com --- Comment #7 from Marcus Schaefer <ms@novell.com> 2011-02-03 12:15:37 UTC --- I changed kiwi accordingly. A fixed root device /dev/sda1 is used for the ec2 format now and I really hope that's ok. I have a bad feeling with this. The format does the following: - create initrd - setup sysconfig/bootloader - setup etc/fstab - setup boot/grub/device.map - make sure grub stage files are in /boot - create menu.lst - create grub.conf - setup console all the rest belongs to the system configuration imho and therefore should stay in config.sh. Please double check the change @Robert: would you mind to update the kiwi-doc-ec2 chapter ? you can run make check in the doc directory to find out which packages you need to build the docs 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c8 --- Comment #8 from Peter Bowen <pzb@novell.com> 2011-02-03 12:21:18 UTC --- (In reply to comment #7)
- make sure grub stage files are in /boot
It turns out that this is unnecessary. PV-GRUB does not use these files at all. (Yes, I need to fix this in my script as well) -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c9 --- Comment #9 from Robert Schweikert <rschweikert@novell.com> 2011-02-03 13:13:53 UTC ---
@Robert:
would you mind to update the kiwi-doc-ec2 chapter ?
Just sent a patch including doc changes and example changes to the kiwi-dev list. Hopefully we were on the same wavelength and the doc matches the implemented code changes. -- 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=667303 https://bugzilla.novell.com/show_bug.cgi?id=667303#c10 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Marcus Schaefer <ms@suse.com> 2011-11-22 16:25:44 UTC --- so this one can be closed as fixed -- 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