Changes between Version 3 and Version 4 of TestingViaNFS


Ignore:
Timestamp:
Jun 19, 2009, 7:02:31 AM (15 years ago)
Author:
rick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TestingViaNFS

    v3 v4  
    1 In order to test [wiki:NanoBSD WL NanoBSD] there are various options available. One of them is via NFS
     1In order to test [wiki:NanoBSD NanoBSD WirelessLeiden image] there are various options available. One of them is via NFS
    22
    3 XXX: Make pretty document, with some explanations
     3'''XXX: Make pretty document, with some explanations'''
     4
     5= Initial procedure =
     6
     7Note: All commands below needed to be executed by `root` user. Make sure not to alter a production machine as you will most likely leave your machine vulnerable for attacked and undiscovered exploits. Also to be advised to have the machine run behind a NAT/firewall setup.
     8
     9== Install packages ==
     10{{{
     11$ pkg_add -r isc-dhcp3-server
     12}}}
     13
     14== Create/alter files ==
     15Hints provided below, use common sense and ask questions on the mailinglist if you do not seems to get a bit.
    416
    517{{{
    6 %cat /etc/rc.conf
     18$ cat /etc/rc.conf
    719hostname="richard.wleiden.net"
    820ifconfig_xl0="inet 172.19.137.70/27"
     
    2840
    2941{{{
    30 %cat /etc/exports
    31 /data -alldirs -maproot=root -network 192.168.4.0/24
    32 /data -alldirs -maproot=root 127.0.0.1
     42$ cat /etc/exports
     43/usr/data/base -alldirs -maproot=root -network 192.168.4.0/24
     44/usr/data -alldirs -maproot=root -network 192.168.4.0/24
    3345}}}
    3446
    3547{{{
    36 %cat /usr/local/etc/dhcpd.conf
     48$ cat /usr/local/etc/dhcpd.conf
    3749# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
    3850ddns-update-style ad-hoc;
     
    5062
    5163  filename "pxeboot";
    52   option root-path "192.168.4.1:/data";
     64  option root-path "192.168.4.1:/usr/data/base";
    5365}
    5466}}}
    5567
    5668{{{
    57 %grep -v '#' /etc/inetd.conf
     69$ grep -v '#' /etc/inetd.conf
    5870tftp    dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot
    5971}}}
    6072
    6173{{{
    62 # mkdir /tftpboot
    63 # cp /boot/pxeboot /tftpboot
     74$ mkdir /tftpboot
     75$ cp /boot/pxeboot /tftpboot
    6476}}}
    6577
    6678{{{
    67 %grep 'rpcbind :' /etc/hosts.allow
     79$ grep 'rpcbind :' /etc/hosts.allow
    6880#rpcbind : 192.0.2.32/255.255.255.224 : allow
    6981#rpcbind : 192.0.2.96/255.255.255.224 : allow
     
    7385
    7486{{{
    75 # mkdir /data
    76 # MD=`mdconfig -a -t vnode -f /usr/obj/nanobsd.wleiden/_.disk.image`
    77 # mount /dev/${MD}a /data
     87$ mkdir -p /usr/data/{base,nfs,cfg}
    7888}}}
     89
     90== Restart services ==
     91'''XXX: Write proper list of services to restart w/o rebooting (take special care of NFS)'''
     92{{{
     93$ reboot
     94}}}
     95
     96= Usage procedure =
     97 1. Make sure you [wiki:NanoBSD build yourself an nanobsd image]
     98 1. Choose NFS testing variant:
     99    a. Start fresh (no old configuration)
     100    {{{
     101    $ /root/nanobsd/tools/prepare-nfs.sh
     102    }}}
     103    b. Use old configuration
     104    {{{
     105    $ /root/nanobsd/tools/prepare-nfs.sh -n
     106    }}}
     107 1. When done, 'unload' image
     108 {{{
     109 $ /root/nanobsd/tools/prepare-nfs.sh -u
     110 }}}
     111
     112= Background =
     113 * Inside your booted image `/nfs` will be mounted to your target machine directory `/usr/data/nfs` pointers to pre-build images (for direct burn to CF disk) also exists in this directory
     114 * '/cfg' will be stored on the target machine under `/usr/data/cfg`
     115
     116= Hints =
    79117
    80118{{{