How to set up a diskless OpenBSD in Sun Sparc

2009-05-13 00:51:46来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

In my case I had an old Sun SparcStation IPX and a standard PC running
OpenBSD 2.9. What I wanted, was to boot up IPX from the network and
mount the root filesystem from a nfs server. In this case the server
IP address was 10.10.10.1 (super-gw) and the IPX IP address 10.10.10.2
(super-sparc) and the domain was super.local.
Basically what you need is:
  • rarp daemon to tell IPX its IP address
  • tftp daemon to provide the first stage boot loader
  • rpc.bootparam daemon to provide boot and filesystem parameters for IPX
  • nfs server to provide mount points of root and swap filesystems

Files you must modify:
   /etc/ethers
   /etc/hosts
   /etc/bootparams
   /etc/exports
If you want to start daemon services automatically you need to modify:
   /etc/rc.conf
   /etc/inetd.conf
rpc.bootparamd will be started automatically if the
/etc/bootparams file exists.
Step by step instructions

  • Read the
    diskless(8)
    man page from
    OpenBSD
    . It will
    explain the whole process and the reasons why diskless setups are
    somewhat tricky.

  • Find out the hardware address of your IPX box (le0 interface). In
    power on reset IPX will show it:
    SPARCstation IPX, Type 4 Keyboard
    ROM Rev. 2.3, 64 MB Memory installed, Serial #2103274
    Ethernet address 8:0:20:b:a1:cd, Host ID: 572017ea.

  • Set up rarp daemon that IPX will get its ip-address.
    # echo '8:0:20:b:a1:cd super-sparc' >> /etc/ethers
    # echo '10.10.10.2 super-sparc.super.local super-sparc' >> /etc/hosts
    and start the rarpd:
    # /usr/sbin/rarpd -a

  • Create /tftpboot directory and make it world readable
    with chmod and copy boot.net file from the OpenBSD
    2.9 Sparc distribution to there. That file is the boot program which
    will be loaded by the first stage boot loader of IPX. Make a link
    which name is composed of the IP address assigned to IPX in a
    hexadecimal format, a dot, and the architecture name (all upper
    case). If the IP address will be 10.10.10.2 and the system is IPX the
    link name will be 0A0A0A02.SUN4C
    # cd /tftpboot
    # ln -s boot.net 0A0A0A02.SUN4C
    Edit the /etc/inetd.conf to allow tftp daemon to run and
    restart inetd.

  • Now you can test the IPX load the boot loader program. In IPX boot
    prompt type b net:
    Type b (boot), c (continue), or n (new command mode)
    > b net
    and it should start downloading boot.net file. After
    downloading, IPX will freeze for 5-7 minutes but this is normal. IPX
    is trying to get an acknowledgement packet from the tftp server but the
    OpenBSD tftp daemon is not designated to respond. This inconvenience
    can be solved by hacking the code or compiling a different tftp
    daemon :-)
    When you get a message:
    Boot device: /sbus/le@0,c00000   File and args:

    标签:

    版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
    特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

  • 上一篇:Package Filter (1)

    下一篇:在Sparc机器上网络安装OpenBSD系统