How to set up a diskless OpenBSD in Sun Sparc
2009-05-13 00:51:46来源:未知 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash