Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PXE Booting 2005.0 CD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
daxb
n00b
n00b


Joined: 25 Aug 2003
Posts: 4
Location: New Zealand

PostPosted: Wed Jun 15, 2005 5:02 am    Post subject: PXE Booting 2005.0 CD Reply with quote

I thought I'd post up some quick and dirty instructions on roughly how to PXE boot a 2005.0 cd.

The best way would be to customise you own using the instructions here:
https://forums.gentoo.org/viewtopic-t-244837-highlight-tmp+initrd+bin.html

But that can be time consuming, and someone else has already trimmed most of what is required into the livecd. So here goes, this is more a braindump of the steps involved but should be enough to point you in the right direction.

Prerequsites:

    Patched 2.6.xx kernel (gentoo-sources)
    Working pxelinux PXE server (with tft & dhcp)
    squashfs, loopback support enabled in build host kernel.
    squashfs-tools on build host
    gentoo-sources kernel (this has squashfs kernel patches)


Steps involved:
Download and mount the live minimal cd iso as a loopback device, copy the livecd.squashfs image from it and mount it.

Then create a ramdisk image large enough to copy all the contents of the livecd.squashfs image to it.

The example below creates a large ramdisk image and wont boot on a machine with less than 256MB. If you require a smaller image remove unused files from the squashfs directory prior to copying. EG locale-archive and python use approx 60MB alone. I know a disk image using count=85203 definitely boots with 128MB
Code:

mkdir /mnt/iso /mnt/initrd /mnt/squash
mount -o loop install-x86-minimal-2005.0.iso /mnt/iso
mkdir squash
cp /mnt/iso/livecd.squashfs .
mount -o loop livecd.squashfs /mnt/squash
cp -a /mnt/squash/* squash/
dd if=/dev/zero of=initrd bs=1024 count=165000
mke2fs initrd
mount -o loop initrd /mnt/initrd
cp -a squash/* /mnt/initrd/
umount /mnt/initrd
cp initrd initrd2
gzip initrd2


This leaves you with a initrd2.gz image which can be placed in the pxelinux boot directory

The pxe boot kernel requires the following options, along with all the relevant network and disk drivers you require statically compiled in.

Code:

Device Drivers  --->
    Block devices  --->
        [*] Loopback device support
        [*] Network block device support
        [*] RAM disk support
        [*]   Initial RAM disk (initrd) support
    Networking support  --->
        Networking options  --->
            [*]   IP: kernel level autoconfiguration
            [*]     IP: DHCP support
            [*]     IP: BOOTP support
    Graphics support  --->
        [*]   VESA VGA graphics support
            VESA driver type (vesafb)
        [*] Support for the framebuffer splash
File systems  --->
    Miscellaneous filesystems  --->
        [*] SquashFS 2.1 - Squashed file system support

If you want to use the same kernel for nfs booting:

File systems  --->
    Network File Systems  --->
        [*] NFS file system support
        [*]   Provide NFSv3 client support
        [*] Root file system on NFS


And heres a sample of the pxelinux.cfg config I used:

Code:

prompt 1
timeout 200
display pxelinux.txt
default memtest

label livecd
        kernel kernel-2.6.11-server
        append ramdisk=165000 initrd=initrd2.gz root=/dev/ram0 udev nodevfs vga=791 splash=silent,theme:livecd-2005.0 acpi=off ip=dhcp


I originally started using help from here:
https://forums.gentoo.org/viewtopic-t-151242-highlight-boot+pxe+livecd.html
But found that it complicated matters by placing a the livecd.squashfs image inside of another initrd image.

Cheers
Dax
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum