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

From n0r1sk software solutions
Jump to: navigation, search
Line 1: Line 1:
 
  
 
==General==
 
==General==
Line 30: Line 29:
 
cd cd; md5sum `find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f` > md5sum.txt; cd ..
 
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
 
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===
  
 
[[Category:General Documentation]]
 
[[Category:General Documentation]]

Revision as of 20:02, 20 September 2010

General

Why we wrote this documentation? We are using about eight Debian based OpenVZ hosts to run 150+ OpenVZ containers on it. These servers 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 blade doesn't take longer as 15 minutes!

Preperation

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