麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 操作系統 > 正文

Jumpstart安裝實例

2024-07-26 00:29:31
字體:
來源:轉載
供稿:網友
又被mmmmn“出賣”,不過也好,我也該發推薦貼了,箱子見底了:(
用途不太廣泛,對有些需要的朋友有幫助的話就沒白忙活:)
如果還有人說照著這個還裝不出來的話!
我就!!!@#$^@$%^&#$%&$%&
==================================================================

Jumpstart安裝實例(作者:bear)

一、正常用CD-ROM手工安裝一臺機器(以下稱Install_sever),準備將其配置成Install Server
   <過程省略>
二、按照用戶分配的ip地址、規劃的hostname,和需要利用網絡安裝的主機的Ethernet Address
   修改Server的/etc/hosts和/etc/ethers
   例如:/etc/hosts中加入以下行
         129.148.94.6     Client1
 129.148.94.7     Client2
.
.
         /etc/ethers中加入以下行
 8:0:20:30:6:9a   Client1
 8:0:20:30:6:83   Client2
.
.

三、制作Solaris OS Image
   1、在Install_sever的CD-ROM中放入Solaris 8 Software 1 of 2光盤
   2、運行以下命令:
      # cd /cdrom/cdrom0/s0/Solaris_8/Tools
      # ./setup_install_server /export/install
      (其中/export/install所在的分區必須有足夠的空間,至少800M以上,建議1G
       如果/分區空間不夠,可選用其他目錄,只要于以后使用該目錄時保持一致即可
       如可以使用/export/home/install)
   3、等待程序運行完成以后,運行以下命令取出Solaris 8 Software 1 of 2光盤
      并放入Solaris 8 Software 2 of 2光盤
      # cd /
      # eject
   4、運行以下命令:
      # cd /cdrom/cdrom0/Solaris_8/Tools
      # ./add_to_install_server /export/install
   5、等待程序運行完成以后,運行以下命令取出Solaris 8 Software 2 of 2光盤
      并放入Solaris 8 Language 光盤
      # cd /
      # eject
   6、運行以下命令:
      # cd /cdrom/cdrom0/Tools
      # ./add_to_install_server -s /export/install
      按照系統提示選擇"Simplified Chinese"(簡體中文)選項,安裝相應軟件包
   7、等待程序運行完成以后,運行以下命令取出Solaris 8 Language 光盤
      # cd /
      # eject

   至此制作Solaris OS Image的工作完成
四、配置jumpstart相關信息
   1、運行以下命令
      # mkdir /jumpstart
      # cp -r /export/install/Solaris_8/Misc/jumpstart_sample/* /jumpstart
   2、用ftp將事先制作好的以下幾個文件上傳至/jumpstart中(ftp上傳時請用ascii碼格式)
      (用vi看一下文件的內容,如果文本行結尾有多余的^M,請將文件中的^M全部刪除,或用
       命令dos2unix轉換)
      sysidcfg
      rules
      test_PRof_18G
      test_prof_36G
   3、按照用戶設置的netmask(網絡掩碼)修改sysidcfg文件中network_interface的相關參數
      例如:
      原條目:network_interface=primary {netmask=255.255.255.0 protocol_ipv6=no}

      修改成:network_interface=primary {netmask=255.255.252.0 protocol_ipv6=no}
      保存文件
   4、運行以下命令:
      # cd /jumpstart
      # ./check<---檢查rules文件語法,并生成rules.ok文件
      此時可以查看一下rules.ok文件是否生成

五、共享必要的目錄
   1、編輯/etc/dfs/dfstab文件加入以下行
      share -F nfs -o ro,anon=0 /jumpstart
   2、運行以下命令:
      # /usr/lib/nfs/nfsd -a 16
      # /usr/lib/nfs/mountd
      # share /jumpstart
      # shareall
      (用以下命令查看/jumpstart是否share出來了,如果有以下輸出表示share正常)
      # dfshares Install_sever
       RESOURCE       SERVERaccessTRSPOT
         Install_sever:/jumpstart Install_sever--

六、授權Clients安裝
   運行以下命令:
   # cd /export/install/Solaris_8/Tools
   # ./add_install_client -c Install_sever:/jumpstart -p Install_sever:/jumpstart Client1 sun4u
   # ./add_install_client -c Install_sever:/jumpstart -p Install_sever:/jumpstart Client2 sun4u
.
.
.
   以上命令要逐個授權在/etc/hosts中加入的每一個需要利用網絡安裝的主機

七、引導Client機器,利用網絡安裝操作系統
   1、檢查網絡連接是否正確
   2、Client開機后用Stop+A將機器控制在OK提示符下
   3、鍵入以下命令利用網絡安裝操作系統:
      ok boot net - install


附錄1:例子文件及相關解釋:

sysidcfg 文件內容


name_service=NONE#指定名服務為NONE
network_interface=primary {netmask=255.255.252.0 protocol_ipv6=no}#設置網絡相關參數
security_policy=NONE#設置安全策略為NONE
terminal=dtterm#設置終端類型為dtterm
timezone=PRC#設置時區信息為PRC
system_locale=zh#設置本地信息為zh(中文)
timeserver=localhost#設置時鐘信息為localhost(本機)

rules 文件內容
# rule keyWords and rule valuess begin script profile finish script
# ----------------------------- ------------ -------- -------------
 disksize c0t0d0 15000-20000- test_prof_18G-
 disksize c0t0d0 30000-40000- test_prof_36G-

第一行設置磁盤大小在15G-20G(18G硬盤)的用 test_prof_18G 配置文件
第一行設置磁盤大小在30G-40G(36G硬盤)的用 test_prof_36G 配置文件

test_prof_18G 文件內容

install_type initial_install#指定安裝類型為 initial
usedisk c0t0d0#指定系統選擇的硬盤為 c0t0d0
boot_device c0t0d0s0 update#設置root文件系統及引導設備位置,并更新EEPROM 中的參數。
root_device c0t0d0s0#設置root文件系統位置為 c0t0d0s0
cluster SUNWCXall#設置系統軟件安裝類別為Entire Distribution Plus OEM Support
system_type standalone#設置系統類型為 standalone
partitioning explicit#指定硬盤分區方式(explicit 表示使用filesys 定義的結構)
filesys c0t0d0s0 2000 / -/
filesys c0t0d0s1 1500 /var - |
filesys c0t0d0s3 2500 swap |
filesys c0t0d0s5 3000 /opt - }-> 具體每一個分區的信息(大小為兆字節)
filesys c0t0d0s6 2000 /usr - |
filesys c0t0d0s4 15   unnamed |
filesys c0t0d0s7 free /export/home -/
geo Asia#指定地理區域
locale zh#指定本地化語言包
isa_bits 64#計算位長(64 或32)

配置注意事項:
1、install_type 必須寫在第1行
2、標記為容量為“free”的分區如“filesys c0t0d0s7 free /export/home -”
  必須寫在所有“filesys”定義的最后一個

test_prof_36G 文件內容

相應的解釋與test_prof_18G 文件相同
區別只在“filesys”的分區大小定義不同
install_type initial_install
usedisk c0t0d0
boot_device c0t0d0s0 update
root_device c0t0d0s0
cluster SUNWCXall
system_type standalone
partitioning explicit
filesys c0t0d0s0 3000 / -
filesys c0t0d0s1 3000 /var -
filesys c0t0d0s3 3000 swap
filesys c0t0d0s5 5000 /opt -
filesys c0t0d0s6 3000 /usr -
filesys c0t0d0s4 15   unnamed
filesys c0t0d0s7 free /export/home -
geo Asia
locale zh
isa_bits 64


如果有其他特殊需求請參照:“Solaris 8 Advanced Installation Guide”
                         (Part Number:806–0957–10)

附例:JumpStart Install Server 安裝過程:

附錄1:實例安裝記錄
   此例中:
   JumpStart Install_Server的信息如下:
      Hostame: jumptest
IP: 10.11.147.60

   2個Install Client信息如下
   Client1:
Hostame: test-1
IP: 10.11.147.38
Ethernet: 8:0:20:ce:ec:d6
c0t0d0: 18G

   Client2:
Hostame: test-2
IP: 10.11.147.39
Ethernet: 8:0:20:ce:ec:ae
c0t0d0: 18G

root@jumptest # cd /cdrom/sol_8_sparc/s0/Solaris_8/Tools
root@jumptest # ./setup_install_server /export/home/install
Verifying target directory...
Calculating the required disk space for the Solaris_8 product
Copying the CD image to disk...
Install Server setup complete
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_sparc_2/Solaris_8/Tools
root@jumptest # ./add_to_install_server /export/home/install

The following Products will be copied to /export/home/install/Solaris_8/Product:

Solaris_2_of_2

If only a subset of products is needed enter Control-C
and invoke ./add_to_install_server with the -s option.

Checking required disk space...

Copying the Early Access products...
41990 塊

Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_lang_sparc/Tools
root@jumptest # ./add_to_install_server -s /export/install /export/home/install

Enter the number of the product(s) you want to add
to /export/home/install/Solaris_8/Product or 'all' for all products.

The following are valid products:

    1Simplified_Chinese
    2French
    3German
    4Italian
    5Japanese
    6Korean
    7Spanish
    8Swedish
    9Traditional_Chinese
   10shared

1

Checking required disk space...

Copying SimplifiedChinese packages...

Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /jumpstart
root@jumptest # ./check
Validating rules...
Validating profile test_prof_18G...
Validating profile test_prof_36G...
The custom JumpStart configuration is ok.
root@jumptest # ls
any_machine     net924_sun4c    rules           sysidcfg        x86-begin.conf
check           test_prof_18G    rules.ok        upgrade         x86-class
host_class      test_prof_36G    set_root_pw     x86-begin
root@jumptest # /usr/lib/nfs/nfsd -a 16
root@jumptest # /usr/lib/nfs/mountd
root@jumptest # share /jumpstart
root@jumptest # shareall
root@jumptest # dfshares jumptest
RESOURCE                                  SERVER ACCESS    TRANSPORT
  jumptest:/jumpstart                    jumptest  -         -
root@jumptest # cd /export/home/install/Solaris_8/Tools
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /export/home/install" to /etc/dfs/dfstab
updating /etc/bootparams
copying inetboot to /tftpboot
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-2 sun4u
updating /etc/bootparams
root@jumptest #

備注:例子中會有目錄不同的情況
    如不是/cdrom/cdrom0,而是/cdrom/sol_8_sparc/、/cdrom/sol_8_sparc_2
    或/cdrom/sol_8_lang_sparc,其實/cdrom/cdrom0是指向這些目錄的連接,沒有問題

(bear:2002/6/13 下午于chinaunix.net)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 性欧美大战久久久久久久免费观看 | 男女羞羞在线观看 | 精品中文字幕在线播放 | 国产jjizz一区二区三区视频 | 奶子吧naiziba.cc免费午夜片在线观看 | 在线成人www免费观看视频 | 欧美日韩一 | 最新av免费网址 | 九草av| 久久一级| 精品国产一区二区亚洲人成毛片 | 久久久久久久久浪潮精品 | 中国hd高清xxxxvideo | 日本aaaa片毛片免费观看视频 | 久久精品视频亚洲 | av影院在线播放 | www.guochanav.com | 精品一区二区视频在线观看 | 一边吃奶一边插下面 | 国产日韩精品欧美一区视频 | 十级毛片 | 一级黄色在线免费观看 | 他也色在线视频 | 毛片免费看电影 | 久久免费视频1 | 色婷婷tv | 免费久久久 | chinesexxx少妇露脸 | 国内精品久久久久久2021浪潮 | 中文字幕视频在线播放 | 毛片a级毛片免费播放100 | 国产小视频一区 | 亚洲网站在线观看视频 | 久久成人国产精品入口 | 免费黄色在线观看网站 | 法国性hdfreexxxx人妖 | 国产精品久久久av | 亚洲一区二区免费视频 | av免费在线观看国产 | 免费放黄网站在线播放 | av最新在线观看 |