Talk:PXE boot

From Alpine Linux

Details for generating pxerd

This is how I do it to prepare a PXEboot for qemu machines from a run-from-ram-from-cdrom

setup-interfaces
/etc/init.d/networking start
setup-proxy 
. /etc/profile.d/proxy.sh
setup-apkrepos
apk update
apk add mkinitfs openssh-client
cd /etc/mkinitfs/features.d/
echo "kernel/drivers/net/virtio_net.ko" >> network.modules
echo "/usr/share/udhcpc/default.script" > dhcp.files
echo "kernel/net/packet/af_packet.ko" > dhcp.modules
echo "kernel/fs/nfs/*" > nfs.modules
cd /etc/mkinitfs/
echo 'features="ata base bootchart cdrom cramfs ext2 ext3 ext4 xfs floppy keymap kms raid scsi usb virtio squashfs network dhcp nfs"' > mkinitfs.conf
mkinitfs -o /root/pxerd
scp /root/pxerd $TFTPSERVER:$TFTPPATH
scp /media/cdrom/boot/vmlinuz-grsec $TFTPSERVER:$TFTPPATH
scp -r /media/cdrom/* $NFSSERVER:$NFSPATH

For your specific setup, adjust the network.modules with needed kernel drivers.

--Jch (talk) 09:00, 16 March 2015 (UTC)

Packages not in the initial ISO

Be sure to have a local repo on the LAN with all needed package and to specify (alpine_repo=http://...) it the APPEND line of the pxelinux.cfg/config_file!