close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libffi.so.6: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
May 21, 2010, 3:30:51 PM (16 years ago)
- Author:
-
rock
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v4
|
v5
|
|
| 34 | 34 | 4. XML answer file (自動執行 unattended installations) |
| 35 | 35 | 5. 機器必須有支援 PXE 的網卡 |
| 36 | | == [2. 步驟] == |
| | 36 | == [2. 官方設定步驟] == |
| 37 | 37 | === __2.1 設定 TFTP 能支援 PXE 開機__ === |
| 38 | 38 | 1. 需有 SYSLINUX 3.11 以上的版本,從 /usr/lib/syslinux 複製 mboot.c32 和 pxelinux.o 到 tftp 設定的路徑下(這邊是 /tftpboot) |
| … |
… |
|
| 94 | 94 | <source> |
| 95 | 95 | }}} |
| | 96 | === __2.4 Answer File 編輯__ === |
| | 97 | * 範例檔 (一定要有 installation tag) |
| | 98 | {{{ |
| | 99 | #!sh |
| | 100 | <?xml version="1.0"?> |
| | 101 | <installation> |
| | 102 | <primary-disk>sda</primary-disk> |
| | 103 | <guest-disk>sdb</guest-disk> |
| | 104 | <guest-disk>sdc</guest-disk> |
| | 105 | <keymap>us</keymap> |
| | 106 | <root-password>mypassword</root-password> |
| | 107 | <source type="url">http://pxehost.example.com</source> |
| | 108 | <post-install-script type="url"> |
| | 109 | http://pxehost.example.com/myscripts/post-install-script |
| | 110 | </post-install-script> |
| | 111 | <admin-interface name="eth0" proto="dhcp" /> |
| | 112 | <timezone>Europe/London</timezone> |
| | 113 | </installation> |
| | 114 | }}} |
| | 115 | * 範例檔 tag 介紹 |
| | 116 | || 標籤 || 說明 || 是否必要|| |
| | 117 | || <primary-disk> || 要安裝的 storage device,也可以給予 gueststorage 屬性值(yes/no) [[BR]] <rimary-disk gueststorage="no">sda</primary-disk> [[BR]] 此屬性質預設為 yes,之後在 guest-disk 必須給予值 || Y || |
| | 118 | || <guest-disk> || 儲存 guest VM 的印象檔 || N || |
| | 119 | || <keymap> || 安裝時使用的 keymap 一般都是使用美國鍵盤 <keymap>us</keymap> || Y || |
| | 120 | || <root-password> || 設定 root 密碼 || Y || |
| | 121 | || <source> || packages 的安裝路徑,屬性值有 url, nfs 或 local: [[BR]] <source type="url"> [[BR]] !http://server/packages [[BR]] </source> [[BR]] <source type="local" /> [[BR]] <source type="nfs"> [[BR]] server:packages [[BR]] </source> || Y || |
| | 122 | || <driver-source> || 安裝設備的 driver 套件路徑,屬性值有 url, nfs 或 local: [[BR]] <driver-source type="url"> [[BR]] !http://server/drivers [[BR]] </driver-source> [[BR]] <driver-source type="local" /> [[BR]] <driver-source type="nfs"> [[BR]] server:drivers [[BR]] </driver-source> || N || |
| | 123 | || <post-install-script> || post-install-script 的路徑,屬性質有 url, nfs 或 local: [[BR]] <post-install-script type="url"> [[BR]] !http://server/scripts [[BR]] </post-install-script> [[BR]] <post-install-script type="local" /> [[BR]] <post-install-script type="nfs"> [[BR]] server:scripts [[BR]] </post-install-script>|| Y || |
| | 124 | || <admin-interface> || || N || |
| | 125 | |
| | 126 | == [2. DRBL 設定步驟] == |
| 96 | 127 | ---- |
| 97 | 128 | = 【Reference】 = |