Version 1 (modified by 15 years ago) ( diff ) | ,
---|
In order to test NanoBSD there are various options available. One of them is via NFS
XXX: Make pretty document
%cat /etc/rc.conf hostname="richard.wleiden.net" ifconfig_xl0="inet 172.19.137.70/27" defaultrouter="172.19.137.66" sshd_enable="YES" # # PXEboot envirionment ifconfig_bfe0="inet 192.168.4.1/24" # DHCPD server, ip address, options, hints dhcpd_enable="YES" # TFTP server, initial boot inetd_enable="YES" # NFS server, kernel and more nfs_server_enable="YES" rpcbind_enable="YES" mountd_flags="-r"
%cat /etc/exports /data -alldirs -maproot=root -network 192.168.4.0/24 /data -alldirs -maproot=root 127.0.0.1
%cat /usr/local/etc/dhcpd.conf # ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates. ddns-update-style ad-hoc; default-lease-time 600; max-lease-time 7200; authoritative; option domain-name "example.com"; option domain-name-servers 192.168.4.1; option routers 192.168.4.1; subnet 192.168.4.0 netmask 255.255.255.0 { range 192.168.4.10 192.168.4.100; filename "pxeboot"; option root-path "192.168.4.1:/data"; }
%grep -v '#' /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
# mkdir /tftpboot # cp /boot/pxeboot /tftpboot
# mkdir /data # MD=`mdconfig -a -t vnode -f /usr/obj/nanobsd.wleiden/._disk.image` # mount /dev/${MD}a /data
Note:
See TracWiki
for help on using the wiki.