免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4287 | 回复: 1

solaris x86 基于grub重启自动安装系统 [复制链接]

论坛徽章:
0
发表于 2014-04-24 17:43 |显示全部楼层
kernel /platform/i86pc/multiboot kernel/unix - install dhcp nowin nfs://10.162.116.2/opt/jumpstart/config/Solaris-10-U8-X86/10.200.117.2
44/config.tar -B install_media=10.162.116.2:/export/image/Solaris-10-U8-X86
module /platform/i86pc/x86.miniroot

我在grub这样写的时候,总是没办法dhcp获取信息,导致安装终止,不是dhcp的问题

我修改成这个样子的时候就可以运行,
kernel /platform/i86pc/multiboot kernel/unix - install dhcp
module /platform/i86pc/x86.miniroot
这样就可以拿到dhcp 信息了但是就要手动输入response file 和 install media了。

求助,如果架上response file和install media的正确写法

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
发表于 2014-05-07 08:13 |显示全部楼层
gooutya1 发表于 2014-04-24 17:43
kernel /platform/i86pc/multiboot kernel/unix - install dhcp nowin nfs://10.162.116.2/opt/jumpstart/c ...


贴一段几年前完成的x86 PXE solaris 10的安装文档,仅供参考:


Solaris 10u10Jumpstart X86 Installation Procedure
1,prepare for ISO images
Download x86 ISO images from oracle.com
Mount ISO images
# lofiadm -a /export/sun/sol-10-u9-ga-x86-dvd.iso
# mkdir /cd
# mount -F hsfs -o ro /dev/lofi/1 /cd

# cd /cd/Solaris_10/Tools
# mkdir /export/
# ./setup_install_server -b /export/jump
Verifying target directory...
Calculating space required for the installation boot image
Copying Solaris_10 Tools hierarchy...
Copying Install Boot Image hierarchy...
Copying /boot netboot hierarchy...
Install Server setup complete

2, Update system configuration file
Update /etc/hosts
# vi /etc/hosts
1.1.1.1 js #jumpstart server IP
1.1.1.3 v20z #jumpstart Client IP

Update or Make /etc/ethers to resolve the MAC for client OS
# cat /etc/ethers
00:14:4F:0F:A6:14 v20z

3, Enable tftp service
Check the trailing contents of /etc/inetd.conf
tftp    dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tftpboot
Run inetconv to convert to SMF service
# mkdir /tftpboot
# inetconv
inetconv: Notice: Service manifest for 100235/1 already generated as /var/svc/manifest/network/rpc/100235_1-rpc_ticotsord.xml, skipped
tftp -> /var/svc/manifest/network/tftp-udp.xml
Importing tftp-udp.xml ...Done
tftp -> /var/svc/manifest/network/tftp-udp6.xml
Importing tftp-udp6.xml ...Done

4, Setup ISC-DHCPD 3.1
Dhcpd is GNU software packages, you can get it from internet freely.
update dhcpd configration file
allow booting;
allow bootp;
option domain-name "private.jtac";
option domain-name-servers 1.1.1.1;       #a valid DNS server, given by your ISP

default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

subnet 1.1.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
next-server 1.1.1.1;
option routers 1.1.1.1;
host jiagang {
  hardware ethernet 00:14:4F:0F:A6:14;
  filename "v02z";
  fixed-address 1.1.1.3;
}
}
v20z is under the /tftpboot directory

Startup the dhcp deamon
# /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf bge1

5,  populate the client jumpstart configration
# cd /cd/Solaris_10/Tools
# ./add_install_client -d -s 1.1.1.1:/cd v20z i86pc

Update the menu.list for GRUB
# cat /tftpboot/boot/grub/menu.lst
default=0
timeout=30
min_mem64 1024
title Solaris_10 cd
        kernel$ /I86PC.Solaris_10-1/multiboot kernel/$ISADIR/unix -B install_media=1.1.1.1:/cd,install_boot=1.1.1.1:/cd/boot -v -m install
        module$ /I86PC.Solaris_10-1/$ISADIR/x86.miniroot
Tip: "-v -m install" will be taken effect during full automaitic installation.

6, Verify the current status.
# share   #confirm the /cd directory is shared
# svcs -a \*tftp\*  # confirm the tftp is online
# ps -eaf|grep dhcp # confirm dhcp is online
# ls /tftpboot  #confirm the v20z and directory boot exists.
7, boot from network to begin installation.

Reference:
https://support.us.oracle.com/oi ... d=1018925.1&h=Y
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP