Download bootfiles: Download the kern.flp and mfsroot.flp floppy images.
Setup tftp/pxe-boot directory:
Put pxeboot in the boot directory:
# rm -rf /usr/obj/* # cd /usr/src/sys/boot # make # cp /usr/src/sys/boot/i386/pxeldr/pxeboot /usr/tftpboot
Using the vndevice mount the kern.flp file and copy its contents to /usr/tftpboot:
# vnconfig vn0 kern.flp # associate a vndevice with the file # mount /dev/vn0 /mnt # mount it # cp -R /mnt /usr/tftpboot # copy the contents to /usr/tftpboot # umount /mnt # unmount it # vnconfig -u vn0 # disassociate the vndevice from the file
Compile a custom kernel for the clients (particularly to avoid the device config screen at boot) and stick it in /usr/tftpboot.
Make a special loader.rc to and install it in /usr/tftpboot/boot/loader.rc so that it does not prompt for the second disk, here is mine.
Extract the installer and helper utilities from the mfsroot disk and uncompress them, put them in /usr/tftpboot as well:
# vnconfig vn0 mfsroot.flp # associate a vndevice with the file # mount /dev/vn0 /mnt # mount it # cp /mnt/mfsroot.gz /usr/tftpboot # copy the contents to /usr/tftpboot # umount /mnt # unmount it # vnconfig -u vn0 # disassociate the vndevice from the file # cd /usr/tftpboot # get into the pxeboot directory # gunzip mfsroot.gz # uncompress the mfsroot
Make your sysinstall script install.cfg, you can use mine as a template, but you must edit it.
Copy the sysinstall script into the extracted and uncompressed mfsroot image:
# cd /usr/tftpboot # vnconfig vn0 mfsroot # mount /dev/vn0 /mnt # cp install.cfg /mnt # umount /mnt # vnconfig -u vn0
This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.
For questions about FreeBSD, read the
documentation
before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |