close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Sep 29, 2009, 4:17:11 PM (15 years ago)
- Author:
-
rock
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v21
|
v22
|
|
63 | 63 | {{{ |
64 | 64 | #!sh |
| 65 | 58 (xend-http-server yes) |
65 | 66 | 60 (xend-tcp-xmlrpc-server yes) |
66 | 67 | 62 (xend-relocation-server yes) |
67 | 68 | 70 (xen-tcp-xmlrpc-server-port 8006) |
| 69 | 80 (xend-port 8000) |
68 | 70 | 84 (xend-relocation-port 8002) |
69 | 71 | 109 (xend-relocation-hosts-allow '') |
… |
… |
|
159 | 161 | }}} |
160 | 162 | ---- |
161 | | = 【Step 6: 產生 VM 的 Image】 = |
| 163 | = 【Step 5: 產生 VM 的 Image】 = |
162 | 164 | * 使用 xen-tools 提供的指令 '''xen-create-image''' 產生一個名為 vm01 虛擬機器的印象檔 (若沒指定 dist ,預設則為 debian etch) |
163 | 165 | {{{ |
… |
… |
|
174 | 176 | $ sudo gedit /etc/xen/vm01.cfg |
175 | 177 | }}} |
176 | | ---- |
177 | | = 【Step 7: 開啟 VM】 = |
| 178 | * 將 vm01 設定檔中的 dhcp 註解起來 (不讓 Kenel 載入完馬上跟 DHCP server 要 IP,等到完全開機後,再讓系統跟 DHCP server 要 IP) |
| 179 | {{{ |
| 180 | !sh |
| 181 | 31 #dhcp = 'dhcp' |
| 182 | }}} |
| 183 | * 檢查 vm01 設定檔的 MAC address 是否為 '''00:6:3E:BE:53:2C''' (建議修改末兩碼,例如:01、11、21、31...,若大家 MAC 皆相同的話,會讓 DHCP server 混亂) |
| 184 | {{{ |
| 185 | #!sh |
| 186 | 32 vif = [ 'mac=00:16:3E:BE:53:01' ] |
| 187 | }}} |
| 188 | ---- |
| 189 | = 【Step 6: 開啟 VM】 = |
178 | 190 | * 接下來我們使用此 vm01 的設定檔來開啟一個虛擬機器 (使用 '''xm create''' 指令根據設定檔來開啟虛擬機器) |
179 | 191 | {{{ |
… |
… |
|
195 | 207 | }}} |
196 | 208 | ---- |
197 | | = 【Step 8: 使用 VM 圖形管理介面】 = |
| 209 | = 【Step 7: 使用 VM 圖形管理介面】 = |
198 | 210 | * 若是不習慣用指令,可安裝 virt-manager 圖形管理介面來控制虛擬機器 |
199 | 211 | {{{ |