Date: Mon, 8 Apr 2002 10:25:21 -0500 (CDT) From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: <freebsd-questions@freebsd.org> Subject: diskless installation Message-ID: <20020408022656.T73981-100000@Gina.esfm.ipn.mx>
next in thread | raw e-mail | index | archive | help
I have successfully installed a FreeBSD 4.5-RELEASE diskless system. Even though this is not a questios, it could be a good idea to have this message in the questions list. Hope it helps. -Eduardo --------------------------------------- 1. I made a new directory where the diskless root file system is going to be installed. mkdir -p /usr/diskless/rootfs 2. With /stand/sysinstall, I made: in Options: InstallRoot -> /usr/diskless/rootfs in Configure/Distribution: Distributions -> bin crypto src/sys and let the installation start. 3. Diskless Kernel configuration: chroot /usr/diskless/rootfs cd /sys/i386/conf config diskless cd ../../compile/diskless make depend make make install exit diskless configuration include: options MFS options BOOTP options BOOTP_COMPAT options BOOTP_NFSROOT and it is the same that the one I am working with. 4. Diskless /etc configuration chroot /usr/diskless/rootfs cd / passwd root [change root's password] newaliases in /etc/hosts, I added a line with the sever IP address: echo 192.168.123.176 server >> /etc/hosts in /etc/fstab, add two lines to mount / and /usr file systems # Device Mountpoint FStype Options Dump Pass# server:/usr/diskless/rootfs / nfs rw 1 1 server:/usr/diskless/rootfs/usr /usr nfs rw 2 2 finally, copy your /etc file to /conf/default/ mkdir -p /conf/default cp -r etc /conf/default exit 5. Server isc-dhcpd configuration I installed isc-dhcp3-3.0.1.r4 from the ports. cd /usr/local/etc This is my /usr/local/etc/dhcpd.conf file: ddns-update-style none; default-lease-time 600; max-lease-time 7200; subnet 192.168.123.0 netmask 255.255.255.0 { option domain-name-servers 148.204.102.3; option domain-name "esfm.ipn.mx"; option routers 192.168.123.254; option broadcast-address 192.168.123.255; default-lease-time 600; max-lease-time 7200; host Paula { fixed-address 192.168.123.176; hardware ethernet 00:01:03:BE:A4:C5; option root-path "192.168.123.112:/usr/diskless/rootfs"; filename "pxeboot"; } } 6. Server TFTP service configuration I removed the comment char ('#') in the line: tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /tftpboot in /etc/inetd.conf and restarted inetd: killall -HUP inetd I created the /tftpboot directory. I did not like it to be in my root directory, I made in /usr and made a link: cd / mkdir -p usr/tftpboot ln -s /usr/tftpboot I copied pxeboot inside... cp /boot/pxeboot /tftpboot 7. Server NFS configuration: In /etc/exports file, add the line: /usr -maproot=0:0 -alldirs 192.168.123.176 and, then: killall -HUP mountd While testing, I forgot include -maproot=0:0. According to exports(5), /usr is exported but the client did not have root permission [see man exports(5)] on this directory, and my diskless system did not boot. 8. Diskless boot. a) I started my diskless system from my 3com905 network interface card [NIC]. I have to press "F12" at boot time. Some BIOS allow to specify booting from NIC. b) I also had an old 3c509 ISA network card in an old 486 computer. In order to make it work as a diskless system, I compiled /usr/ports/net/etherboot and made a boot floppy disk. [install ports] cd /usr/ports/net/etherboot make cd work/etherboot-5.0.5/src/ [insert a blank floppy disk] gmake bin32/3c509.fd0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020408022656.T73981-100000>