NetBSD PXE boot Install (without NFS)
http://tech.ddvip.com 2006年08月09日 社区交流
本文详细介绍NetBSD PXE boot Install (without NFS)
By: BSDSupport
Published: 5.3.2006
Updated: 5.3.2006
This was tested on NetBSD 3.99.16, however the instructions should apply to older versions as well. I have attempted to flag steps where you may run into version incompatabilities with "Version Note".
To PXEboot install NetBSD we will first need to configure a tftp server. You will need to insure that tftp is uncommented from inetd.conf and that inetd is enabled to run.
/etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot/etc/rc.conf inetd=YESThen we will need to create the /tftpboot directory and populate it. You will need the pxeboot_ia32.bin file (included in base.tgz) and the netbsd-INSTALL kernel.
Note: The installboot command is only necessary if you're booting via a serial console (i.e. a Soekris box) as is the case in this paper.
Version Note: In the event you will need serial console support older versions of installboot may not support writing to oxeboot_ia32.bin, you will need to extract or build pxeboot_ia32_com0.bin. # cd /rootNext you will need to configure dhcpd, and ensure it is enabled to run. You must configure dhcpd to serve pxeboot_ia32.bin.
# mkdir -p /tftpboot
# gunzip netbsd-INSTALL.gz
# cp netbsd-INSTALL /tftpboot
# tar -zf base.tgz -x ./usr/mdec/pxeboot_ia32.bin
# cd usr/mdec
# installboot -e -o console=com0,speed=19200 pxeboot_ia32.bin
# cp pxeboot_ia32.bin /tftpboot
Note: The next-server option is critical, it should refer to the tftp server IP address.
/etc/dhcpd.conf default-lease-time 3600;/etc/rc.conf
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option domain-name "domain.local";
ddns-update-style ad-hoc;
option domain-name-servers 10.0.10.100;
subnet 10.0.10.0 netmask 255.255.255.0 {
option routers 10.0.10.1;
range 10.0.10.150 10.0.10.200;
next-server 10.0.10.5;
option root-path "/tftpboot";
filename "/pxeboot_ia32.bin";
}dhcpd=YESMake sure dhcpd and inetd are running, and then boot the host you wish to install. # /etc/rc.d/inetd restartIf you are attempting to install onto a Soekris box, you must tell it to PXEboot
# /etc/rc.d/dhcpd restart> boot F0You will see the PXEboot sequence, which will launch the NetBSD bootloader, you need to interrupt the NetBSD bootloader (hit spacebar several times). Once you are at the NetBSD bootloader prompt, enter the following: > boot tftp:netbsd-INSTALLAfter this point, you will be booted into the NetBSD installation process you are used to.
责编:豆豆技术应用
- Linux/Unix 新闻
- Linux/Unix 入门
- Linux/Unix 命令
- Linux/Unix 安装
- Linux 嵌入式系统
- Linux/Unix 编程
- Linux/Unix 管理
- Linux/Unix 桌面
- Linux/Unix 内核
- Linux/Unix 软件
- SCO Unix
- NetBSD
- OpenBSD
- Redhat/Fedora Linux
- 手机
- Linux/Unix find 搜索命令
- Linux/Unix vi 命令
- Linux/Unix kde 桌面环境
- Linux/Unix GNOME 桌面环境
- Linux/Unix Make 命令
- Linux/Unix crontab 命令
- Linux/Unix ext3 文件系统
- Linux/Unix 文件系统详解
- Linux/Unix ADSL 拨号设置
- Linux/Unix GRUB 配置及应用
- Linux/Unix nfs配置
- Linux/Unix 硬件信息查看及管理
- Linux/Unix 优化
- Linux/Unix 交换分区Swap管理及应用
- Linux/Unix 用户管理
- Linux/Unix Ramdisk
- Linux/Unix 密码恢复管理
- Linux/Unix 文件删除恢复
- Linux/Unix fdisk分区
- Linux/Unix lvs负载均衡管理
- Linux/Unix root用户
- Linux/Unix 集群
- Linux/Unix 日志
- 更多Linux/Unix专题……