| 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 設定步驟] == |