============================================================== Virtuelles Unix Labor - Netboot Setup - Daniel Ettle, Hubert Feyrer ============================================================== Benoetigte Daemons: rarpd, tftpd, dhcpd, NFS Ablauf Netboot: * RARP Anfrage von OBP * rarpd beantwortet ARP Anfrage (/etc/ethers) * BOOTP Anfrage * dhcpd antwortet (/etc/dhcpd.conf) mit Bootfile (ignoriert!) und Naechstem (== tftp) Server: smaug * TFTP-Request fuer bootloader: 0A000002.SUN4M (== boot.disk/.net) (Herstellen von - boot.net: aus /usr/mdec - boot.disk: braucht /usr/mdec/boot plus speziellen Header davor, siehe SUN_MAGIC_HEADER in sys/arch/sparc/stand/boot/Makefile, per Martin Husemann am 28.1.03 auf port-sparc@netbsd.org XXX Der ganze Ansatz ist falsch!!! Selbst boot.disk kann nur NetBSD laden und hilft nix bei Solaris. Besser: 'eeprom boot-device=disk/net' setzen. * Vor Deployment: ssh machine 'eeprom boot-device=net ; reboot' * Nach Deployment: ssh machine 'eeprom boot-device=disk ; reboot' * tftp gibt /tftpboot/0A000002.SUN4M raus (/etc/inetd.conf) * boot.net startet, macht BOOTP Anfrage nach NFS-Root etc. * Kernel (/netbsd) wird von NFS-Root geladen * kernel startet, fragt via DHCP nach Location des root-FS an * mounten von /, /etc/rc abarbeiten (NFS root muss aufgesetzt sein, mit /sbin/init, /dev/console, ...) Auf smaug ist /vulab (symlink!) die NFS-root der Clients. Config-Files: * /etc/ethers (rarp) 08:00:20:7e:0c:2c vulab1 08:00:20:7d:ac:8e vulab2 * /etc/dhcpd.conf ddns-update-style none; ddns-updates off; allow bootp; allow booting; boot-unknown-clients off; one-lease-per-client true; use-host-decl-names on; default-lease-time 600; max-lease-time 720; min-lease-time 23; ### define grub-options for *lst option option-150 code 150 = text; subnet 10.0.0.0 netmask 255.255.255.0 { ### generall dhcp settings option broadcast-address 10.0.0.255; option subnet-mask 255.255.255.0; option routers 10.0.0.250; option domain-name "fh-regensburg.de"; option domain-name-servers 194.95.104.1; option ip-forwarding off; ### general options for booting over network next-server 10.0.0.250; # tftp-server } host vulab1 { hardware ethernet 08:00:20:7e:0c:2c; fixed-address 10.0.0.1; option root-path "/vulab/sparc-root"; } host vulab2 { hardware ethernet 08:00:20:7d:ac:8e; fixed-address 10.0.0.2; option root-path "/vulab/sparc-root"; } * /etc/exports (NFS, read-only export reicht) /vulab/sparc-root -ro vulab1 vulab2 * /etc/inetd.conf (tftpd) (Kommentarzeichen weg) -- $Id: netboot-doku.txt,v 1.8 2012-12-21 23:32:18 feyrer Exp $