国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

PXE Remote Boot --Linux

2024-07-21 02:36:39
字體:
來源:轉載
供稿:網友

  文件目的﹕
   在 linux 上建置 PXE server ﹐并利用網絡激活 Windows 系統。
  
  操作系統版本﹕
   Server:
   OS: RedHat Linux 7.3
   ip: 192.168.100.73
   hostname: rh73.siyongc.domain
   Client:
   OS: Microsoft Windows SE
   IP: 192.168.100.26
   hostname: diamond.siyongc.domain
  
  程序版本﹕
   Linux: BpBatch (tar.gz) (02/11/2000)
   http://www.bpbatch.org/downloads/bpb-exe.tar.gz
   Windows: BpBatch (zip) (02/11/2000)
   http://www.bpbatch.org/downloads/bpb-exe.zip
   PXE: 2.0 (built-in NIC)
  
  ----------------------------------------------
  
  -----------
  Server 實作﹕
  
  1) 確定在 server 上裝有這些套件﹕
   dhcp
   nfs-utils
   portmap
   ttFTP-server
   假如沒有﹐請用 rpm 安裝好。例如 cd3 的 tftp-server 之安裝如下﹕
   rpm -ivh /mnt/cdrom/RedHat/RPMS/tftp-server-0.28-2.i386.rpm
  
  2) 確定 tftp 服務有激活﹐修改 /etc/xinetd.d/tftp 檔﹕
   disable = no
  
  3) 修改 /etc/dhcpd
  
  default-lease-time 864000;
  max-lease-time 1296000;
  
  use-host-decl-names on;
  
  shared-network siyongc {
   option domain-name "siyongc.domain";
  
   subnet 192.168.100.0 netmask 255.255.255.0 {
   range 192.168.100.100 192.168.100.200;
   option broadcast-address 192.168.100.255;
   option routers 192.168.100.73;
   option domain-name-servers 192.168.100.73, 168.95.1.1;
   option netbios-name-servers 192.168.100.73;
  
   group {
   default-lease-time -1;
   next-server 192.168.100.73;
   # option dhcp-class-identifier "PXEClient";
   option vendor-encapsulated-options 01:04:00:00:00:ff;
  
   host diamond {
   hardware ethernet 00:50:04:C1:EA:9C;
   fixed-address 192.168.100.26;
   option broadcast-address 192.168.100.255;
   option option-135 "win98";
   filename "bpbatch";
   }
   }
   }
  }
  
  4) 重新激活以上 service ﹐并確定在開機的時候能夠激活﹕
   for SRV in network dhcpd portmap nfs nfslock xinetd; do
   service $SRV restart
   chkconfig $SRV on
   done
  
  5) 下載 bpbatch 軟件﹕
   cd /tftpboot
   wget http://www.bpbatch.org/downloads/bpb-exe.tar.gz
   tar zxvf bpb-exe.tar.gz
   mv bpbatch.P bpbatch
  
  6) 撰寫 win98 之 batch 檔﹐建立 /tftpboot/win98.bpb ﹐內容如下﹕
   hidelog
   setpartitions "fat32:2000"
   setbootpart 1
   clean 1
   fullunzip "win98.imz" 1
   hidebootPRom
   hdboot :1
  
  
  -----------
  Client 實作
  
  1) 安裝樣板主機﹐確定系統全部裝在 C﹕磁盤。

  
  2) 完成所有設定。
  
  3) 從網絡下載 bpb-exe 壓縮文件﹕
   http://www.bpbatch.org/downloads/bpb-exe.zip
  
  4) 建立 c:/temp/bpb-exe 目錄(請不要使用其它路徑)﹐并將檔案解壓之該目錄中。
  
  5) 撰寫壓縮批次檔﹐建立 c:/temp/bpb-exe/zipwin.mrz 檔﹐內容如下﹕
   showlog
   filter -"windows/schedlog.txt"
   filter -"windows/msimgsiz.dat"
   filter -"*/index.dat"
   filter -"*.swp"
   filter -"*.tmp"
   filter -"temp/*"
   fullzip "c:/" "win98.imz"
  
  6) 然后進入 dos 模式﹐并執行如下命令﹕
   c:
   cd c:/temp/bpb-exe
   mrzip -b zipwin # 注重﹕參數檔去掉 .mrz 擴展名。
  
  6) 假如沒錯誤信息的話﹐上面會產生兩個(或多個)壓縮檔﹐名稱分別為﹕
   win98.imz
   win98.im1
  
  7) 不管使用何種方法﹐將以上兩個檔案復制到 server 端的 /tftpboot 目錄內。
  
  8) 重新激活系統并進行測試。
   *注重﹕ 建議使用另外的硬盤﹐否則原內容全部會被刪除﹗
  
  
  * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
  
  然而,以上只是一個 draft 而已,仍有許多計術細節須要調整的。比方說:
  * 必須依靠 bpbatch 程序,并非使用標準 pxe server
  * client 端必須具備 hd
  * 尚未解決 ram disk 方案
  * 網絡磁盤仍未設定
  * 未能選擇(協調)開機環境
  
  歡迎有愛好的朋友參考,并分享進一步的心得。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新源县| 新建县| 和龙市| 高邑县| 莎车县| 马鞍山市| 辉县市| 韶关市| 贡山| 潞西市| 大田县| 博罗县| 青冈县| 宁晋县| 白银市| 榆社县| 鹰潭市| 乐安县| 三江| 德江县| 长丰县| 登封市| 邵阳县| 冀州市| 兴仁县| 四平市| 双桥区| 石嘴山市| 勃利县| 孟州市| 徐闻县| 旅游| 乌兰察布市| 三门县| 巴彦淖尔市| 蓬溪县| 河间市| 新邵县| 远安县| 乳山市| 岚皋县|