Difference between revisions of "Debian Remaster Netinstaller - Integrate Firmware bnx2x and Preseed"

From n0r1sk software solutions
Jump to: navigation, search
Line 15: Line 15:
 
===Download Debian netinstaller iso===
 
===Download Debian netinstaller iso===
 
First you need to get a current stable netinstaller from one of the Debian mirror sites.
 
First you need to get a current stable netinstaller from one of the Debian mirror sites.
 +
<pre>wget http://cdimage.debian.org/debian-cd/5.0.6/i386/iso-cd/debian-506-i386-netinst.iso<pre>
  
  

Revision as of 21:17, 20 September 2010

General

We are using about eight Debian based OpenVZ hosts to run 150+ OpenVZ containers on it. At this time this containers are Ubuntu based, in the future we would like to use Debian Squeeze. The Hardware boxes are HP BL Blades 460c G6 and they have onbord Broadcom bnx2x network interface cards. To make life easier we have decided to use the Debian Netinstaller, a local repository cache (app-proxy-ng), our own repository with self made packages, Puppet for configuration file changes and of course Debian preseed.

In fact, the setup from the pure iron to the running ready to use system doesn't take longer as 15 minutes an we are using this setup over the last 5 years.

Informations about bnx2x firmware

The firmware for the bnx2x hardware is only available through the Debian non-free repository. This meens that the firmware is not included on the Debian setup media and therefore e.g. a netinstaller setup will not work.

To get things up and running you will have to integrate the firmware onto the netinstaller. In 2009 Dann Frazier [1] wrote a script that integrates the needed firmware automatic onto the netinstaller. Unfortunatley the link to the script on his side is dead. I've tried to send him an email but haven't got respond until today (Sep. 2010)

Why we wrote this documentation?

After a lot of search on the internet we found all needed information to do it on ourself. But the informations are currently spreaded about a lot of sites with obsolate state. You could find the ressources at the bottom of this page. If you have problems with this step by step guide, please let us know!

HowTo

Download Debian netinstaller iso

First you need to get a current stable netinstaller from one of the Debian mirror sites.

wget http://cdimage.debian.org/debian-cd/5.0.6/i386/iso-cd/debian-506-i386-netinst.iso<pre>



wget http://ftp.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2x_0.26_all.deb

1. zcat ../initrd.gz | cpio -iv

2. dpkg-deb -x firmware-bnx2x_0.26_all.deb bnx2

2.1 copy all under lib.... to init.rd root

2.2 add preseed scp root@10.200.2.96:/srv/repository/openvz-host-lenny preseed.cfg

3. find . -print0 | cpio -0 -H newc -ov | gzip -c > ../initrd.gz

4. mkisofs -o debian-506-amd64-netinst-bnx2x.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd


bsdtar -C cd -xf debian-506-amd64-netinst.iso


find . -print0 | cpio -0 -H newc -ov | gzip -c > ../initrd.gz
mv initrd.gz cd/install.amd/
cd cd; md5sum `find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f` > md5sum.txt; cd ..
mkisofs -o debian-506-amd64-netinst-bnx2x.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd

Test

Test1