About This AMI
This AMI is based on the Amazon Fedora 8 AMI with the addition of developer tools and libraries, including the 2.6.21 kernel source for recompiling kernel modules.
If and when Amazon releases an OFFICIAL Fedora 8 Developer AMI, this AMI will be retired. and this documentation will be updated to point to Amazon's public AMI docs.
This AMI is itself in development. Please submit comments for improvement in the discussion forum below (not the reviews section).
Compiling Kernel Modules
If you wish to compile the kernel modules from source, the following steps may be used on this AMI. [TBD: Update this documentation to show how to upgrade to the latest source version.]
cd /usr/src/linux-$(uname -r)
time make modules # 70 minutes
make INSTALL_MOD_STRIP=1 modules_install
tar cvzf /tmp/ec2-kernel-modules-$(uname -r).tar.gz \
/lib/modules/$(uname -r)/kernel/*
Build Process
The following steps were taken to build this AMI starting with the Fedora 8 AMI (ami-f51aff9c).
Install required packages:
yum upgrade -y
yum install -y rpmdevtools sparse
Download kernel source, patch, and configure:
time curl -O http://koji.fedoraproject.org/packages/kernel-xen-2.6/2.6.21.7/2.fc8/src/kernel-xen-2.6-2.6.21.7-2.fc8.src.rpm
rpm -ivh kernel-xen-2.6-2.6.21.7-2.fc8.src.rpm 2>&1 |
egrep -v '(user|group) mockbuild does not exist'
arch=i686
cd /usr/src/redhat/SPECS
rpmbuild -bp --target=$arch kernel.spec
mv /usr/src/redhat/BUILD/kernel-2.6.21/linux-2.6.21.$arch \
/usr/src/linux-$(uname -r)
rm -rf /usr/src/redhat
cd /usr/src/linux-$(uname -r)
mv .config .config.orig
cp /boot/config-$(uname -r) .config
echo "-2.fc8xen" > localversion-ec2
Add other packages to (sort of) match the FC4 developer AMI from Amazon:
yum install -y \
Glide3 Glide3-libGL audit automake bind bison checkpolicy crash \
flex freeglut gdb gimp gmp grub htmlview httpd ipsec-tools \
jpackage-utils ksh libxml2-python lockdev lrzsz mgetty minicom \
mkbootdisk mtools mysql-server nasm ncurses-devel neon php \
php-mysql php-pear ppp prelink pyOpenSSL redhat-menus rootfiles \
rp-pppoe screen setarch statserial strace tcl tcsh termcap vnc \
vnc-server xterm
Rebundle the running instance, upload, and register the AMI.
History
ami-2e769347 -
alestic/fedora-8-i386-developer-20080411.manifest.xml
Credits
Special thanks go to:
|