Talk:PXE boot: Difference between revisions
m (→alpine_dev) |
(→Details for generating pxerd: new section) |
||
Line 5: | Line 5: | ||
A ro nbd with the latest iso and a darkhttpd to serve apkovl files ;)<br/> | A ro nbd with the latest iso and a darkhttpd to serve apkovl files ;)<br/> | ||
--[[User:Jch|Jch]] ([[User talk:Jch|talk]]) 17:05, 21 February 2015 (UTC) | --[[User:Jch|Jch]] ([[User talk: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<pre> | |||
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 | |||
</pre> |
Revision as of 08:33, 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
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