红联Linux门户
Linux帮助

网络安装FreeBSD

发布时间:2007-10-24 00:10:44来源:红联作者:Ciudosr
需要一台bsd服务器, 假该BSD ip为192.168.1.200
安装rsync, isc-dhcp3-server, 都在/usr/ports/net下面可找到
上传bsd disc1 iso到服务器
# mdconfig -a -t vnode -u 0 -f /path/fbsd_disc1.iso
# mount_cd9660 /dev/md0 /mnt
# rsync -av /mnt /path
option domain-name-servers 61.129.66.79;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.100;
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
option root-path "192.168.1.200:/path/mnt";
filename "boot/pxeboot";
next-server 192.168.1.200;
}
编辑 /path/mnt/boot/loader.rc
load /boot/kernel/kernel
load -t mfs_root /boot/mfsroot
set vfs.root.mountfrom=ufs:/dev/md0c
boot
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /path/mnt
配置 /etc/exports
/path/mnt -ro 192.168.1.100
dhcpd_enable="yes"
rpcbind_enable="yes"
mountd_enable="yes"
nfs_server_enable="yes"
inetd_enable="yes"
启动服务
/etc/rc.d/rpcbind start
/etc/rc.d/nfsd start
/etc/rc.d/mountd start
/usr/local/etc/rc.d/isc-dhcpd start
启动要安装的服务器,设置从网络启动
正常安装freebsd
当在选择安装介质时,选择NFS, 配置网络为dhcp, NFS源 192.168.1.200:/path/mnt
文章评论

共有 0 条评论