Talk:PXE boot: Difference between revisions
(→Details for generating pxerd: new section) |
m (→Details for generating pxerd: some more details) |
||
Line 8: | Line 8: | ||
== Details for generating pxerd == | == Details for generating pxerd == | ||
This is how I do it to prepare a PXEboot for qemu machines<pre> | This is how I do it to prepare a PXEboot for qemu machines from a ''run-from-ram-from-cdrom'' <pre> | ||
setup-interfaces | setup-interfaces | ||
/etc/init.d/networking start | /etc/init.d/networking start | ||
Line 24: | Line 24: | ||
echo 'features="ata base bootchart cdrom cramfs ext2 ext3 ext4 xfs floppy keymap kms raid scsi usb virtio squashfs network dhcp nfs"' > mkinitfs.conf | 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 | mkinitfs -o /root/pxerd | ||
scp /root/pxerd $TFTPSERVER:$ | scp /root/pxerd $TFTPSERVER:$TFTPPATH | ||
scp /media/cdrom/boot/vmlinuz-grsec $TFTPSERVER:$TFTPPATH | |||
scp -r /media/cdrom/* $NFSSERVER:$NFSPATH | |||
</pre> | </pre> |
Revision as of 08:52, 16 March 2015
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 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