Talk:PXE boot

From Alpine Linux
Revision as of 08:33, 16 March 2015 by Jch (talk | contribs) (→‎Details for generating pxerd: new section)

alpine_dev

It would be nice to be able to specify alpine_dev=nbd:<ip>:<port> or alpine_dev=nbd:<ip>:<name> ^^
A ro nbd with the latest iso and a darkhttpd to serve apkovl files ;)
--Jch (talk) 17:05, 21 February 2015 (UTC)

Details for generating pxerd

This is how I do it to prepare a PXEboot for qemu machines

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:$TARGETPATH